|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.protocol.LayoutVersion
@InterfaceAudience.Private public class LayoutVersion
This class tracks changes in the layout version of HDFS. Layout version is changed for following reasons:
LayoutVersion.Feature
with a short enum name, new layout version and description
of the change. Please see LayoutVersion.Feature
for further details.
Nested Class Summary | |
---|---|
static class |
LayoutVersion.Feature
Enums for features that change the layout version. |
Constructor Summary | |
---|---|
LayoutVersion()
|
Method Summary | |
---|---|
static int |
getCurrentLayoutVersion()
Get the current layout version |
static String |
getString()
Gets formatted string that describes LayoutVersion information. |
static boolean |
supports(LayoutVersion.Feature f,
int lv)
Returns true if a given feature is supported in the given layout version |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutVersion()
Method Detail |
---|
public static String getString()
LayoutVersion
information.
public static boolean supports(LayoutVersion.Feature f, int lv)
f
- Featurelv
- LayoutVersion
f
is supported in layout version lv
public static int getCurrentLayoutVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |