Class MemResource
java.lang.Object
org.eclipse.rdf4j.sail.memory.model.MemResource
- All Implemented Interfaces:
Serializable
,Resource
,Value
,MemValue
A MemoryStore-specific extension of Resource giving it subject statements.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final MemStatementList
The list of statements for which this MemURI represents the context.(package private) final MemStatementList
The list of statements for which this MemURI is the subject.Fields inherited from interface org.eclipse.rdf4j.sail.memory.model.MemValue
EMPTY_LIST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
cleanSnapshotsFromContextStatements
(int currentSnapshot) void
cleanSnapshotsFromSubjectStatements
(int currentSnapshot) int
int
boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sail.memory.model.MemValue
addObjectStatement, cleanSnapshotsFromObjectStatements, getCreator, getObjectStatementCount, getObjectStatementList, hasObjectStatements, hasPredicateStatements, hasStatements
Methods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
Field Details
-
subjectStatements
The list of statements for which this MemURI is the subject. -
contextStatements
The list of statements for which this MemURI represents the context.
-
-
Constructor Details
-
MemResource
public MemResource()
-
-
Method Details
-
getSubjectStatementList
-
getSubjectStatementCount
public int getSubjectStatementCount() -
addSubjectStatement
- Throws:
InterruptedException
-
cleanSnapshotsFromSubjectStatements
- Throws:
InterruptedException
-
hasSubjectStatements
public boolean hasSubjectStatements()- Specified by:
hasSubjectStatements
in interfaceMemValue
-
hasContextStatements
public boolean hasContextStatements()- Specified by:
hasContextStatements
in interfaceMemValue
-
getContextStatementList
-
getContextStatementCount
public int getContextStatementCount() -
addContextStatement
- Throws:
InterruptedException
-
cleanSnapshotsFromContextStatements
- Throws:
InterruptedException
-