/** * Copies names and components from another identifier. Does not modify the * cross-component parser position. * * @param other identifier from which to copy */ public void assignNamesFrom(SqlIdentifier other) { setNames(other.names, other.componentPositions); }
/** * Copies names and components from another identifier. Does not modify the * cross-component parser position. * * @param other identifier from which to copy */ public void assignNamesFrom(SqlIdentifier other) { setNames(other.names, other.componentPositions); }
private void changeNamesIfTableIsTemporary(SqlIdentifier tempNode) { List<String> temporaryTableNames = ((SqlConverter.DrillCalciteCatalogReader) getCatalogReader()).getTemporaryNames(tempNode.names); if (temporaryTableNames != null) { SqlParserPos pos = tempNode.getComponentParserPosition(0); List<SqlParserPos> poses = Lists.newArrayList(); for (int i = 0; i < temporaryTableNames.size(); i++) { poses.add(i, pos); } tempNode.setNames(temporaryTableNames, poses); } } }
id.setNames(qualifiedNames, poses);
id.setNames(qualifiedNames, poses);