Interface Version


  • public interface Version
    Version of a Key in a Table.
    • Field Detail

      • NO_VERSION

        static final Version NO_VERSION
        Version that indicates no specific version is desired. Using this will result in an unconditional update or removal being performed. See KeyValueTable for details on conditional/unconditional updates.
      • NOT_EXISTS

        static final Version NOT_EXISTS
        Version that indicates the TableKey must not exist. Using this will result in an conditional update or removal being performed, conditioned on the TableKey not existing at the time of the operation. See KeyValueTable for details on conditional/unconditional updates.
    • Method Detail

      • asImpl

        io.pravega.client.tables.impl.VersionImpl asImpl()
        Returns the actual instance. This method prevents other classes from implementing this interface.
        Returns:
        Implementation of the Version interface.
      • toString

        java.lang.String toString()
        Serializes the Version to a human readable string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the Version.
      • fromString

        static Version fromString​(java.lang.String str)
        Deserializes the Version from its serialized form obtained from calling toString().
        Parameters:
        str - A serialized Version.
        Returns:
        The Version object.