Package org.apache.drill.common
Class Version
java.lang.Object
org.apache.drill.common.Version
- All Implemented Interfaces:
Comparable<Version>
Encapsulates version information and provides ordering
-
Constructor Details
-
Version
-
-
Method Details
-
getVersion
Get the version string- Returns:
- the version number as x.y.z
-
getMajorVersion
public int getMajorVersion()Get the major version- Returns:
- x if assuming the version number is x.y.z
-
getMinorVersion
public int getMinorVersion()Get the minor version- Returns:
- y if assuming the version number is x.y.z
-
getPatchVersion
public int getPatchVersion()Get the patch version- Returns:
- z if assuming the version number is x.y.z(-suffix)
-
getBuildNumber
public int getBuildNumber()Get the build number- Returns:
- b if assuming the version number is x.y.z(.b)(-suffix)
-
getQualifier
Get the version qualifier- Returns:
- b if assuming the version number is x.y.z(.b)(-suffix)
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Version>
-