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 SummaryNested classes/interfaces inherited from interface org.apache.calcite.plan.RelOptTableRelOptTable.ToRelContext, RelOptTable.ViewExpander
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.plan.RelOptTablegetCollationList, getDistribution, getExpression, getKeys, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, isKey, toRelMethods inherited from interface org.apache.calcite.sql.validate.SqlValidatorTablegetAllowedAccess, getMonotonicity, getQualifiedName, getRowType, isTemporal, supportsModality, tableMethods inherited from interface org.apache.calcite.schema.WrappermaybeUnwrap, unwrap, unwrapOrThrow
- 
Constructor Details- 
AbstractPreparingTablepublic AbstractPreparingTable()
 
- 
- 
Method Details- 
columnHasDefaultValuepublic boolean columnHasDefaultValue(RelDataType rowType, int ordinal, InitializerContext initializerContext) Description copied from interface:SqlValidatorTableReturns whether the ordinal column has a default value.- Specified by:
- columnHasDefaultValuein interface- SqlValidatorTable
 
- 
extendDescription 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 interface- RelOptTable
 
- 
extendImplementation-specific code to instantiate a newRelOptTablebased on aTablethat has been extended.
- 
getColumnStrategiesDescription 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 interface- RelOptTable
 
 
-