Package org.apache.calcite.test.catalog
Class MockCatalogReader.MockDynamicTable
- java.lang.Object
-
- org.apache.calcite.prepare.Prepare.AbstractPreparingTable
-
- org.apache.calcite.test.catalog.MockCatalogReader.MockTable
-
- org.apache.calcite.test.catalog.MockCatalogReader.MockDynamicTable
-
- All Implemented Interfaces:
org.apache.calcite.plan.RelOptTable
,org.apache.calcite.prepare.Prepare.PreparingTable
,org.apache.calcite.schema.Wrapper
,org.apache.calcite.sql.validate.SqlValidatorTable
- Enclosing class:
- MockCatalogReader
public static class MockCatalogReader.MockDynamicTable extends MockCatalogReader.MockTable
Mock implementation ofPrepare.PreparingTable
with dynamic record type.
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.test.catalog.MockCatalogReader.MockTable
catalogReader, collationList, columnList, initializerFactory, keyList, kind, monotonicColumnSet, names, referentialConstraints, resolver, rolledUpColumns, rowCount, rowType, stream
-
-
Constructor Summary
Constructors Constructor Description MockDynamicTable(MockCatalogReader catalogReader, java.lang.String catalogName, java.lang.String schemaName, java.lang.String name, boolean stream, double rowCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onRegister(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
org.apache.calcite.rel.RelNode
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context)
Recreates an immutable rowType, if the table has Dynamic Record Type, when converts table to Rel.-
Methods inherited from class org.apache.calcite.test.catalog.MockCatalogReader.MockTable
addColumn, addColumn, addMonotonic, create, create, create, create, extend, getAllowedAccess, getCollationList, getDistribution, getExpression, getKind, getMonotonicity, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, isKey, registerRolledUpColumn, setKind, supportsModality, unwrap
-
-
-
-
Constructor Detail
-
MockDynamicTable
public MockDynamicTable(MockCatalogReader catalogReader, java.lang.String catalogName, java.lang.String schemaName, java.lang.String name, boolean stream, double rowCount)
-
-
Method Detail
-
onRegister
public void onRegister(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
- Overrides:
onRegister
in classMockCatalogReader.MockTable
-
toRel
public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context)
Recreates an immutable rowType, if the table has Dynamic Record Type, when converts table to Rel.- Specified by:
toRel
in interfaceorg.apache.calcite.plan.RelOptTable
- Overrides:
toRel
in classMockCatalogReader.MockTable
-
-