Class LmdbLiteral

  • All Implemented Interfaces:
    Serializable, org.eclipse.rdf4j.model.Literal, org.eclipse.rdf4j.model.Value, LmdbValue

    public class LmdbLiteral
    extends org.eclipse.rdf4j.model.base.AbstractLiteral
    implements LmdbValue
    See Also:
    Serialized Form
    • Constructor Detail

      • LmdbLiteral

        public LmdbLiteral​(ValueStoreRevision revision,
                           String label,
                           org.eclipse.rdf4j.model.IRI datatype)
      • LmdbLiteral

        public LmdbLiteral​(ValueStoreRevision revision,
                           String label,
                           org.eclipse.rdf4j.model.IRI datatype,
                           org.eclipse.rdf4j.model.base.CoreDatatype coreDatatype)
      • LmdbLiteral

        public LmdbLiteral​(ValueStoreRevision revision,
                           String label,
                           org.eclipse.rdf4j.model.base.CoreDatatype datatype)
      • LmdbLiteral

        public LmdbLiteral​(ValueStoreRevision revision,
                           String label,
                           org.eclipse.rdf4j.model.IRI datatype,
                           long internalID)
      • LmdbLiteral

        public LmdbLiteral​(ValueStoreRevision revision,
                           String label,
                           org.eclipse.rdf4j.model.IRI datatype,
                           org.eclipse.rdf4j.model.base.CoreDatatype coreDatatype,
                           long internalID)
      • LmdbLiteral

        public LmdbLiteral​(ValueStoreRevision revision,
                           String label,
                           org.eclipse.rdf4j.model.base.CoreDatatype coreDatatype,
                           long internalID)
    • Method Detail

      • setInternalID

        public void setInternalID​(long internalID,
                                  ValueStoreRevision revision)
        Description copied from interface: LmdbValue
        Sets the ID that is used for this value in a specific revision of the value store.
        Specified by:
        setInternalID in interface LmdbValue
      • getValueStoreRevision

        public ValueStoreRevision getValueStoreRevision()
        Description copied from interface: LmdbValue
        Gets 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:
        getValueStoreRevision in interface LmdbValue
        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: LmdbValue
        Gets the ID that is used in the lmdb store for this Value.
        Specified by:
        getInternalID in interface LmdbValue
        Returns:
        The value's ID, or LmdbValue.UNKNOWN_ID if not yet set.
      • getDatatype

        public org.eclipse.rdf4j.model.IRI getDatatype()
        Specified by:
        getDatatype in interface org.eclipse.rdf4j.model.Literal
      • getCoreDatatype

        public org.eclipse.rdf4j.model.base.CoreDatatype getCoreDatatype()
        Specified by:
        getCoreDatatype in interface org.eclipse.rdf4j.model.Literal
      • setDatatype

        public void setDatatype​(org.eclipse.rdf4j.model.IRI datatype)
      • setDatatype

        public void setDatatype​(org.eclipse.rdf4j.model.base.CoreDatatype coreDatatype)
      • getLabel

        public String getLabel()
        Specified by:
        getLabel in interface org.eclipse.rdf4j.model.Literal
      • setLabel

        public void setLabel​(String label)
      • getLanguage

        public Optional<String> getLanguage()
        Specified by:
        getLanguage in interface org.eclipse.rdf4j.model.Literal
      • setLanguage

        public void setLanguage​(String language)
      • init

        protected void init()
      • equals

        public boolean equals​(Object o)
        Specified by:
        equals in interface org.eclipse.rdf4j.model.Literal
        Overrides:
        equals in class org.eclipse.rdf4j.model.base.AbstractLiteral
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.eclipse.rdf4j.model.Literal
        Overrides:
        hashCode in class org.eclipse.rdf4j.model.base.AbstractLiteral
      • toString

        public String toString()
        Overrides:
        toString in class org.eclipse.rdf4j.model.base.AbstractLiteral