Interface OffsetKey<K>

  • Type Parameters:
    K - the type of the offset key
    All Superinterfaces:
    Serializable

    public interface OffsetKey<K>
    extends Serializable
    An interface to represent offset keys (addressable for an offset)
    • Method Detail

      • setValue

        void setValue​(K key)
        Sets the key value
        Parameters:
        key - the key value
      • getValue

        K getValue()
        Gets the key value
        Returns:
        the key instance
      • serialize

        default ByteBuffer serialize()
        Description copied from interface: Serializable
        Serializes this offset into a buffer of bytes
        Specified by:
        serialize in interface Serializable
        Returns:
        a ByteBuffer instance with the serialized contents of this object