Class TableSegmentKey


  • public class TableSegmentKey
    extends java.lang.Object
    Key for a TableSegment.
    • Method Detail

      • unversioned

        public static TableSegmentKey unversioned​(io.netty.buffer.ByteBuf key)
        Creates a new TableSegmentKey with no specific version.
        Parameters:
        key - A ByteBuf representing the key.
        Returns:
        An unversioned TableSegmentKey.
      • unversioned

        public static TableSegmentKey unversioned​(byte[] key)
        Creates a new TableSegmentKey with no specific version.
        Parameters:
        key - A byte array representing the key. This will be wrapped in a ByteBuf.
        Returns:
        An unversioned TableSegmentKey.
      • versioned

        public static TableSegmentKey versioned​(io.netty.buffer.ByteBuf key,
                                                long version)
        Creates a new TableSegmentKey with a specific version.
        Parameters:
        key - A ByteBuf representing the key.
        version - The version to set.
        Returns:
        An versioned TableSegmentKey.
      • versioned

        public static TableSegmentKey versioned​(byte[] key,
                                                long version)
        Creates a new TableSegmentKey with a specific version.
        Parameters:
        key - A byte array representing the key. This will be wrapped in a ByteBuf.
        version - The version to set.
        Returns:
        An versioned TableSegmentKey.
      • getKey

        @NonNull
        public @NonNull io.netty.buffer.ByteBuf getKey()
        A ByteBuf representing the contents of this Key.