Class IntegerResourceVersion
java.lang.Object
org.apache.flink.runtime.persistence.IntegerResourceVersion
- All Implemented Interfaces:
Serializable,Comparable<IntegerResourceVersion>,ResourceVersion<IntegerResourceVersion>
public class IntegerResourceVersion
extends Object
implements ResourceVersion<IntegerResourceVersion>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(IntegerResourceVersion other) booleanintgetValue()inthashCode()booleanCheck whether the state handle is existing.static IntegerResourceVersiontoString()static IntegerResourceVersionvalueOf(int value) Create aIntegerResourceVersionwith given integer value.
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<IntegerResourceVersion>
-
equals
-
hashCode
public int hashCode() -
isExisting
public boolean isExisting()Description copied from interface:ResourceVersionCheck whether the state handle is existing.- Specified by:
isExistingin interfaceResourceVersion<IntegerResourceVersion>- Returns:
- true if state handle exists with current
ResourceVersionon external storage. Or false it does not exist.
-
toString
-
getValue
public int getValue() -
notExisting
-
valueOf
Create aIntegerResourceVersionwith given integer value.- Parameters:
value- resource version integer value. The value should not be negative.- Returns:
IntegerResourceVersionwith given value.
-