org.eclipse.rdf4j.sail.nativerdf.model

## Interface NativeValue

- All Superinterfaces:
    Serializable, Value
  All Known Subinterfaces:
    NativeResource
  All Known Implementing Classes:
    NativeBNode, NativeIRI, NativeLiteral

      public interface NativeValue
      extends Value

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `UNKNOWN_ID`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getInternalID()` Gets the ID that is used in the native store for this Value.
    `ValueStoreRevision` | `getValueStoreRevision()` Gets the revision of the value store that created this value.
    `void` | `setInternalID(int id, ValueStoreRevision revision)` Sets the ID that is used for this value in a specific revision of the value store.

    - ### Methods inherited from interface org.eclipse.rdf4j.model.Value

      `stringValue`

- - ### Field Detail

    - #### UNKNOWN_ID

          static final int UNKNOWN_ID

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### setInternalID

          void setInternalID(int id,
                             ValueStoreRevision revision)

      Sets the ID that is used for this value in a specific revision of the value store.

    - #### getInternalID

          int getInternalID()

      Gets the ID that is used in the native store for this Value.
      Returns:
        The value's ID, or `UNKNOWN_ID` if not yet set.

    - #### 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.

Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.