public class ElasticsearchTableScan extends TableScan implements ElasticsearchRel
Additional operations might be applied, using the "find" method.
ElasticsearchRel.ImplementorRelNode.Context| Modifier and Type | Field and Description |
|---|---|
private AbstractElasticsearchTable |
elasticsearchTable |
private RelDataType |
projectRowType |
digest, id, rowType, traitSetCONVENTION| Modifier | Constructor and Description |
|---|---|
protected |
ElasticsearchTableScan(RelOptCluster cluster,
RelTraitSet traitSet,
RelOptTable table,
AbstractElasticsearchTable elasticsearchTable,
RelDataType projectRowType)
Creates an ElasticsearchTableScan.
|
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq)
Returns the cost of this plan (not including children).
|
RelNode |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
RelDataType |
deriveRowType() |
void |
implement(ElasticsearchRel.Implementor implementor) |
void |
register(RelOptPlanner planner)
Registers any special rules specific to this kind of relational
expression.
|
accept, estimateRowCount, explainTerms, getCollationList, getTable, identity, identity, projectaccept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, 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, replaceInput, sole, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetprivate final AbstractElasticsearchTable elasticsearchTable
private final RelDataType projectRowType
protected ElasticsearchTableScan(RelOptCluster cluster, RelTraitSet traitSet, RelOptTable table, AbstractElasticsearchTable elasticsearchTable, RelDataType projectRowType)
cluster - ClustertraitSet - Trait settable - TableelasticsearchTable - Elasticsearch tableprojectRowType - Fields and types to project; null to project raw rowpublic RelNode copy(RelTraitSet traitSet, List<RelNode> inputs)
RelNodeSub-classes with other important attributes are encouraged to create variants of this method with more parameters.
copy in interface RelNodecopy in class AbstractRelNodetraitSet - Trait setinputs - Inputspublic RelDataType deriveRowType()
deriveRowType in class TableScanpublic 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 void register(RelOptPlanner planner)
RelNodeThe planner calls this method this first time that it sees a
relational expression of this class. The derived class should call
RelOptPlanner.addRule(org.apache.calcite.plan.RelOptRule) for each rule, and
then call super.register.
register in interface RelNoderegister in class AbstractRelNodeplanner - Planner to be used to register additional relational
expressionspublic void implement(ElasticsearchRel.Implementor implementor)
implement in interface ElasticsearchRelCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.