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 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
-
-
-
-
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:
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 InterruptedException
- Throws:
InterruptedException
-
cleanSnapshotsFromContextStatements
public void cleanSnapshotsFromContextStatements(int currentSnapshot) throws InterruptedException
- Throws:
InterruptedException
-
-