|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.cwi.sen1.visbase.rstorecontainer.RStoreTracker
public class RStoreTracker
Keeps track of the Rtuples associated to a RStore. Manages the identifiers.
Field Summary | |
---|---|
private java.util.Map<java.lang.String,java.lang.Integer> |
m_identifiedRTuplesMap
|
private java.util.Map<java.lang.Integer,nl.cwi.sen1.relationstores.types.RTuple> |
m_loadedRTuplesMap
|
private static org.apache.commons.logging.Log |
m_log
|
private nl.cwi.sen1.relationstores.types.RStore |
m_RStore
|
Constructor Summary | |
---|---|
RStoreTracker(nl.cwi.sen1.relationstores.types.RStore rStore)
Default Constructor. |
Method Summary | |
---|---|
static java.lang.String |
createIdentifierForRTuple(nl.cwi.sen1.relationstores.types.RTuple rTuple)
Used to create a textual identifier for a RTuple |
static boolean |
diffRtuples(nl.cwi.sen1.relationstores.types.RTuple existingRTuple,
nl.cwi.sen1.relationstores.types.RTuple newRTuple)
Checks if RTuples differ from eachother |
FactInfoList |
getFactInfoFromRStore()
Creates a list of FactInfo objects containing the descriptive data from the found facts (using the RTuples in the RStore). |
nl.cwi.sen1.relationstores.types.RStore |
getRStore()
Simple getter |
nl.cwi.sen1.relationstores.types.RTuple |
getRTuple(int id)
Simple getter |
protected void |
registerNewRTuple(nl.cwi.sen1.relationstores.types.RTuple rTuple)
Registers |
java.util.List<java.lang.Integer> |
update(nl.cwi.sen1.relationstores.types.RStore updatedRStore)
Updates this tracker with new, deleted or updated facts |
private void |
updateRStore(nl.cwi.sen1.relationstores.types.RStore rStore)
Updates this tracker with the given RStore |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log m_log
private nl.cwi.sen1.relationstores.types.RStore m_RStore
private java.util.Map<java.lang.Integer,nl.cwi.sen1.relationstores.types.RTuple> m_loadedRTuplesMap
private java.util.Map<java.lang.String,java.lang.Integer> m_identifiedRTuplesMap
Constructor Detail |
---|
public RStoreTracker(nl.cwi.sen1.relationstores.types.RStore rStore)
rStore
-
java.lang.RuntimeException
- if rStore input is nullMethod Detail |
---|
private void updateRStore(nl.cwi.sen1.relationstores.types.RStore rStore)
rStore
- public java.util.List<java.lang.Integer> update(nl.cwi.sen1.relationstores.types.RStore updatedRStore)
updatedRStore
-
public nl.cwi.sen1.relationstores.types.RStore getRStore()
public nl.cwi.sen1.relationstores.types.RTuple getRTuple(int id)
id
-
public FactInfoList getFactInfoFromRStore()
public static boolean diffRtuples(nl.cwi.sen1.relationstores.types.RTuple existingRTuple, nl.cwi.sen1.relationstores.types.RTuple newRTuple)
existingRTuple
- newRTuple
-
java.lang.RuntimeException
- if input is nullprotected void registerNewRTuple(nl.cwi.sen1.relationstores.types.RTuple rTuple)
rTuple
-
java.lang.RuntimeException
- if rtuple is nullpublic static java.lang.String createIdentifierForRTuple(nl.cwi.sen1.relationstores.types.RTuple rTuple)
rTuple
-
java.lang.RuntimeException
- if rtuple is null
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |