Class NativeTripleTerm
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractTripleTerm
org.eclipse.rdf4j.sail.nativerdf.model.NativeTripleTerm
- All Implemented Interfaces:
Serializable, TripleTerm, Value, NativeValue
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Type -
Field Summary
Fields inherited from interface NativeValue
UNKNOWN_ID -
Constructor Summary
ConstructorsConstructorDescriptionNativeTripleTerm(ValueStoreRevision revision, Resource subject, IRI predicate, Value object) NativeTripleTerm(ValueStoreRevision revision, Resource subject, IRI predicate, Value object, int internalID) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this triple to another object.intGets the ID that is used in the native store for this Value.Gets the object of this triple.Gets the predicate of this triple.Gets the subject of this triple.Gets the revision of the value store that created this value.voidsetInternalID(int id, ValueStoreRevision revision) Sets the ID that is used for this value in a specific revision of the value store.Methods inherited from class AbstractTripleTerm
hashCode, stringValue, toStringMethods inherited from interface TripleTerm
getType, isTripleTermMethods inherited from interface Value
isBNode, isIRI, isLiteral, isResource, stringValue
-
Constructor Details
-
NativeTripleTerm
-
NativeTripleTerm
public NativeTripleTerm(ValueStoreRevision revision, Resource subject, IRI predicate, Value object, int internalID)
-
-
Method Details
-
getSubject
Description copied from interface:TripleTermGets the subject of this triple.- Specified by:
getSubjectin interfaceTripleTerm- Returns:
- The triple's subject.
-
getPredicate
Description copied from interface:TripleTermGets the predicate of this triple.- Specified by:
getPredicatein interfaceTripleTerm- Returns:
- The triple's predicate.
-
getObject
Description copied from interface:TripleTermGets the object of this triple.- Specified by:
getObjectin interfaceTripleTerm- Returns:
- The triple's object.
-
setInternalID
Description copied from interface:NativeValueSets the ID that is used for this value in a specific revision of the value store.- Specified by:
setInternalIDin interfaceNativeValue
-
getInternalID
public int getInternalID()Description copied from interface:NativeValueGets the ID that is used in the native store for this Value.- Specified by:
getInternalIDin interfaceNativeValue- Returns:
- The value's ID, or
NativeValue.UNKNOWN_IDif not yet set.
-
getValueStoreRevision
Description copied from interface:NativeValueGets the revision of the value store that created this value. The value's internal ID is only valid when it's value store revision is equal to the value store's current revision.- Specified by:
getValueStoreRevisionin interfaceNativeValue- Returns:
- The revision of the value store that created this value at the time it last set the value's internal ID.
-
equals
Description copied from interface:TripleTermCompares this triple to another object.- Specified by:
equalsin interfaceTripleTerm- Overrides:
equalsin classAbstractTripleTerm- Parameters:
o- the object to compare this triple to- Returns:
trueif theotherobject is an instance ofTripleTermand if their subjects, predicates and objects are equal;falseotherwise
-