Class LmdbIRI
java.lang.Object
org.eclipse.rdf4j.model.base.AbstractIRI
org.eclipse.rdf4j.model.impl.SimpleIRI
org.eclipse.rdf4j.sail.lmdb.model.LmdbIRI
- All Implemented Interfaces:
Serializable,IRI,Resource,Value,LmdbResource,LmdbValue
- See Also:
-
Field Summary
Fields inherited from interface org.eclipse.rdf4j.sail.lmdb.model.LmdbValue
UNKNOWN_ID -
Constructor Summary
ConstructorsConstructorDescriptionLmdbIRI(ValueStoreRevision revision, long internalID) LmdbIRI(ValueStoreRevision revision, String uri) LmdbIRI(ValueStoreRevision revision, String uri, long internalID) LmdbIRI(ValueStoreRevision revision, String namespace, String localname) LmdbIRI(ValueStoreRevision revision, String namespace, String localname, long internalID) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this IRI to another object.longGets the ID that is used in the lmdb store for this Value.Gets the local name part of this IRI.Gets the namespace part of this IRI.Gets the revision of the value store that created this value.protected voidinit()voidsetInternalID(long internalID, ValueStoreRevision revision) Sets the ID that is used for this value in a specific revision of the value store.voidsetIRIString(String iriString) Returns the String-value of a Value object.protected ObjectMethods inherited from class org.eclipse.rdf4j.model.impl.SimpleIRI
setIRIStringMethods inherited from class org.eclipse.rdf4j.model.base.AbstractIRI
hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.model.Resource
isResource
-
Constructor Details
-
LmdbIRI
-
LmdbIRI
-
LmdbIRI
-
LmdbIRI
-
LmdbIRI
-
-
Method Details
-
setInternalID
Description copied from interface:LmdbValueSets the ID that is used for this value in a specific revision of the value store.- Specified by:
setInternalIDin interfaceLmdbValue
-
getValueStoreRevision
Description copied from interface:LmdbValueGets 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 interfaceLmdbValue- Returns:
- The revision of the value store that created this value at the time it last set the value's internal ID.
-
getInternalID
public long getInternalID()Description copied from interface:LmdbValueGets the ID that is used in the lmdb store for this Value.- Specified by:
getInternalIDin interfaceLmdbValue- Returns:
- The value's ID, or
LmdbValue.UNKNOWN_IDif not yet set.
-
setIRIString
- Overrides:
setIRIStringin classSimpleIRI
-
getNamespace
Description copied from interface:IRIGets the namespace part of this IRI.The namespace is defined as per the algorithm described in the class documentation.
- Specified by:
getNamespacein interfaceIRI- Overrides:
getNamespacein classSimpleIRI- Returns:
- the namespace of this IRI
-
getLocalName
Description copied from interface:IRIGets the local name part of this IRI.The local name is defined as per the algorithm described in the class documentation.
- Specified by:
getLocalNamein interfaceIRI- Overrides:
getLocalNamein classSimpleIRI- Returns:
- the local name of this IRI
-
stringValue
Description copied from interface:ValueReturns the String-value of a Value object. This returns either aLiteral's label, aIRI's URI or aBNode's ID.- Specified by:
stringValuein interfaceValue- Overrides:
stringValuein classSimpleIRI
-
init
protected void init() -
equals
Description copied from interface:IRICompares this IRI to another object.- Specified by:
equalsin interfaceIRI- Overrides:
equalsin classAbstractIRI- Parameters:
o- the object to compare this IRI to- Returns:
true, if the other object is an instance ofIRIand their string values are equal;false, otherwise
-
writeReplace
- Throws:
ObjectStreamException
-