Package io.pravega.client.tables
Interface Version
-
- All Known Implementing Classes:
VersionImpl
public interface Version
Version of a Key in a Table.
-
-
Field Summary
Fields Modifier and Type Field Description static Version
NO_VERSION
Version
that indicates no specific version is desired.static Version
NOT_EXISTS
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description VersionImpl
asImpl()
Returns the actual instance.static Version
fromString(java.lang.String str)
Deserializes theVersion
from its serialized form obtained from callingtoString()
.java.lang.String
toString()
Serializes theVersion
to a human readable string.
-
-
-
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. SeeKeyValueTable
for details on conditional/unconditional updates.
-
NOT_EXISTS
static final Version NOT_EXISTS
Version
that indicates theTableKey
must not exist. Using this will result in an conditional update or removal being performed, conditioned on theTableKey
not existing at the time of the operation. SeeKeyValueTable
for details on conditional/unconditional updates.
-
-
Method Detail
-
asImpl
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 theVersion
to a human readable string.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the
Version
.
-
fromString
static Version fromString(java.lang.String str)
Deserializes theVersion
from its serialized form obtained from callingtoString()
.
-
-