Package org.apache.calcite.rel
Class RelNodes
java.lang.Object
org.apache.calcite.rel.RelNodes
Utilities concerning relational expressions.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Comparator<RelNode>
Comparator that provides an arbitrary but stable ordering toRelNode
s.static final com.google.common.collect.Ordering<RelNode>
Ordering forRelNode
s. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareRels
(RelNode[] rels0, RelNode[] rels1) Compares arrays ofRelNode
.static boolean
contains
(RelNode rel, Predicate<AggregateCall> aggPredicate, RexUtil.RexFinder finder) static void
findRex
(RelNode rel, RexUtil.RexFinder finder, Predicate<AggregateCall> aggPredicate, BiConsumer<RelNode, @Nullable RexNode> consumer) Searches for expressions in a tree ofRelNode
s.
-
Field Details
-
Method Details
-
compareRels
Compares arrays ofRelNode
. -
contains
public static boolean contains(RelNode rel, Predicate<AggregateCall> aggPredicate, RexUtil.RexFinder finder) -
findRex
public static void findRex(RelNode rel, RexUtil.RexFinder finder, Predicate<AggregateCall> aggPredicate, BiConsumer<RelNode, @Nullable RexNode> consumer) Searches for expressions in a tree ofRelNode
s.
-