@InterfaceAudience.Private public final class VersionInfoUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
currentClientHasMinimumVersion(int major,
int minor) |
static HBaseProtos.VersionInfo |
getCurrentClientVersionInfo() |
static int |
getVersionNumber(HBaseProtos.VersionInfo versionInfo)
Pack the full number version in a int.
|
static boolean |
hasMinimumVersion(HBaseProtos.VersionInfo versionInfo,
int major,
int minor) |
static String |
versionNumberToString(int version) |
public static boolean currentClientHasMinimumVersion(int major, int minor)
public static boolean hasMinimumVersion(HBaseProtos.VersionInfo versionInfo, int major, int minor)
public static HBaseProtos.VersionInfo getCurrentClientVersionInfo()
public static String versionNumberToString(int version)
version
- version
int as a version String
(e.g. 0x0103004 is 1.3.4)public static int getVersionNumber(HBaseProtos.VersionInfo versionInfo)
versionInfo
- the VersionInfo object to packCopyright © 2007–2019 Cloudera. All rights reserved.