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| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.linq4j.Enumerable<Object[]> |
bind(DataContext dataContext)
Executes this statement and returns an enumerable which will yield rows.
|
static boolean |
canHandle(RelOptTable table) |
@Nullable 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, getHints, getTable, identity, identity, projectaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, copy, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, replaceInput, sole, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, copy, deepEquals, deepHashCode, estimateRowCount, explain, explain, fieldIsNullable, getConvention, getCorrelVariable, getDigest, getExpectedInputRowType, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTable, getVariablesSet, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, replaceInputgetCluster, getDescription, getId, getTraitSetattachHints, withHintspublic 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
RelWriter.input(String, RelNode)
and
RelWriter.item(String, Object)
methods for each input and attribute.explainTerms in class TableScanpw - Plan writerpublic @Nullable 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 org.apache.calcite.linq4j.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-2022 Apache Software Foundation. All Rights Reserved.