public static class Bindables.BindableTableScan extends TableScan implements BindableRel
ScannableTable and therefore can
be converted into an Enumerable.InterpretableRel.InterpreterImplementor| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<RexNode> |
filters |
ImmutableIntList |
projects |
digest, id, rowType, traitSet| 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)
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, getCollationList, getRows, getTable, identity, identity, isKey, projectaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, copy, explain, getChildExps, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRowType, getTraitSet, getVariablesStopped, isDistinct, isValid, metadata, onRegister, recomputeDigest, register, replaceInput, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, copy, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetpublic final com.google.common.collect.ImmutableList<RexNode> filters
public final ImmutableIntList projects
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)
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 calculationpublic 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–2015 The Apache Software Foundation. All rights reserved.