Package org.apache.calcite.test.catalog
Class MockCatalogReader.MockRelViewTable
java.lang.Object
org.apache.calcite.prepare.Prepare.AbstractPreparingTable
org.apache.calcite.test.catalog.MockCatalogReader.MockTable
org.apache.calcite.test.catalog.MockCatalogReader.MockRelViewTable
- All Implemented Interfaces:
- RelOptTable,- Prepare.PreparingTable,- BuiltInMetadata.MaxRowCount.Handler,- MetadataHandler<BuiltInMetadata.MaxRowCount>,- Wrapper,- SqlValidatorTable
- Enclosing class:
- MockCatalogReader
Mock implementation of 
Prepare.AbstractPreparingTable which holds ViewTable
 and delegates MockCatalogReader.MockTable.toRel(org.apache.calcite.plan.RelOptTable.ToRelContext) call to the view.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.calcite.plan.RelOptTableRelOptTable.ToRelContext, RelOptTable.ViewExpander
- 
Field SummaryFields inherited from class org.apache.calcite.test.catalog.MockCatalogReader.MockTablecatalogReader, collationList, columnList, initializerFactory, keyList, kind, maxRowCount, monotonicColumnSet, names, referentialConstraints, resolver, rolledUpColumns, rowCount, rowType, stream, wraps
- 
Method SummaryModifier and TypeMethodDescriptioncreate(ViewTable viewTable, MockCatalogReader catalogReader, String catalogName, String schemaName, String name, boolean stream, double rowCount, @Nullable MockCatalogReader.ColumnResolver resolver) Describes the type of rows returned by this table.toRel(RelOptTable.ToRelContext context) Converts this table into arelational expression.<T> TFinds an instance of an interface implemented by this object, or returns null if this object does not support that interface.Methods inherited from class org.apache.calcite.test.catalog.MockCatalogReader.MockTableaddColumn, addColumn, addKey, addKey, addMonotonic, addWrap, create, create, create, create, create, create, create, extend, getAllowedAccess, getCollationList, getDef, getDistribution, getExpression, getKeys, getKind, getMaxRowCount, getMonotonicity, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, isKey, isTemporal, onRegister, registerRolledUpColumn, setKind, supportsModalityMethods inherited from class org.apache.calcite.prepare.Prepare.AbstractPreparingTablecolumnHasDefaultValue, extend, getColumnStrategiesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.validate.SqlValidatorTabletableMethods inherited from interface org.apache.calcite.schema.WrappermaybeUnwrap, unwrapOrThrow
- 
Method Details- 
createpublic static MockCatalogReader.MockRelViewTable create(ViewTable viewTable, MockCatalogReader catalogReader, String catalogName, String schemaName, String name, boolean stream, double rowCount, @Nullable MockCatalogReader.ColumnResolver resolver) 
- 
getRowTypeDescription copied from interface:RelOptTableDescribes the type of rows returned by this table.- Specified by:
- getRowTypein interface- RelOptTable
- Specified by:
- getRowTypein interface- SqlValidatorTable
- Overrides:
- getRowTypein class- MockCatalogReader.MockTable
 
- 
toRelDescription copied from interface:RelOptTableConverts this table into arelational expression.The plannercalls this method to convert a table into an initial relational expression, generally something abstract, such as aLogicalTableScan, then optimizes this expression by applyingrulesto transform it into more efficient access methods for this table.- Specified by:
- toRelin interface- RelOptTable
- Overrides:
- toRelin class- MockCatalogReader.MockTable
 
- 
unwrapDescription copied from interface:WrapperFinds an instance of an interface implemented by this object, or returns null if this object does not support that interface.- Specified by:
- unwrapin interface- Wrapper
- Overrides:
- unwrapin class- MockCatalogReader.MockTable
 
 
-