Class TableSegmentKeyVersion

  • All Implemented Interfaces:
    java.io.Serializable

    public class TableSegmentKeyVersion
    extends java.lang.Object
    implements java.io.Serializable
    Key Version for TableSegmentKeys.
    See Also:
    Serialized Form
    • Field Detail

      • NOT_EXISTS

        public static final TableSegmentKeyVersion NOT_EXISTS
        A special KeyVersion which indicates the Key must not exist when performing Conditional Updates.
      • NO_VERSION

        public static final TableSegmentKeyVersion NO_VERSION
        A special KeyVersion which indicates that no versioning is required.
    • Method Detail

      • toBytes

        public java.nio.ByteBuffer toBytes()
      • fromBytes

        public static TableSegmentKeyVersion fromBytes​(java.nio.ByteBuffer serializedKeyVersion)
        Deserializes the KeyVersion from its serialized form obtained from calling toBytes().
        Parameters:
        serializedKeyVersion - A serialized TableSegmentKeyVersion.
        Returns:
        The KeyVersion object.
      • builder

        public static io.pravega.client.tables.impl.TableSegmentKeyVersion.TableSegmentKeyVersionBuilder builder()
      • getSegmentVersion

        public long getSegmentVersion()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object