public static class Bindables.BindableTableScan extends TableScan implements BindableRel
ScannableTable and therefore can
be converted into an Enumerable.InterpretableRel.InterpreterImplementorRelNode.Context| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<RexNode> |
filters |
ImmutableIntList |
projects |
digest, id, rowType, traitSet| Constructor and Description |
|---|
BindableTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
com.google.common.collect.ImmutableList<RexNode> filters,
ImmutableIntList projects)
Creates a BindableTableScan.
|
| Modifier and Type | Method and Description |
|---|---|
Enumerable<Object[]> |
bind(DataContext dataContext)
Executes this statement and returns an enumerable which will yield rows.
|
static boolean |
canHandle(RelOptTable table) |
RelOptCost |
computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq)
Returns the cost of this plan (not including children).
|
static Bindables.BindableTableScan |
create(RelOptCluster cluster,
RelOptTable relOptTable)
Creates a BindableTableScan.
|
static Bindables.BindableTableScan |
create(RelOptCluster cluster,
RelOptTable relOptTable,
List<RexNode> filters,
List<Integer> projects)
Creates a BindableTableScan.
|
RelDataType |
deriveRowType() |
RelWriter |
explainTerms(RelWriter pw)
Describes the inputs and attributes of this relational expression.
|
Class<Object[]> |
getElementType()
Gets the type of the element(s) that are returned in this collection.
|
Node |
implement(InterpretableRel.InterpreterImplementor implementor)
Creates an interpreter node to implement this relational expression.
|
accept, estimateRowCount, getCollationList, getTable, identity, identity, projectaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, copy, explain, getChildExps, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInput, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, copy, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetpublic final com.google.common.collect.ImmutableList<RexNode> filters
public final ImmutableIntList projects
BindableTableScan(RelOptCluster cluster, RelTraitSet traitSet, RelOptTable table, com.google.common.collect.ImmutableList<RexNode> filters, ImmutableIntList projects)
Use create(org.apache.calcite.plan.RelOptCluster, org.apache.calcite.plan.RelOptTable) unless you know what you are doing.
public static Bindables.BindableTableScan create(RelOptCluster cluster, RelOptTable relOptTable)
public static Bindables.BindableTableScan create(RelOptCluster cluster, RelOptTable relOptTable, List<RexNode> filters, List<Integer> projects)
public RelDataType deriveRowType()
deriveRowType in class TableScanpublic Class<Object[]> getElementType()
TypedgetElementType in interface ArrayBindablegetElementType in interface Typedpublic RelWriter explainTerms(RelWriter pw)
AbstractRelNodesuper.explainTerms, then call the
RelWriterImpl.input(String, RelNode)
and
RelWriterImpl.item(String, Object)
methods for each input and attribute.explainTerms in class TableScanpw - Plan writerpublic RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq)
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getNonCumulativeCost(org.apache.calcite.rel.RelNode), which gives plugins a
chance to override the rel's default ideas about cost.
computeSelfCost in interface RelNodecomputeSelfCost in class TableScanplanner - Planner for cost calculationmq - Metadata querypublic static boolean canHandle(RelOptTable table)
public Enumerable<Object[]> bind(DataContext dataContext)
Bindableenvironment parameter provides the values in the root of the
environment (usually schemas).public Node implement(InterpretableRel.InterpreterImplementor implementor)
InterpretableRelimplement in interface InterpretableRelCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.