public enum HdfsVersion extends Enum<HdfsVersion>
Enum Constant and Description |
---|
HADOOP_1_0 |
HADOOP_1_2 |
HADOOP_2_2 |
HADOOP_2_3 |
HADOOP_2_4 |
HADOOP_2_5 |
HADOOP_2_6 |
HADOOP_2_7 |
HADOOP_2_8 |
HADOOP_2_9 |
HADOOP_3_0 |
HADOOP_3_1 |
HADOOP_3_2 |
HADOOP_3_3 |
Modifier and Type | Method and Description |
---|---|
static HdfsVersion |
find(String versionString) |
String |
getCanonicalVersion() |
static boolean |
matches(String versionA,
String versionB) |
static HdfsVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsVersion HADOOP_1_0
public static final HdfsVersion HADOOP_1_2
public static final HdfsVersion HADOOP_2_2
public static final HdfsVersion HADOOP_2_3
public static final HdfsVersion HADOOP_2_4
public static final HdfsVersion HADOOP_2_5
public static final HdfsVersion HADOOP_2_6
public static final HdfsVersion HADOOP_2_7
public static final HdfsVersion HADOOP_2_8
public static final HdfsVersion HADOOP_2_9
public static final HdfsVersion HADOOP_3_0
public static final HdfsVersion HADOOP_3_1
public static final HdfsVersion HADOOP_3_2
public static final HdfsVersion HADOOP_3_3
public static HdfsVersion[] values()
for (HdfsVersion c : HdfsVersion.values()) System.out.println(c);
public static HdfsVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public static HdfsVersion find(String versionString)
versionString
- given version stringHdfsVersion
instancepublic static boolean matches(String versionA, String versionB)
versionA
- base versionversionB
- version to comparepublic String getCanonicalVersion()
Copyright © 2023. All Rights Reserved.