public void add(String name, Lattice lattice) { CalciteSchema.this.add(name, lattice); } }
public void add(String name, Lattice lattice) { CalciteSchema.this.add(name, lattice); } }
public void add(String name, Table table) { CalciteSchema.this.add(name, table); }
public void add(String name, Table table) { CalciteSchema.this.add(name, table); }
public void add(String name, Function function) { CalciteSchema.this.add(name, function); }
public void add(String name, RelProtoDataType type) { CalciteSchema.this.add(name, type); }
public void add(String name, RelProtoDataType type) { CalciteSchema.this.add(name, type); }
/** Defines a table within this schema. */ public TableEntry add(String tableName, Table table) { return add(tableName, table, ImmutableList.of()); }
/** Defines a table within this schema. */ public TableEntry add(String tableName, Table table) { return add(tableName, table, ImmutableList.of()); }
public SchemaPlus add(String name, Schema schema) { final CalciteSchema calciteSchema = CalciteSchema.this.add(name, schema); return calciteSchema.plus(); }
/** Creates a LatticeEntryImpl. */ public LatticeEntryImpl(CalciteSchema schema, String name, Lattice lattice) { super(schema, name); this.lattice = lattice; // Star table has same name as lattice and is in same schema. final StarTable starTable = lattice.createStarTable(); starTableEntry = schema.add(name, starTable); }
/** Creates a LatticeEntryImpl. */ public LatticeEntryImpl(CalciteSchema schema, String name, Lattice lattice) { super(schema, name); this.lattice = lattice; // Star table has same name as lattice and is in same schema. final StarTable starTable = lattice.createStarTable(); starTableEntry = schema.add(name, starTable); }
public SchemaPlus add(String name, Schema schema) { final CalciteSchema calciteSchema = CalciteSchema.this.add(name, schema); return calciteSchema.plus(); }
protected void registerSchema(MockSchema schema) { rootSchema.add(schema.name, new AbstractSchema()); }
private void registerTable(final List<String> names, final Table table) { assert names.get(0).equals(DEFAULT_CATALOG); final List<String> schemaPath = Util.skipLast(names); final String tableName = Util.last(names); final CalciteSchema schema = SqlValidatorUtil.getSchema(rootSchema, schemaPath, SqlNameMatchers.withCaseSensitive(true)); schema.add(tableName, table); }
private void registerTable(final List<String> names, final Table table) { assert names.get(0).equals(DEFAULT_CATALOG); final List<String> schemaPath = Util.skipLast(names); final String tableName = Util.last(names); final CalciteSchema schema = SqlValidatorUtil.getSchema(rootSchema, schemaPath, SqlNameMatchers.withCaseSensitive(true)); schema.add(tableName, table); }
protected void registerType(final List<String> names, final RelProtoDataType relProtoDataType) { assert names.get(0).equals(DEFAULT_CATALOG); final List<String> schemaPath = Util.skipLast(names); final CalciteSchema schema = SqlValidatorUtil.getSchema(rootSchema, schemaPath, SqlNameMatchers.withCaseSensitive(true)); schema.add(Util.last(names), relProtoDataType); }
protected void registerType(final List<String> names, final RelProtoDataType relProtoDataType) { assert names.get(0).equals(DEFAULT_CATALOG); final List<String> schemaPath = Util.skipLast(names); final CalciteSchema schema = SqlValidatorUtil.getSchema(rootSchema, schemaPath, SqlNameMatchers.withCaseSensitive(true)); schema.add(Util.last(names), relProtoDataType); }
private void registerNestedSchema(MockSchema parentSchema, MockSchema schema) { rootSchema.getSubSchema(parentSchema.getName(), true) .add(schema.name, new AbstractSchema()); }
private void registerNestedSchema(MockSchema parentSchema, MockSchema schema) { rootSchema.getSubSchema(parentSchema.getName(), true) .add(schema.name, new AbstractSchema()); }