public class RelOptTableImpl extends Object implements Prepare.PreparingTable
RelOptTable.RelOptTable.ToRelContext, RelOptTable.ViewExpander| Modifier and Type | Method and Description |
|---|---|
static RelOptTableImpl |
create(RelOptSchema schema,
RelDataType rowType,
CalciteSchema.TableEntry tableEntry,
Double rowCount) |
static RelOptTableImpl |
create(RelOptSchema schema,
RelDataType rowType,
List<String> names,
Expression expression) |
static RelOptTableImpl |
create(RelOptSchema schema,
RelDataType rowType,
Table table) |
RelOptTable |
extend(List<RelDataTypeField> extendedFields)
Returns a table with the given extra fields.
|
SqlAccessType |
getAllowedAccess()
Returns the access type of the table
|
List<RelCollation> |
getCollationList()
Returns a description of the physical ordering (or orderings) of the rows
returned from this table.
|
RelDistribution |
getDistribution()
Returns a description of the physical distribution of the rows
in this table.
|
Expression |
getExpression(Class clazz)
Generates code for this table.
|
SqlMonotonicity |
getMonotonicity(String columnName)
Returns whether a given column is monotonic.
|
List<String> |
getQualifiedName()
Obtains an identifier for this table.
|
RelOptSchema |
getRelOptSchema()
Returns the
RelOptSchema this table belongs to. |
double |
getRowCount()
Returns an estimate of the number of rows in the table.
|
RelDataType |
getRowType()
Describes the type of rows returned by this table.
|
boolean |
isKey(ImmutableBitSet columns)
Returns whether the given columns are a key or a superset of a unique key
of this table.
|
boolean |
supportsModality(SqlModality modality) |
RelNode |
toRel(RelOptTable.ToRelContext context)
Converts this table into a
relational expression. |
<T> T |
unwrap(Class<T> clazz)
Finds an interface implemented by this table.
|
public static RelOptTableImpl create(RelOptSchema schema, RelDataType rowType, List<String> names, Expression expression)
public static RelOptTableImpl create(RelOptSchema schema, RelDataType rowType, CalciteSchema.TableEntry tableEntry, Double rowCount)
public static RelOptTableImpl create(RelOptSchema schema, RelDataType rowType, Table table)
public <T> T unwrap(Class<T> clazz)
RelOptTableunwrap in interface RelOptTablepublic Expression getExpression(Class clazz)
RelOptTablegetExpression in interface RelOptTableclazz - The desired collection class; for example Queryable.public RelOptTable extend(List<RelDataTypeField> extendedFields)
RelOptTableextend in interface RelOptTablepublic double getRowCount()
RelOptTablegetRowCount in interface RelOptTablepublic RelOptSchema getRelOptSchema()
RelOptTableRelOptSchema this table belongs to.getRelOptSchema in interface RelOptTablepublic RelNode toRel(RelOptTable.ToRelContext context)
RelOptTablerelational expression.
The planner calls this
method to convert a table into an initial relational expression,
generally something abstract, such as a
LogicalTableScan,
then optimizes this expression by
applying rules to transform it
into more efficient access methods for this table.
toRel in interface RelOptTablepublic List<RelCollation> getCollationList()
RelOptTablegetCollationList in interface RelOptTableRelMetadataQuery.collations(RelNode)public RelDistribution getDistribution()
RelOptTablegetDistribution in interface RelOptTableRelMetadataQuery.distribution(RelNode)public boolean isKey(ImmutableBitSet columns)
RelOptTableisKey in interface RelOptTablecolumns - Ordinals of key columnspublic RelDataType getRowType()
RelOptTablegetRowType in interface RelOptTablegetRowType in interface SqlValidatorTablepublic boolean supportsModality(SqlModality modality)
supportsModality in interface SqlValidatorTablepublic List<String> getQualifiedName()
RelOptTablegetQualifiedName in interface RelOptTablegetQualifiedName in interface SqlValidatorTablepublic SqlMonotonicity getMonotonicity(String columnName)
SqlValidatorTablegetMonotonicity in interface SqlValidatorTablepublic SqlAccessType getAllowedAccess()
SqlValidatorTablegetAllowedAccess in interface SqlValidatorTableCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.