Interface Entry

All Superinterfaces:
Comparable<Entry>

@PrimaryKey("key") public interface Entry extends Comparable<Entry>
Defines a row type consisting of a simple binary key-value pair. Calling asTable(Entry.class) allows an ordinary index to be represented as a table, while still retaining its natural form.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    key()
    Returns the entry's current key reference.
    void
    key(byte[] key)
    Assign the entry key reference, transferring ownership.
    byte[]
    Returns the entry's current value reference.
    void
    value(byte[] value)
    Assign the entry value, allowing the change to be noticed by a call to an update or merge method.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • key

      @Unsigned byte[] key()
      Returns the entry's current key reference. The contents of the array should not be modified, since locks might be held against the key instance itself.
    • key

      void key(byte[] key)
      Assign the entry key reference, transferring ownership. After calling this method the contents of the array should not be modified, since locks might later be acquired against the key instance itself.
    • value

      @Unsigned byte[] value()
      Returns the entry's current value reference. Although the contents of the array can be safely modified, the change won't be noticed when calling an update or merge method.
    • value

      void value(byte[] value)
      Assign the entry value, allowing the change to be noticed by a call to an update or merge method.