Package org.apache.calcite.materialize
Class LatticeRootNode
- java.lang.Object
-
- org.apache.calcite.materialize.LatticeNode
-
- org.apache.calcite.materialize.LatticeRootNode
-
public class LatticeRootNode extends LatticeNode
Root node in aLattice
. It has no parent.
-
-
Field Summary
Fields Modifier and Type Field Description com.google.common.collect.ImmutableList<LatticeNode>
descendants
Descendants, in prefix order.(package private) com.google.common.collect.ImmutableList<Path>
paths
-
Constructor Summary
Constructors Constructor Description LatticeRootNode(LatticeSpace space, MutableNode mutableNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(LatticeRootNode node)
Whether this node's graph is a super-set of (or equal to) another node's graph.private com.google.common.collect.ImmutableList<Path>
createPaths(LatticeSpace space)
(package private) boolean
isValid(Litmus litmus)
Validates that nodes form a tree; each node except the first references a predecessor.(package private) void
use(java.util.List<LatticeNode> usedNodes)
-
Methods inherited from class org.apache.calcite.materialize.LatticeNode
createPathsRecurse, flattenTo, relOptTable, toString
-
-
-
-
Field Detail
-
descendants
public final com.google.common.collect.ImmutableList<LatticeNode> descendants
Descendants, in prefix order. This root node is at position 0.
-
paths
final com.google.common.collect.ImmutableList<Path> paths
-
-
Constructor Detail
-
LatticeRootNode
LatticeRootNode(LatticeSpace space, MutableNode mutableNode)
-
-
Method Detail
-
createPaths
private com.google.common.collect.ImmutableList<Path> createPaths(LatticeSpace space)
-
use
void use(java.util.List<LatticeNode> usedNodes)
- Specified by:
use
in classLatticeNode
-
isValid
boolean isValid(Litmus litmus)
Validates that nodes form a tree; each node except the first references a predecessor.
-
contains
public boolean contains(LatticeRootNode node)
Whether this node's graph is a super-set of (or equal to) another node's graph.
-
-