Class StringResourceVersion
- java.lang.Object
-
- org.apache.flink.runtime.persistence.StringResourceVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<StringResourceVersion>
,ResourceVersion<StringResourceVersion>
public class StringResourceVersion extends Object implements ResourceVersion<StringResourceVersion>
ResourceVersion
implementation withString
value. The resource version in Kubernetes isString
. And they have same length, we could easily compare string.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(StringResourceVersion other)
boolean
equals(Object obj)
String
getValue()
int
hashCode()
boolean
isExisting()
Check whether the state handle is existing.static StringResourceVersion
notExisting()
String
toString()
static StringResourceVersion
valueOf(String value)
-
-
-
Method Detail
-
compareTo
public int compareTo(@Nonnull StringResourceVersion other)
- Specified by:
compareTo
in interfaceComparable<StringResourceVersion>
-
isExisting
public boolean isExisting()
Description copied from interface:ResourceVersion
Check whether the state handle is existing.- Specified by:
isExisting
in interfaceResourceVersion<StringResourceVersion>
- Returns:
- true if state handle exists with current
ResourceVersion
on external storage. Or false it does not exist.
-
getValue
public String getValue()
-
notExisting
public static StringResourceVersion notExisting()
-
valueOf
public static StringResourceVersion valueOf(String value)
-
-