public SQLStructDataType clone() { SQLStructDataType x = new SQLStructDataType(dbType); for (Field field : fields) { x.addField(field.name, field.dataType.clone()); } return x; }
public SQLParameter findParameter(long hash) { for (SQLParameter param : this.parameters) { if (param.getName().nameHashCode64() == hash) { return param; } } return null; }
public SQLKeep clone() { SQLKeep x = new SQLKeep(); x.denseRank = denseRank; if (orderBy != null) { x.setOrderBy(orderBy.clone()); } return x; }
static void resolve(SchemaResolveVisitor visitor, SQLOver x) { SQLName of = x.getOf(); SQLOrderBy orderBy = x.getOrderBy(); List<SQLExpr> partitionBy = x.getPartitionBy(); if (of == null // skip if of is not null && orderBy != null) { orderBy.accept(visitor); } if (partitionBy != null) { for (SQLExpr expr : partitionBy) { expr.accept(visitor); } } }
public void setDataDirectory(SQLExpr dataDirectory) { if (dataDirectory != null) { dataDirectory.setParent(this); } this.dataDirectory = dataDirectory; }
@Override public boolean visit(SQLStructDataType.Field x) { x.getName().accept(this); print(':'); x.getDataType().accept(this); print('>'); return false; }
public SQLLimit clone() { SQLLimit x = new SQLLimit(); if (offset != null) { x.setOffset(offset.clone()); } if (rowCount != null) { x.setRowCount(rowCount.clone()); } return x; }
public SQLSubPartition clone() { SQLSubPartition x = new SQLSubPartition(); if (name != null) { x.setName(name.clone()); } if (values != null) { x.setValues(values.clone()); } if (tableSpace != null) { x.setTableSpace(tableSpace.clone()); } return x; } }
public SQLMapDataType clone() { SQLMapDataType x = new SQLMapDataType(); x.dbType = dbType; if (keyType != null) { x.setKeyType(keyType.clone()); } if (valueType != null) { x.setValueType(valueType.clone()); } return x; }
public void cloneTo(SQLDataTypeImpl x) { x.dbType = dbType; x.name = name; x.nameHashCode64 = nameHashCode64; for (SQLExpr arg : arguments) { x.addArgument(arg.clone()); } x.withTimeZone = withTimeZone; x.withLocalTimeZone = withLocalTimeZone; x.zerofill = zerofill; x.unsigned = unsigned; }
public SQLSubPartitionByHash clone() { SQLSubPartitionByHash x = new SQLSubPartitionByHash(); if (expr != null) { x.setExpr(expr.clone()); } x.key = key; return x; }
public SQLSubPartitionByList clone() { SQLSubPartitionByList x = new SQLSubPartitionByList(); if (column != null) { x.setColumn(column.clone()); } return x; } }
public SQLArgument clone() { SQLArgument x = new SQLArgument(); x.type = type; if (expr != null) { x.setExpr(expr.clone()); } return x; }
public void setName(SQLName name) { if (name != null) { name.setParent(this); } this.name = name; }
public void setDataType(SQLDataType dataType) { if (dataType != null) { dataType.setParent(this); } this.dataType = dataType; }
public SQLParameter findParameter(long hash) { for (SQLParameter param : this.parameters) { if (param.getName().nameHashCode64() == hash) { return param; } } return null; }