Class CommonRelExpressionRegistry

java.lang.Object
org.apache.calcite.plan.CommonRelExpressionRegistry

@API(since="1.41.0", status=INTERNAL) public final class CommonRelExpressionRegistry extends Object
A registry of common relational expressions for a given query.

The registry is only meant to hold common expressions for a single query.

The class is not thread-safe.

  • Constructor Details

    • CommonRelExpressionRegistry

      public CommonRelExpressionRegistry()
  • Method Details

    • add

      public void add(RelNode rel)
      Adds the specified expression to this registry.
      Parameters:
      rel - a relational expression to be added to the registry.
    • entries

      public Stream<RelNode> entries()
      Returns a stream with all expression entries.
      Returns:
      a stream with all expression entries