public interface RelOptTable
RelOptSchema. It has methods to
describe and implement itself.| Modifier and Type | Interface and Description |
|---|---|
static interface |
RelOptTable.ToRelContext
Contains the context needed to convert a a table into a relational
expression.
|
static interface |
RelOptTable.ViewExpander
Can expand a view into relational expressions.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptTable |
extend(List<RelDataTypeField> extendedFields)
Returns a table with the given extra fields.
|
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.
|
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.
|
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.
|
List<String> getQualifiedName()
double getRowCount()
RelDataType getRowType()
RelOptSchema getRelOptSchema()
RelOptSchema this table belongs to.RelNode toRel(RelOptTable.ToRelContext context)
relational 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.
List<RelCollation> getCollationList()
RelMetadataQuery.collations(RelNode)RelDistribution getDistribution()
boolean isKey(ImmutableBitSet columns)
columns - Ordinals of key columns<T> T unwrap(Class<T> clazz)
Expression getExpression(Class clazz)
clazz - The desired collection class; for example Queryable.RelOptTable extend(List<RelDataTypeField> extendedFields)
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.