|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FarragoSessionIndexMap
FarragoSessionIndexMap defines a means for mapping CWM index definitions to corresponding physical storage.
Method Summary | |
---|---|
FarragoMedLocalIndexStats |
computeIndexStats(FarragoDataWrapperCache wrapperCache,
FemLocalIndex index,
boolean estimate)
Verifies an index and records returns page count for the index. |
void |
createIndexStorage(FarragoDataWrapperCache wrapperCache,
FemLocalIndex index)
Creates an index and records its root in this map. |
long |
createIndexStorage(FarragoDataWrapperCache wrapperCache,
FemLocalIndex index,
boolean updateMap)
Creates an index and optionally records its root in this map. |
void |
dropIndexStorage(FarragoDataWrapperCache wrapperCache,
FemLocalIndex index,
boolean truncate)
Drops an index and removes its root from this map. |
void |
dropIndexStorage(FarragoDataWrapperCache wrapperCache,
String indexMofId,
boolean truncate)
Drops an index by MOFID and removes its root from this map. |
FemLocalIndex |
getIndexById(long id)
Gets an index by its repository ID. |
long |
getIndexRoot(FemLocalIndex index)
Gets the root PageId of an index to be used for reading. |
long |
getIndexRoot(FemLocalIndex index,
boolean write)
Gets the root PageId of an index to be used for reading or for writing. |
CwmTable |
getOldTableStructure()
For ALTER TABLE ADD COLUMN, retrieves the old table structure corresponding to the table being modified. |
CwmTable |
getReloadTable()
For ALTER TABLE ADD COLUMN or REBUILD, retrieves the target table. |
void |
instantiateTemporaryTable(FarragoDataWrapperCache wrapperCache,
CwmTable table)
Called on every reference to a temporary table. |
void |
onCommit()
Commit hook. |
void |
setIndexRoot(FemLocalIndex index,
long pageId)
Sets the root PageId of an index. |
void |
versionIndexRoot(FarragoDataWrapperCache wrapperCache,
FemLocalIndex index,
Long newRoot)
Versions an index root page. |
Method Detail |
---|
FemLocalIndex getIndexById(long id)
id
- index ID in repository
long getIndexRoot(FemLocalIndex index)
index
- the index of interest
long getIndexRoot(FemLocalIndex index, boolean write)
index
- the index of interestwrite
- whether to access a root for reading or writing. A root for
reading reflects the index before modifications. A root for writing may
be the same root, or may reflect an updated index, depending on the
implementation of the session index map.
void setIndexRoot(FemLocalIndex index, long pageId)
index
- the index to be updatedpageId
- the root PageIdvoid instantiateTemporaryTable(FarragoDataWrapperCache wrapperCache, CwmTable table)
wrapperCache
- cache for looking up data wrapperstable
- the temporary tableCwmTable getReloadTable()
CwmTable getOldTableStructure()
void createIndexStorage(FarragoDataWrapperCache wrapperCache, FemLocalIndex index)
wrapperCache
- cache for looking up data wrappersindex
- the index to createlong createIndexStorage(FarragoDataWrapperCache wrapperCache, FemLocalIndex index, boolean updateMap)
wrapperCache
- cache for looking up data wrappersindex
- the index to createupdateMap
- whether to record the new root in the map
void dropIndexStorage(FarragoDataWrapperCache wrapperCache, FemLocalIndex index, boolean truncate)
wrapperCache
- cache for looking up data wrappersindex
- the index to droptruncate
- if true, only truncate storage; if false, drop storage
entirelyvoid dropIndexStorage(FarragoDataWrapperCache wrapperCache, String indexMofId, boolean truncate)
wrapperCache
- cache for looking up data wrappersindexMofId
- MOFID of the index to droptruncate
- if true, only truncate storage; if false, drop storage
entirelyFarragoMedLocalIndexStats computeIndexStats(FarragoDataWrapperCache wrapperCache, FemLocalIndex index, boolean estimate)
wrapperCache
- cache for looking up data wrappersindex
- the index to verify
void onCommit()
void versionIndexRoot(FarragoDataWrapperCache wrapperCache, FemLocalIndex index, Long newRoot)
wrapperCache
- Wrapper cacheindex
- Index definitionnewRoot
- new index root ids
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |