Package org.apache.flink
Enum FlinkVersion
- All Implemented Interfaces:
Serializable,Comparable<FlinkVersion>
Enumeration for Flink versions.
It used for API versioning, during SQL/Table API upgrades, and for migration tests.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<FlinkVersion>static FlinkVersioncurrent()Returns the version for the current branch.booleanisNewerVersionThan(FlinkVersion otherVersion) static Set<FlinkVersion>rangeOf(FlinkVersion start, FlinkVersion end) Returns all versions within the defined range, inclusive both start and end.toString()static FlinkVersionvalueOf(int majorVersion, int minorVersion) static FlinkVersionReturns the enum constant of this type with the specified name.static FlinkVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
v1_3
-
v1_4
-
v1_5
-
v1_6
-
v1_7
-
v1_8
-
v1_9
-
v1_10
-
v1_11
-
v1_12
-
v1_13
-
v1_14
-
v1_15
-
v1_16
-
v1_17
-
v1_18
-
v1_19
-
v1_20
-
v2_0
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<FlinkVersion>
-
isNewerVersionThan
-
rangeOf
Returns all versions within the defined range, inclusive both start and end. -
byCode
-
valueOf
-
current
Returns the version for the current branch.
-