Class MemResource
java.lang.Object
org.eclipse.rdf4j.sail.memory.model.MemResource
- All Implemented Interfaces:
Serializable, Resource, Value, MemValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Type -
Field Summary
Fields inherited from interface MemValue
EMPTY_LISTModifier and TypeFieldDescriptionstatic final MemStatementListA shared empty MemStatementList that is returned by MemURI and MemBNode to represent an empty list. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcleanSnapshotsFromContextStatements(int currentSnapshot) voidcleanSnapshotsFromSubjectStatements(int currentSnapshot) intintbooleanbooleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MemValue
addObjectStatement, cleanSnapshotsFromObjectStatements, getCreator, getObjectStatementCount, getObjectStatementList, hasObjectStatements, hasPredicateStatements, hasStatementsModifier and TypeMethodDescriptionvoidAdds a statement to this MemValue's list of statements for which it is the object.voidcleanSnapshotsFromObjectStatements(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 object.Returns the object that created this MemValue.intGets the number of statements for which this MemValue is the object.Gets the list of statements for which this MemValue is the object.booleanbooleanbooleanChecks whether this MemValue has any statements.Methods inherited from interface Resource
isResourceModifier and TypeMethodDescriptiondefault booleanCheck if the object is an instance of the given type.Methods inherited from interface Value
getType, isBNode, isIRI, isLiteral, isTriple, stringValueModifier and TypeMethodDescriptiondefault Value.TypegetType()default booleanisBNode()Check if the object is an instance of the given type.default booleanisIRI()Check if the object is an instance of the given type.default booleanCheck if the object is an instance of the given type.default booleanisTriple()Check if the object is an instance of the given type.Returns the String-value of a Value object.
-
Constructor Details
-
MemResource
public MemResource()
-
-
Method Details
-
getSubjectStatementList
-
getSubjectStatementCount
public int getSubjectStatementCount() -
addSubjectStatement
- Throws:
InterruptedException
-
cleanSnapshotsFromSubjectStatements
- Throws:
InterruptedException
-
hasSubjectStatements
public boolean hasSubjectStatements()- Specified by:
hasSubjectStatementsin interfaceMemValue
-
hasContextStatements
public boolean hasContextStatements()- Specified by:
hasContextStatementsin interfaceMemValue
-
getContextStatementList
-
getContextStatementCount
public int getContextStatementCount() -
addContextStatement
- Throws:
InterruptedException
-
cleanSnapshotsFromContextStatements
- Throws:
InterruptedException
-