Class DataNodeLayoutVersion
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.DataNodeLayoutVersion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnums for features that change the layout version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<Integer,SortedSet<LayoutVersion.LayoutFeature>> Build layout version and corresponding feature matrix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intGet current layout version of the DataNode.static SortedSet<LayoutVersion.LayoutFeature>getFeatures(int lv) static booleansupports(LayoutVersion.LayoutFeature f, int lv)
-
Field Details
-
FEATURES
Build layout version and corresponding feature matrix
-
-
Constructor Details
-
DataNodeLayoutVersion
public DataNodeLayoutVersion()
-
-
Method Details
-
getCurrentLayoutVersion
public static int getCurrentLayoutVersion()Get current layout version of the DataNode.- Returns:
- the current layout version of the DataNode
-
getFeatures
-
supports
-