Class MemResource
- java.lang.Object
-
- org.eclipse.rdf4j.sail.memory.model.MemResource
-
- All Implemented Interfaces:
Serializable,Resource,Value,MemValue
public abstract class MemResource extends Object implements MemValue, Resource
A MemoryStore-specific extension of Resource giving it subject statements.- See Also:
- Serialized Form
-
-
Field Summary
-
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 voidaddContextStatement(MemStatement st)voidaddSubjectStatement(MemStatement st)voidcleanSnapshotsFromContextStatements(int currentSnapshot)voidcleanSnapshotsFromSubjectStatements(int currentSnapshot)intgetContextStatementCount()MemStatementListgetContextStatementList()intgetSubjectStatementCount()MemStatementListgetSubjectStatementList()booleanhasContextStatements()booleanhasSubjectStatements()-
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
-
-
-
-
Method Detail
-
getSubjectStatementList
public MemStatementList getSubjectStatementList()
-
getSubjectStatementCount
public int getSubjectStatementCount()
-
addSubjectStatement
public void addSubjectStatement(MemStatement st) throws InterruptedException
- Throws:
InterruptedException
-
cleanSnapshotsFromSubjectStatements
public void cleanSnapshotsFromSubjectStatements(int currentSnapshot) throws InterruptedException- Throws:
InterruptedException
-
hasSubjectStatements
public boolean hasSubjectStatements()
- Specified by:
hasSubjectStatementsin interfaceMemValue
-
hasContextStatements
public boolean hasContextStatements()
- Specified by:
hasContextStatementsin interfaceMemValue
-
getContextStatementList
public MemStatementList getContextStatementList()
-
getContextStatementCount
public int getContextStatementCount()
-
addContextStatement
public void addContextStatement(MemStatement st) throws InterruptedException
- Throws:
InterruptedException
-
cleanSnapshotsFromContextStatements
public void cleanSnapshotsFromContextStatements(int currentSnapshot) throws InterruptedException- Throws:
InterruptedException
-
-