|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.relopt.TableAccessMap
public class TableAccessMap
TableAccessMap
represents the tables accessed by a query plan,
with READ/WRITE information.
Nested Class Summary | |
---|---|
static class |
TableAccessMap.Mode
|
private class |
TableAccessMap.TableRelVisitor
|
Field Summary | |
---|---|
private Map<List<String>,TableAccessMap.Mode> |
accessMap
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Map<List<String>,TableAccessMap.Mode> accessMap
Constructor Detail |
---|
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 tableMethod Detail |
---|
public Set<List<String>> getTablesAccessed()
public boolean isTableAccessed(List<String> tableName)
tableName
- qualified name of the table of interest
public boolean isTableAccessedForRead(List<String> tableName)
tableName
- qualified name of the table of interest
public boolean isTableAccessedForWrite(List<String> tableName)
tableName
- qualified name of the table of interest
public TableAccessMap.Mode getTableAccessMode(List<String> tableName)
tableName
- qualified name of the table of interest
public List<String> getQualifiedName(RelOptTable table)
table
- table of interest
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |