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>
ResourceVersionimplementation withStringvalue. 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 intcompareTo(StringResourceVersion other)booleanequals(Object obj)StringgetValue()inthashCode()booleanisExisting()Check whether the state handle is existing.static StringResourceVersionnotExisting()StringtoString()static StringResourceVersionvalueOf(String value)
-
-
-
Method Detail
-
compareTo
public int compareTo(@Nonnull StringResourceVersion other)- Specified by:
compareToin interfaceComparable<StringResourceVersion>
-
isExisting
public boolean isExisting()
Description copied from interface:ResourceVersionCheck whether the state handle is existing.- Specified by:
isExistingin interfaceResourceVersion<StringResourceVersion>- Returns:
- true if state handle exists with current
ResourceVersionon external storage. Or false it does not exist.
-
getValue
public String getValue()
-
notExisting
public static StringResourceVersion notExisting()
-
valueOf
public static StringResourceVersion valueOf(String value)
-
-