Interface LmdbValue

All Superinterfaces:
Serializable, Value
All Known Subinterfaces:
LmdbResource
All Known Implementing Classes:
LmdbBNode, LmdbIRI, LmdbLiteral

public interface LmdbValue extends Value
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Value

    Value.Type
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the ID that is used in the lmdb store for this Value.
    Gets the revision of the value store that created this value.
    void
    Initializes this value if it was a lazy value (ID-only value) before.
    void
    Sets this value's data from an initialized value.
    void
    setInternalID(long id, ValueStoreRevision revision)
    Sets the ID that is used for this value in a specific revision of the value store.

    Methods inherited from interface Value

    getType, isBNode, isIRI, isLiteral, isResource, isTriple, stringValue
    Modifier and Type
    Method
    Description
    default Value.Type
     
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    default boolean
    Check if the object is an instance of the given type.
    Returns the String-value of a Value object.
  • Field Details

  • Method Details

    • setInternalID

      void setInternalID(long id, ValueStoreRevision revision)
      Sets the ID that is used for this value in a specific revision of the value store.
    • getInternalID

      long getInternalID()
      Gets the ID that is used in the lmdb store for this Value.
      Returns:
      The value's ID, or UNKNOWN_ID if not yet set.
    • init

      void init()
      Initializes this value if it was a lazy value (ID-only value) before.
    • getValueStoreRevision

      ValueStoreRevision getValueStoreRevision()
      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.
      Returns:
      The revision of the value store that created this value at the time it last set the value's internal ID.
    • setFromInitializedValue

      @InternalUseOnly void setFromInitializedValue(LmdbValue initializedValue)
      Sets this value's data from an initialized value.

      This must be only called within a synchronized block in the init() method of the uninitialized value.

      Parameters:
      initializedValue - the initialized value to copy data from