Interface MemResource
- All Superinterfaces:
MemValue
,Resource
,Serializable
,Value
A MemoryStore-specific extension of Resource giving it subject statements.
-
Field Summary
Fields inherited from interface org.eclipse.rdf4j.sail.memory.model.MemValue
EMPTY_LIST
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a statement to this MemResource's list of statements for which it represents the context.void
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
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
Gets the number of statements for which this MemResource represents the context.Gets the list of statements for which this MemResource represents the context.int
Gets the number of statements for which this MemResource is the subject.Gets the list of statements for which this MemResource is the subject.void
Removes a statement from this MemResource's list of statements for which it represents the context.void
Removes a statement from this MemResource's list of statements for which it is the subject.Methods inherited from interface org.eclipse.rdf4j.sail.memory.model.MemValue
addObjectStatement, cleanSnapshotsFromObjectStatements, getCreator, getObjectStatementCount, getObjectStatementList, hasStatements, removeObjectStatement
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
Method Details
-
getSubjectStatementList
MemStatementList getSubjectStatementList()Gets the list of statements for which this MemResource is the subject.- Returns:
- a MemStatementList containing the statements.
-
getSubjectStatementCount
int getSubjectStatementCount()Gets the number of statements for which this MemResource is the subject.- Returns:
- An integer larger than or equal to 0.
-
addSubjectStatement
Adds a statement to this MemResource's list of statements for which it is the subject.- Parameters:
st
-
-
removeSubjectStatement
Removes a statement from this MemResource's list of statements for which it is the subject.- Parameters:
st
-
-
cleanSnapshotsFromSubjectStatements
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.- Parameters:
currentSnapshot
- The current snapshot version.
-
getContextStatementList
MemStatementList getContextStatementList()Gets the list of statements for which this MemResource represents the context.- Returns:
- a MemStatementList containing the statements.
-
getContextStatementCount
int getContextStatementCount()Gets the number of statements for which this MemResource represents the context.- Returns:
- An integer larger than or equal to 0.
-
addContextStatement
Adds a statement to this MemResource's list of statements for which it represents the context.- Parameters:
st
-
-
removeContextStatement
Removes a statement from this MemResource's list of statements for which it represents the context.- Parameters:
st
-
-
cleanSnapshotsFromContextStatements
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.- Parameters:
currentSnapshot
- The current snapshot version.
-