Class TableAccessMap

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

@Deprecated public class TableAccessMap extends Object
Deprecated.
As of 1.30.0, if you need to know how tables in a plan are accessed you are encouraged to implement your own logic (using a RelNode visitor or other). The class is not used anywhere in the project and remains untested thus it is deprecated.
TableAccessMap represents the tables accessed by a query plan, with READ/WRITE information.
  • Constructor Details

    • TableAccessMap

      public TableAccessMap()
      Deprecated.
      Constructs a permanently empty TableAccessMap.
    • TableAccessMap

      public TableAccessMap(RelNode rel)
      Deprecated.
      Constructs a TableAccessMap for all tables accessed by a RelNode and its descendants.
      Parameters:
      rel - the RelNode for which to build the map
    • TableAccessMap

      public TableAccessMap(List<String> table, TableAccessMap.Mode mode)
      Deprecated.
      Constructs a TableAccessMap for a single table.
      Parameters:
      table - fully qualified name of the table, represented as a list
      mode - access mode for the table
  • Method Details

    • getTablesAccessed

      public Set<List<String>> getTablesAccessed()
      Deprecated.
      Returns a set of qualified names for all tables accessed.
    • isTableAccessed

      public boolean isTableAccessed(List<String> tableName)
      Deprecated.
      Determines whether a table is accessed at all.
      Parameters:
      tableName - qualified name of the table of interest
      Returns:
      true if table is accessed
    • isTableAccessedForRead

      public boolean isTableAccessedForRead(List<String> tableName)
      Deprecated.
      Determines whether a table is accessed for read.
      Parameters:
      tableName - qualified name of the table of interest
      Returns:
      true if table is accessed for read
    • isTableAccessedForWrite

      public boolean isTableAccessedForWrite(List<String> tableName)
      Deprecated.
      Determines whether a table is accessed for write.
      Parameters:
      tableName - qualified name of the table of interest
      Returns:
      true if table is accessed for write
    • getTableAccessMode

      public TableAccessMap.Mode getTableAccessMode(List<String> tableName)
      Deprecated.
      Determines the access mode of a table.
      Parameters:
      tableName - qualified name of the table of interest
      Returns:
      access mode
    • getQualifiedName

      public List<String> getQualifiedName(RelOptTable table)
      Deprecated.
      Constructs a qualified name for an optimizer table reference.
      Parameters:
      table - table of interest
      Returns:
      qualified name