Package org.apache.calcite.plan
Class TableAccessMap
java.lang.Object
org.apache.calcite.plan.TableAccessMap
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.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDeprecated.Constructs a permanently empty TableAccessMap.TableAccessMap
(List<String> table, TableAccessMap.Mode mode) Deprecated.Constructs a TableAccessMap for a single table.TableAccessMap
(RelNode rel) Deprecated.Constructs a TableAccessMap for all tables accessed by a RelNode and its descendants. -
Method Summary
Modifier and TypeMethodDescriptiongetQualifiedName
(RelOptTable table) Deprecated.Constructs a qualified name for an optimizer table reference.getTableAccessMode
(List<String> tableName) Deprecated.Determines the access mode of a table.Deprecated.Returns a set of qualified names for all tables accessed.boolean
isTableAccessed
(List<String> tableName) Deprecated.Determines whether a table is accessed at all.boolean
isTableAccessedForRead
(List<String> tableName) Deprecated.Determines whether a table is accessed for read.boolean
isTableAccessedForWrite
(List<String> tableName) Deprecated.Determines whether a table is accessed for write.
-
Constructor Details
-
TableAccessMap
public TableAccessMap()Deprecated.Constructs a permanently empty TableAccessMap. -
TableAccessMap
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
Deprecated.Constructs a TableAccessMap for a single table.- Parameters:
table
- fully qualified name of the table, represented as a listmode
- access mode for the table
-
-
Method Details
-
getTablesAccessed
Deprecated.Returns a set of qualified names for all tables accessed. -
isTableAccessed
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
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
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
Deprecated.Determines the access mode of a table.- Parameters:
tableName
- qualified name of the table of interest- Returns:
- access mode
-
getQualifiedName
Deprecated.Constructs a qualified name for an optimizer table reference.- Parameters:
table
- table of interest- Returns:
- qualified name
-