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,org.eclipse.rdf4j.model.IRI,org.eclipse.rdf4j.model.Resource,org.eclipse.rdf4j.model.Value,LmdbResource,LmdbValue
public class LmdbIRI extends SimpleIRI implements LmdbResource
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.eclipse.rdf4j.sail.lmdb.model.LmdbValue
UNKNOWN_ID
-
-
Constructor Summary
Constructors Constructor Description LmdbIRI(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetInternalID()Gets the ID that is used in the lmdb store for this Value.StringgetLocalName()StringgetNamespace()ValueStoreRevisiongetValueStoreRevision()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)StringstringValue()protected ObjectwriteReplace()
-
-
-
Constructor Detail
-
LmdbIRI
public LmdbIRI(ValueStoreRevision revision, long internalID)
-
LmdbIRI
public LmdbIRI(ValueStoreRevision revision, String uri)
-
LmdbIRI
public LmdbIRI(ValueStoreRevision revision, String uri, long internalID)
-
LmdbIRI
public LmdbIRI(ValueStoreRevision revision, String namespace, String localname)
-
LmdbIRI
public LmdbIRI(ValueStoreRevision revision, String namespace, String localname, long internalID)
-
-
Method Detail
-
setInternalID
public void setInternalID(long internalID, ValueStoreRevision revision)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
public ValueStoreRevision 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
public void setIRIString(String iriString)
- Overrides:
setIRIStringin classSimpleIRI
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein interfaceorg.eclipse.rdf4j.model.IRI- Overrides:
getNamespacein classSimpleIRI
-
getLocalName
public String getLocalName()
- Specified by:
getLocalNamein interfaceorg.eclipse.rdf4j.model.IRI- Overrides:
getLocalNamein classSimpleIRI
-
stringValue
public String stringValue()
- Specified by:
stringValuein interfaceorg.eclipse.rdf4j.model.Value- Overrides:
stringValuein classSimpleIRI
-
init
protected void init()
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceorg.eclipse.rdf4j.model.IRI- Overrides:
equalsin classorg.eclipse.rdf4j.model.base.AbstractIRI
-
writeReplace
protected Object writeReplace() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-