Class ValueIds

java.lang.Object
org.eclipse.rdf4j.sail.lmdb.ValueIds

public class ValueIds extends Object
Constants and functions for working with ids encoded into long values.
  • Field Details

  • Constructor Details

    • ValueIds

      public ValueIds()
  • Method Details

    • getIdType

      public static int getIdType(long id)
      Returns the type section of the given id.
      Parameters:
      id - The id of which the type should be extracted.
      Returns:
      The id's type.
    • getValue

      public static long getValue(long id)
      Returns the value section of the given id.
      Parameters:
      id - The id of which the value should be extracted.
      Returns:
      The id's value.
    • createId

      public static long createId(int idType, long value)
      Combines an id type and a value into a single long id.
      Parameters:
      idType - The id's type.
      value - The id's value.
      Returns:
      A composite id.
    • isInlined

      public static boolean isInlined(long id)
      Tests if the given id is an inlined value or a reference.
      Parameters:
      id - The id to test
      Returns:
      true if the value is inlined, else false
    • isDouble

      public static boolean isDouble(long value)
      Tests if the given id is an inlined double value, which is identified by the least significant bit being set to 1.
      Parameters:
      value - The id's value
      Returns:
      true if the value is an inlined double, else false