public final class LogicalFilter extends Filter
Filter
not targeted at any particular engine or
calling convention.
Temporarily copy from calcite to cherry-pick [CALCITE-5107] and will be removed when upgrade the latest calcite.
Constructor and Description |
---|
LogicalFilter(org.apache.calcite.rel.RelInput input)
Creates a LogicalFilter by parsing serialized output.
|
LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.rel.RelNode child,
org.apache.calcite.rex.RexNode condition)
Deprecated.
|
LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
List<org.apache.calcite.rel.hint.RelHint> hints,
org.apache.calcite.rel.RelNode child,
org.apache.calcite.rex.RexNode condition,
com.google.common.collect.ImmutableSet<org.apache.calcite.rel.core.CorrelationId> variablesSet)
Creates a LogicalFilter.
|
LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode child,
org.apache.calcite.rex.RexNode condition)
Deprecated.
|
LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode child,
org.apache.calcite.rex.RexNode condition,
com.google.common.collect.ImmutableSet<org.apache.calcite.rel.core.CorrelationId> variablesSet) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.rel.RelNode |
accept(org.apache.calcite.rel.RelShuttle shuttle) |
LogicalFilter |
copy(org.apache.calcite.plan.RelTraitSet traitSet,
org.apache.calcite.rel.RelNode input,
org.apache.calcite.rex.RexNode condition) |
static LogicalFilter |
create(org.apache.calcite.rel.RelNode input,
org.apache.calcite.rex.RexNode condition)
Creates a LogicalFilter.
|
static LogicalFilter |
create(org.apache.calcite.rel.RelNode input,
org.apache.calcite.rex.RexNode condition,
com.google.common.collect.ImmutableSet<org.apache.calcite.rel.core.CorrelationId> variablesSet)
Creates a LogicalFilter.
|
boolean |
deepEquals(Object obj) |
int |
deepHashCode() |
org.apache.calcite.rel.RelWriter |
explainTerms(org.apache.calcite.rel.RelWriter pw) |
Set<org.apache.calcite.rel.core.CorrelationId> |
getVariablesSet() |
org.apache.calcite.rel.RelNode |
withHints(List<org.apache.calcite.rel.hint.RelHint> hintList) |
accept, computeSelfCost, containsOver, copy, deepEquals0, deepHashCode0, estimateFilteredRows, estimateFilteredRows, estimateRowCount, getCondition, getHints, isValid
childrenAccept, deriveRowType, getInput, getInputs, replaceInput
collectVariablesSet, collectVariablesUsed, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, hashCode, isEnforcer, metadata, onRegister, recomputeDigest, register, sole, toString
public LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, List<org.apache.calcite.rel.hint.RelHint> hints, org.apache.calcite.rel.RelNode child, org.apache.calcite.rex.RexNode condition, com.google.common.collect.ImmutableSet<org.apache.calcite.rel.core.CorrelationId> variablesSet)
Use create(org.apache.calcite.rel.RelNode, org.apache.calcite.rex.RexNode)
unless you know what you're doing.
cluster
- Cluster that this relational expression belongs tohints
- Hints for this nodechild
- Input relational expressioncondition
- Boolean expression which determines whether a row is allowed to passvariablesSet
- Correlation variables set by this relational expression to be used by
nested expressionspublic LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode child, org.apache.calcite.rex.RexNode condition, com.google.common.collect.ImmutableSet<org.apache.calcite.rel.core.CorrelationId> variablesSet)
@Deprecated public LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode child, org.apache.calcite.rex.RexNode condition)
@Deprecated public LogicalFilter(org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.rel.RelNode child, org.apache.calcite.rex.RexNode condition)
public LogicalFilter(org.apache.calcite.rel.RelInput input)
public static LogicalFilter create(org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode condition)
public static LogicalFilter create(org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode condition, com.google.common.collect.ImmutableSet<org.apache.calcite.rel.core.CorrelationId> variablesSet)
public Set<org.apache.calcite.rel.core.CorrelationId> getVariablesSet()
getVariablesSet
in interface org.apache.calcite.rel.RelNode
getVariablesSet
in class org.apache.calcite.rel.AbstractRelNode
public LogicalFilter copy(org.apache.calcite.plan.RelTraitSet traitSet, org.apache.calcite.rel.RelNode input, org.apache.calcite.rex.RexNode condition)
public org.apache.calcite.rel.RelNode accept(org.apache.calcite.rel.RelShuttle shuttle)
accept
in interface org.apache.calcite.rel.RelNode
accept
in class org.apache.calcite.rel.AbstractRelNode
public org.apache.calcite.rel.RelWriter explainTerms(org.apache.calcite.rel.RelWriter pw)
explainTerms
in class Filter
public boolean deepEquals(Object obj)
deepEquals
in interface org.apache.calcite.rel.RelNode
deepEquals
in class org.apache.calcite.rel.AbstractRelNode
public int deepHashCode()
deepHashCode
in interface org.apache.calcite.rel.RelNode
deepHashCode
in class org.apache.calcite.rel.AbstractRelNode
public org.apache.calcite.rel.RelNode withHints(List<org.apache.calcite.rel.hint.RelHint> hintList)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.