public class TableAccessMap extends Object
TableAccessMap represents the tables accessed by a query plan,
with READ/WRITE information.| Modifier and Type | Class and Description |
|---|---|
static class |
TableAccessMap.Mode
Access mode.
|
| Constructor and Description |
|---|
TableAccessMap()
Constructs a permanently empty TableAccessMap.
|
TableAccessMap(List<String> table,
TableAccessMap.Mode mode)
Constructs a TableAccessMap for a single table
|
TableAccessMap(RelNode rel)
Constructs a TableAccessMap for all tables accessed by a RelNode and its
descendants.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getQualifiedName(RelOptTable table)
Constructs a qualified name for an optimizer table reference.
|
TableAccessMap.Mode |
getTableAccessMode(List<String> tableName)
Determines the access mode of a table.
|
Set<List<String>> |
getTablesAccessed() |
boolean |
isTableAccessed(List<String> tableName)
Determines whether a table is accessed at all.
|
boolean |
isTableAccessedForRead(List<String> tableName)
Determines whether a table is accessed for read.
|
boolean |
isTableAccessedForWrite(List<String> tableName)
Determines whether a table is accessed for write.
|
public TableAccessMap()
public TableAccessMap(RelNode rel)
rel - the RelNode for which to build the mappublic TableAccessMap(List<String> table, TableAccessMap.Mode mode)
table - fully qualified name of the table, represented as a listmode - access mode for the tablepublic Set<List<String>> getTablesAccessed()
public boolean isTableAccessed(List<String> tableName)
tableName - qualified name of the table of interestpublic boolean isTableAccessedForRead(List<String> tableName)
tableName - qualified name of the table of interestpublic boolean isTableAccessedForWrite(List<String> tableName)
tableName - qualified name of the table of interestpublic TableAccessMap.Mode getTableAccessMode(List<String> tableName)
tableName - qualified name of the table of interestpublic List<String> getQualifiedName(RelOptTable table)
table - table of interestCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.