Class StarTable

java.lang.Object
org.apache.calcite.schema.impl.AbstractTable
org.apache.calcite.schema.impl.StarTable
All Implemented Interfaces:
Table, TranslatableTable, Wrapper

public class StarTable extends AbstractTable implements TranslatableTable
Virtual table that is composed of two or more tables joined together.

Star tables do not occur in end-user queries. They are introduced by the optimizer to help matching queries to materializations, and used only during the planning process.

When a materialization is defined, if it involves a join, it is converted to a query on top of a star table. Queries that are candidates to map onto the materialization are mapped onto the same star table.

  • Field Details

    • lattice

      public final Lattice lattice
    • tables

      public final com.google.common.collect.ImmutableList<Table> tables
    • fieldCounts

      public @MonotonicNonNull ImmutableIntList fieldCounts
      Number of fields in each table's row type.
  • Method Details