public class ElasticsearchToEnumerableConverter extends ConverterImpl implements EnumerableRel
EnumerableRel.Prefer, EnumerableRel.ResultRelNode.ContextinTraits, traitDefdigest, id, rowType, traitSetFILTER_FACTORY, PROJECT_FACTORY| Modifier | Constructor and Description |
|---|---|
protected |
ElasticsearchToEnumerableConverter(RelOptCluster cluster,
RelTraitSet traits,
RelNode input) |
| Modifier and Type | Method and Description |
|---|---|
RelOptCost |
computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq)
Returns the cost of this plan (not including children).
|
private static <T> MethodCallExpression |
constantArrayList(List<T> values,
Class clazz)
E.g.
|
private static <T> List<Expression> |
constantList(List<T> values)
E.g.
|
RelNode |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
EnumerableRel.Result |
implement(EnumerableRelImplementor implementor,
EnumerableRel.Prefer prefer)
Creates a plan for this expression according to a calling convention.
|
cannotImplement, getInputTraits, getTraitDefchildrenAccept, deriveRowType, estimateRowCount, explainTerms, getInput, getInputs, replaceInputaccept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, 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, register, replaceInputgetCluster, getDescription, getDigest, getId, getTraitSetprotected ElasticsearchToEnumerableConverter(RelOptCluster cluster, RelTraitSet traits, RelNode input)
public 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 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 ConverterImplplanner - Planner for cost calculationmq - Metadata querypublic EnumerableRel.Result implement(EnumerableRelImplementor implementor, EnumerableRel.Prefer prefer)
EnumerableRelimplement in interface EnumerableRelimplementor - Implementorprefer - Preferred representation for rows in result expressionprivate static <T> MethodCallExpression constantArrayList(List<T> values, Class clazz)
constantArrayList("x", "y") returns
"Arrays.asList('x', 'y')".private static <T> List<Expression> constantList(List<T> values)
constantList("x", "y") returns
{ConstantExpression("x"), ConstantExpression("y")}.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.