Package org.apache.calcite.test.catalog
Class MockCatalogReader.MockViewTable
java.lang.Object
org.apache.calcite.prepare.Prepare.AbstractPreparingTable
org.apache.calcite.test.catalog.MockCatalogReader.MockTable
org.apache.calcite.test.catalog.MockCatalogReader.MockViewTable
- All Implemented Interfaces:
RelOptTable
,Prepare.PreparingTable
,BuiltInMetadata.MaxRowCount.Handler
,MetadataHandler<BuiltInMetadata.MaxRowCount>
,Wrapper
,SqlValidatorTable
- Enclosing class:
MockCatalogReader
Mock implementation of
Prepare.PreparingTable
for views.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.plan.RelOptTable
RelOptTable.ToRelContext, RelOptTable.ViewExpander
-
Field Summary
Fields inherited from class org.apache.calcite.test.catalog.MockCatalogReader.MockTable
catalogReader, collationList, columnList, initializerFactory, keyList, kind, maxRowCount, monotonicColumnSet, names, referentialConstraints, resolver, rolledUpColumns, rowCount, rowType, stream, wraps
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RexNode
getConstraint
(RexBuilder rexBuilder, RelDataType tableRowType) void
onRegister
(RelDataTypeFactory typeFactory) toRel
(RelOptTable.ToRelContext context) Converts this table into arelational expression
.<T> T
Finds 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.MockTable
addColumn, addColumn, addMonotonic, addWrap, create, create, create, create, create, create, create, extend, getAllowedAccess, getCollationList, getDef, getDistribution, getExpression, getKeys, getKind, getMaxRowCount, getMonotonicity, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, isKey, isTemporal, registerRolledUpColumn, setKind, supportsModality
Methods inherited from class org.apache.calcite.prepare.Prepare.AbstractPreparingTable
columnHasDefaultValue, extend, getColumnStrategies
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.sql.validate.SqlValidatorTable
table
Methods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrapOrThrow
-
Method Details
-
getConstraint
-
onRegister
- Overrides:
onRegister
in classMockCatalogReader.MockTable
-
toRel
Description copied from interface:RelOptTable
Converts this table into arelational expression
.The
planner
calls this method to convert a table into an initial relational expression, generally something abstract, such as aLogicalTableScan
, then optimizes this expression by applyingrules
to transform it into more efficient access methods for this table.- Specified by:
toRel
in interfaceRelOptTable
- Overrides:
toRel
in classMockCatalogReader.MockTable
-
unwrap
Description copied from interface:Wrapper
Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.- Specified by:
unwrap
in interfaceWrapper
- Overrides:
unwrap
in classMockCatalogReader.MockTable
-