Class MemStatement
- java.lang.Object
-
- org.eclipse.rdf4j.model.impl.GenericStatement<MemResource,MemIRI,MemValue>
-
- org.eclipse.rdf4j.sail.memory.model.MemStatement
-
- All Implemented Interfaces:
java.io.Serializable
,Statement
public class MemStatement extends GenericStatement<MemResource,MemIRI,MemValue>
A MemStatement is a Statement which contains context information and a flag indicating whether the statement is explicit or inferred.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
explicit
Flag indicating whether or not this statement has been added explicitly or that it has been inferred.private static org.slf4j.Logger
logger
private static long
serialVersionUID
private int
sinceSnapshot
Identifies the snapshot in which this statement was introduced.private static java.lang.invoke.VarHandle
TILL_SNAPSHOT
private int
tillSnapshot
Identifies the snapshot in which this statement was revoked, defaults toInteger.MAX_VALUE
.-
Fields inherited from class org.eclipse.rdf4j.model.impl.GenericStatement
context, object, predicate, subject
-
-
Constructor Summary
Constructors Constructor Description MemStatement(MemResource subject, MemIRI predicate, MemValue object, MemResource context, boolean explicit, int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context.MemStatement(MemResource subject, MemIRI predicate, MemValue object, MemResource context, int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context and marks it as 'explicit'.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addToComponentLists()
Lets this statement add itself to the appropriate statement lists of its subject, predicate, object and context.boolean
exactMatch(MemResource subject, MemIRI predicate, MemValue object, MemResource context)
int
getSinceSnapshot()
int
getTillSnapshot()
boolean
isExplicit()
boolean
isInSnapshot(int snapshot)
boolean
matchesContext(MemResource[] memContexts)
boolean
matchesSPO(MemResource subject, MemIRI predicate, MemValue object)
void
setExplicit(boolean explicit)
Deprecated, for removal: This API element is subject to removal in a future version.void
setTillSnapshot(int snapshot)
-
Methods inherited from class org.eclipse.rdf4j.model.impl.GenericStatement
equals, getContext, getObject, getPredicate, getSubject, hashCode, toString
-
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
explicit
private final boolean explicit
Flag indicating whether or not this statement has been added explicitly or that it has been inferred.
-
sinceSnapshot
private final int sinceSnapshot
Identifies the snapshot in which this statement was introduced.
-
tillSnapshot
private volatile int tillSnapshot
Identifies the snapshot in which this statement was revoked, defaults toInteger.MAX_VALUE
.
-
TILL_SNAPSHOT
private static final java.lang.invoke.VarHandle TILL_SNAPSHOT
-
-
Constructor Detail
-
MemStatement
public MemStatement(MemResource subject, MemIRI predicate, MemValue object, MemResource context, int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context and marks it as 'explicit'.
-
MemStatement
public MemStatement(MemResource subject, MemIRI predicate, MemValue object, MemResource context, boolean explicit, int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context. The value of the explicit parameter determines if this statement is marked as 'explicit' or not.
-
-
Method Detail
-
getSinceSnapshot
public int getSinceSnapshot()
-
setTillSnapshot
public void setTillSnapshot(int snapshot)
-
getTillSnapshot
public int getTillSnapshot()
-
isInSnapshot
public boolean isInSnapshot(int snapshot)
-
setExplicit
@Deprecated(since="4.0.0", forRemoval=true) public void setExplicit(boolean explicit)
Deprecated, for removal: This API element is subject to removal in a future version.
-
isExplicit
public boolean isExplicit()
-
addToComponentLists
public void addToComponentLists() throws java.lang.InterruptedException
Lets this statement add itself to the appropriate statement lists of its subject, predicate, object and context. The transaction status will be set to new.- Throws:
java.lang.InterruptedException
-
matchesSPO
public boolean matchesSPO(MemResource subject, MemIRI predicate, MemValue object)
-
matchesContext
public boolean matchesContext(MemResource[] memContexts)
-
exactMatch
public boolean exactMatch(MemResource subject, MemIRI predicate, MemValue object, MemResource context)
-
-