Package org.apache.calcite.prepare
Class Prepare.AbstractPreparingTable
java.lang.Object
org.apache.calcite.prepare.Prepare.AbstractPreparingTable
- All Implemented Interfaces:
RelOptTable,Prepare.PreparingTable,Wrapper,SqlValidatorTable
- Direct Known Subclasses:
MockCatalogReader.MockTable,RelOptTableImpl
- Enclosing class:
Prepare
public abstract static class Prepare.AbstractPreparingTable
extends Object
implements Prepare.PreparingTable
Abstract implementation of
Prepare.PreparingTable with an implementation
for columnHasDefaultValue(org.apache.calcite.rel.type.RelDataType, int, org.apache.calcite.sql2rel.InitializerContext).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.plan.RelOptTable
RelOptTable.ToRelContext, RelOptTable.ViewExpander -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancolumnHasDefaultValue(RelDataType rowType, int ordinal, InitializerContext initializerContext) Returns whether the ordinal column has a default value.final RelOptTableextend(List<RelDataTypeField> extendedFields) Returns a table with the given extra fields.protected abstract RelOptTableImplementation-specific code to instantiate a newRelOptTablebased on aTablethat has been extended.Returns a list describing how each column is populated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.plan.RelOptTable
getCollationList, getDistribution, getExpression, getKeys, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, isKey, toRelMethods inherited from interface org.apache.calcite.sql.validate.SqlValidatorTable
getAllowedAccess, getMonotonicity, getQualifiedName, getRowType, isTemporal, supportsModality, tableMethods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrap, unwrapOrThrow
-
Constructor Details
-
AbstractPreparingTable
public AbstractPreparingTable()
-
-
Method Details
-
columnHasDefaultValue
public boolean columnHasDefaultValue(RelDataType rowType, int ordinal, InitializerContext initializerContext) Description copied from interface:SqlValidatorTableReturns whether the ordinal column has a default value.- Specified by:
columnHasDefaultValuein interfaceSqlValidatorTable
-
extend
Description copied from interface:RelOptTableReturns a table with the given extra fields.The extended table includes the fields of this base table plus the extended fields that do not have the same name as a field in the base table.
- Specified by:
extendin interfaceRelOptTable
-
extend
Implementation-specific code to instantiate a newRelOptTablebased on aTablethat has been extended. -
getColumnStrategies
Description copied from interface:RelOptTableReturns a list describing how each column is populated. The list has the same number of entries as there are fields, and is immutable.- Specified by:
getColumnStrategiesin interfaceRelOptTable
-