Package com.foundationdb.ais.model

Examples of com.foundationdb.ais.model.ColumnName


    protected void doEvaluate(TExecutionContext context,
                              LazyList<? extends ValueSource> inputs,
                              ValueTarget output) {
        String[] parts = { "", "", "" };
        if(covering.length == 1) {
            ColumnName columnName = ColumnName.parse("", inputs.get(0).getString());
            parts[0] = columnName.getTableName().getSchemaName();
            parts[1] = columnName.getTableName().getTableName();
            parts[2] = columnName.getName();
        } else {
            for(int i = covering.length - 1, j = 2; i >= 0; --i, --j) {
                parts[j] = inputs.get(i).getString();
            }
        }
View Full Code Here


                String oldName = column.getName();
                boolean isTargetTable = column.getTable() == oldTable;
                String newName = isTargetTable ? findNewName(state.columnChanges, oldName) : oldName;
                if(newName != null) {
                    TableName tableName = isTargetTable ? newTable.getName() : column.getTable().getName();
                    remainingCols.add(new ColumnName(tableName, newName));
                    if(column.getTable() == oldTable) {
                        Column oldColumn = oldTable.getColumn(oldName);
                        Column newColumn = newTable.getColumn(newName);
                        dataChange |= (compare(oldColumn, newColumn) == ChangeLevel.TABLE);
                    }
View Full Code Here

    protected void doEvaluate(TExecutionContext context,
                              LazyList<? extends ValueSource> inputs,
                              ValueTarget output) {
        String[] parts = { "", "", "" };
        if(covering.length == 1) {
            ColumnName columnName = ColumnName.parse("", inputs.get(0).getString());
            parts[0] = columnName.getTableName().getSchemaName();
            parts[1] = columnName.getTableName().getTableName();
            parts[2] = columnName.getName();
        } else {
            for(int i = covering.length - 1, j = 2; i >= 0; --i, --j) {
                parts[j] = inputs.get(i).getString();
            }
        }
View Full Code Here

TOP

Related Classes of com.foundationdb.ais.model.ColumnName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.