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:
RelOptTableImpl
- Enclosing class:
- Prepare
public abstract static class Prepare.AbstractPreparingTable extends java.lang.Object implements Prepare.PreparingTable
Abstract implementation ofPrepare.PreparingTable
with an implementation forcolumnHasDefaultValue(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 Constructor Description AbstractPreparingTable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
columnHasDefaultValue(RelDataType rowType, int ordinal, InitializerContext initializerContext)
Returns whether the ordinal column has a default value.RelOptTable
extend(java.util.List<RelDataTypeField> extendedFields)
Returns a table with the given extra fields.protected abstract RelOptTable
extend(Table extendedTable)
Implementation-specific code to instantiate a newRelOptTable
based on aTable
that has been extended.java.util.List<ColumnStrategy>
getColumnStrategies()
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, getQualifiedName, getReferentialConstraints, getRelOptSchema, getRowCount, getRowType, isKey, toRel
-
Methods inherited from interface org.apache.calcite.sql.validate.SqlValidatorTable
getAllowedAccess, getMonotonicity, getQualifiedName, getRowType, supportsModality
-
-
-
-
Method Detail
-
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
public final RelOptTable extend(java.util.List<RelDataTypeField> extendedFields)
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
protected abstract RelOptTable extend(Table extendedTable)
Implementation-specific code to instantiate a newRelOptTable
based on aTable
that has been extended.
-
getColumnStrategies
public java.util.List<ColumnStrategy> 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
-
-