|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saffron.opt.TableAccessMap
TableAccessMap
represents the tables accessed by a query plan,
with READ/WRITE information.
Nested Class Summary | |
private class |
TableAccessMap.TableRelVisitor
|
Field Summary | |
private Map |
accessMap
|
static String |
NO_ACCESS
Table is not accessed at all. |
static String |
READ_ACCESS
Table is accessed for read only. |
static String |
READWRITE_ACCESS
Table is accessed for both read and write. |
static String |
WRITE_ACCESS
Table is accessed for write only. |
Constructor Summary | |
TableAccessMap(SaffronRel rel)
Construct a TableAccessMap for all tables accessed by a SaffronRel and its descendants. |
Method Summary | |
Set |
getAccessedTables()
. |
String |
getTableAccessMode(SaffronTable table)
Determine the access mode of a table. |
boolean |
isTableAccessed(SaffronTable table)
Determine whether a table is accessed at all. |
boolean |
isTableAccessedForRead(SaffronTable table)
Determine whether a table is accessed for read. |
boolean |
isTableAccessedForWrite(SaffronTable table)
Determine 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 Map accessMap
public static final String READ_ACCESS
public static final String WRITE_ACCESS
public static final String READWRITE_ACCESS
public static final String NO_ACCESS
Constructor Detail |
public TableAccessMap(SaffronRel rel)
rel
- the SaffronRel for which to build the mapMethod Detail |
public boolean isTableAccessed(SaffronTable table)
table
- the table of interest
public boolean isTableAccessedForRead(SaffronTable table)
table
- the table of interest
public boolean isTableAccessedForWrite(SaffronTable table)
table
- the table of interest
public String getTableAccessMode(SaffronTable table)
table
- the table of interest
public Set getAccessedTables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |