|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.BNodeImpl
org.openrdf.sail.memory.model.MemBNode
public class MemBNode
A MemoryStore-specific extension of BNodeImpl giving it node properties.
| Field Summary |
|---|
| Fields inherited from interface org.openrdf.sail.memory.model.MemValue |
|---|
EMPTY_LIST |
| Constructor Summary | |
|---|---|
MemBNode(Object creator,
String id)
Creates a new MemBNode for a bnode ID. |
|
| Method Summary | |
|---|---|
void |
addContextStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it represents the context. |
void |
addObjectStatement(MemStatement st)
Adds a statement to this MemValue's list of statements for which it is the object. |
void |
addSubjectStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it is the subject. |
void |
cleanSnapshotsFromContextStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from this MemValue's list of statements for which it is the context. |
void |
cleanSnapshotsFromObjectStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from this MemValue's list of statements for which it is the object. |
void |
cleanSnapshotsFromSubjectStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from this MemValue's list of statements for which it is the subject. |
int |
getContextStatementCount()
Gets the number of statements for which this MemResource represents the context. |
MemStatementList |
getContextStatementList()
Gets the list of statements for which this MemResource represents the context. |
Object |
getCreator()
Returns the object that created this MemValue. |
int |
getObjectStatementCount()
Gets the number of statements for which this MemValue is the object. |
MemStatementList |
getObjectStatementList()
Gets the list of statements for which this MemValue is the object. |
int |
getSubjectStatementCount()
Gets the number of statements for which this MemResource is the subject. |
MemStatementList |
getSubjectStatementList()
Gets the list of statements for which this MemResource is the subject. |
void |
removeContextStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it represents the context. |
void |
removeObjectStatement(MemStatement st)
Removes a statement from this MemValue's list of statements for which it is the object. |
void |
removeSubjectStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it is the subject. |
| Methods inherited from class org.openrdf.model.impl.BNodeImpl |
|---|
equals, getID, hashCode, setID, stringValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openrdf.model.Value |
|---|
stringValue |
| Constructor Detail |
|---|
public MemBNode(Object creator,
String id)
creator - The object that is creating this MemBNode.id - bnode ID.| Method Detail |
|---|
public Object getCreator()
MemValue
getCreator in interface MemValuepublic MemStatementList getSubjectStatementList()
MemResource
getSubjectStatementList in interface MemResourcepublic int getSubjectStatementCount()
MemResource
getSubjectStatementCount in interface MemResourcepublic void addSubjectStatement(MemStatement st)
MemResource
addSubjectStatement in interface MemResourcepublic void removeSubjectStatement(MemStatement st)
MemResource
removeSubjectStatement in interface MemResourcepublic void cleanSnapshotsFromSubjectStatements(int currentSnapshot)
MemResource
cleanSnapshotsFromSubjectStatements in interface MemResourcecurrentSnapshot - The current snapshot version.public MemStatementList getObjectStatementList()
MemValue
getObjectStatementList in interface MemValuepublic int getObjectStatementCount()
MemValue
getObjectStatementCount in interface MemValuepublic void addObjectStatement(MemStatement st)
MemValue
addObjectStatement in interface MemValuepublic void removeObjectStatement(MemStatement st)
MemValue
removeObjectStatement in interface MemValuepublic void cleanSnapshotsFromObjectStatements(int currentSnapshot)
MemValue
cleanSnapshotsFromObjectStatements in interface MemValuecurrentSnapshot - The current snapshot version.public MemStatementList getContextStatementList()
MemResource
getContextStatementList in interface MemResourcepublic int getContextStatementCount()
MemResource
getContextStatementCount in interface MemResourcepublic void addContextStatement(MemStatement st)
MemResource
addContextStatement in interface MemResourcepublic void removeContextStatement(MemStatement st)
MemResource
removeContextStatement in interface MemResourcepublic void cleanSnapshotsFromContextStatements(int currentSnapshot)
MemResource
cleanSnapshotsFromContextStatements in interface MemResourcecurrentSnapshot - The current snapshot version.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||