Package org.apache.calcite.plan
Interface RelOptSchema
- All Known Subinterfaces:
Prepare.CatalogReader
,RelOptSchemaWithSampling
- All Known Implementing Classes:
CalciteCatalogReader
,MockCatalogReader
,MockCatalogReaderDynamic
,MockCatalogReaderExtended
,MockCatalogReaderSimple
,MustFilterMockCatalogReader
public interface RelOptSchema
A
RelOptSchema
is a set of RelOptTable
objects.-
Method Summary
Modifier and TypeMethodDescription@Nullable RelOptTable
getTableForMember
(List<String> names) Retrieves aRelOptTable
based upon a member access.Returns thetype factory
used to generate types for this schema.void
registerRules
(RelOptPlanner planner) Registers all the rules supported by this schema.
-
Method Details
-
getTableForMember
Retrieves aRelOptTable
based upon a member access.For example, the Saffron expression
salesSchema.emps
would be resolved using a call tosalesSchema.getTableForMember(new String[]{"emps" })
.Note that name.length is only greater than 1 for queries originating from JDBC.
- Parameters:
names
- Qualified name
-
getTypeFactory
RelDataTypeFactory getTypeFactory()Returns thetype factory
used to generate types for this schema. -
registerRules
Registers all the rules supported by this schema. Only called byRelOptPlanner.registerSchema(org.apache.calcite.plan.RelOptSchema)
.
-