Class MemResource
- java.lang.Object
-
- org.eclipse.rdf4j.sail.memory.model.MemResource
-
public abstract class MemResource extends java.lang.Object implements MemValue, Resource
A MemoryStore-specific extension of Resource giving it subject statements.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MemStatementList
contextStatements
The list of statements for which this MemURI represents the context.(package private) MemStatementList
subjectStatements
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 Constructor Description MemResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContextStatement(MemStatement st)
void
addSubjectStatement(MemStatement st)
void
cleanSnapshotsFromContextStatements(int currentSnapshot)
void
cleanSnapshotsFromSubjectStatements(int currentSnapshot)
int
getContextStatementCount()
MemStatementList
getContextStatementList()
int
getSubjectStatementCount()
MemStatementList
getSubjectStatementList()
boolean
hasContextStatements()
boolean
hasSubjectStatements()
-
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 Detail
-
subjectStatements
final transient MemStatementList subjectStatements
The list of statements for which this MemURI is the subject.
-
contextStatements
final transient MemStatementList contextStatements
The list of statements for which this MemURI represents the context.
-
-
Method Detail
-
getSubjectStatementList
public MemStatementList getSubjectStatementList()
-
getSubjectStatementCount
public int getSubjectStatementCount()
-
addSubjectStatement
public void addSubjectStatement(MemStatement st) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
cleanSnapshotsFromSubjectStatements
public void cleanSnapshotsFromSubjectStatements(int currentSnapshot) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
hasSubjectStatements
public boolean hasSubjectStatements()
- Specified by:
hasSubjectStatements
in interfaceMemValue
-
hasContextStatements
public boolean hasContextStatements()
- Specified by:
hasContextStatements
in interfaceMemValue
-
getContextStatementList
public MemStatementList getContextStatementList()
-
getContextStatementCount
public int getContextStatementCount()
-
addContextStatement
public void addContextStatement(MemStatement st) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
cleanSnapshotsFromContextStatements
public void cleanSnapshotsFromContextStatements(int currentSnapshot) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
-