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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
columnHasDefaultValue
(RelDataType rowType, int ordinal, InitializerContext initializerContext) Returns whether the ordinal column has a default value.final RelOptTable
extend
(List<RelDataTypeField> extendedFields) Returns a table with the given extra fields.protected abstract RelOptTable
Implementation-specific code to instantiate a newRelOptTable
based on aTable
that 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, wait
Methods inherited from interface org.apache.calcite.plan.RelOptTable
getCollationList, getDistribution, getExpression, getKeys, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, isKey, toRel
Methods inherited from interface org.apache.calcite.sql.validate.SqlValidatorTable
getAllowedAccess, getMonotonicity, getQualifiedName, getRowType, isTemporal, supportsModality, table
Methods 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:SqlValidatorTable
Returns whether the ordinal column has a default value.- Specified by:
columnHasDefaultValue
in interfaceSqlValidatorTable
-
extend
Description copied from interface:RelOptTable
Returns 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:
extend
in interfaceRelOptTable
-
extend
Implementation-specific code to instantiate a newRelOptTable
based on aTable
that has been extended. -
getColumnStrategies
Description copied from interface:RelOptTable
Returns 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:
getColumnStrategies
in interfaceRelOptTable
-