@Private
public class LayoutVersion
extends java.lang.Object
LayoutVersion.Feature with a short enum name, new layout version and description
of the change. Please see LayoutVersion.Feature for further details.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
LayoutVersion.Feature |
Enums for features that change the layout version before rolling
upgrade is supported.
|
static class |
LayoutVersion.FeatureInfo |
Feature information.
|
static interface |
LayoutVersion.LayoutFeature |
The interface to be implemented by NameNode and DataNode layout features
|
| Modifier and Type | Field | Description |
|---|---|---|
static int |
BUGFIX_HDFS_2991_VERSION |
Version in which HDFS-2991 was fixed.
|
| Constructor | Description |
|---|---|
LayoutVersion() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
getCurrentLayoutVersion(LayoutVersion.LayoutFeature[] features) |
Get the current layout version
|
static int |
getMinimumCompatibleLayoutVersion(LayoutVersion.LayoutFeature[] features) |
Gets the minimum compatible layout version.
|
java.lang.String |
getString(java.util.Map<java.lang.Integer,java.util.SortedSet<LayoutVersion.LayoutFeature>> map,
LayoutVersion.LayoutFeature[] values) |
Gets formatted string that describes
LayoutVersion information. |
static boolean |
supports(java.util.Map<java.lang.Integer,java.util.SortedSet<LayoutVersion.LayoutFeature>> map,
LayoutVersion.LayoutFeature f,
int lv) |
Returns true if a given feature is supported in the given layout version
|
static void |
updateMap(java.util.Map<java.lang.Integer,java.util.SortedSet<LayoutVersion.LayoutFeature>> map,
LayoutVersion.LayoutFeature[] features) |
public static final int BUGFIX_HDFS_2991_VERSION
public static void updateMap(java.util.Map<java.lang.Integer,java.util.SortedSet<LayoutVersion.LayoutFeature>> map, LayoutVersion.LayoutFeature[] features)
public java.lang.String getString(java.util.Map<java.lang.Integer,java.util.SortedSet<LayoutVersion.LayoutFeature>> map, LayoutVersion.LayoutFeature[] values)
LayoutVersion information.public static boolean supports(java.util.Map<java.lang.Integer,java.util.SortedSet<LayoutVersion.LayoutFeature>> map, LayoutVersion.LayoutFeature f, int lv)
map - layout feature mapf - Featurelv - LayoutVersionf is supported in layout version lvpublic static int getCurrentLayoutVersion(LayoutVersion.LayoutFeature[] features)
public static int getMinimumCompatibleLayoutVersion(LayoutVersion.LayoutFeature[] features)
features - all features to checkCopyright © 2008–2025 Apache Software Foundation. All rights reserved.