Package org.apache.hadoop.hdfs.protocol
Class LayoutVersion.FeatureInfo
java.lang.Object
org.apache.hadoop.hdfs.protocol.LayoutVersion.FeatureInfo
- Enclosing class:
- LayoutVersion
Feature information.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureInfo(int lv, int ancestorLV, Integer minCompatLV, String description, boolean reserved, LayoutVersion.LayoutFeature... specialFeatures) FeatureInfo(int lv, int ancestorLV, String description, boolean reserved, LayoutVersion.LayoutFeature... specialFeatures) -
Method Summary
Modifier and TypeMethodDescriptionintAccessor method for feature ancestor layout versionAccessor method for feature descriptionintAccessor method for feature layout versionintAccessor method for feature minimum compatible layout version.boolean
-
Constructor Details
-
FeatureInfo
public FeatureInfo(int lv, int ancestorLV, String description, boolean reserved, LayoutVersion.LayoutFeature... specialFeatures) -
FeatureInfo
public FeatureInfo(int lv, int ancestorLV, Integer minCompatLV, String description, boolean reserved, LayoutVersion.LayoutFeature... specialFeatures)
-
-
Method Details
-
getLayoutVersion
public int getLayoutVersion()Accessor method for feature layout version- Returns:
- int lv value
-
getAncestorLayoutVersion
public int getAncestorLayoutVersion()Accessor method for feature ancestor layout version- Returns:
- int ancestor LV value
-
getMinimumCompatibleLayoutVersion
public int getMinimumCompatibleLayoutVersion()Accessor method for feature minimum compatible layout version. If the feature does not define a minimum compatible layout version, then this method returns the feature's own layout version. This would indicate that the feature cannot provide compatibility with any prior layout version.- Returns:
- int minimum compatible LV value
-
getDescription
Accessor method for feature description- Returns:
- String feature description
-
isReservedForOldRelease
public boolean isReservedForOldRelease() -
getSpecialFeatures
-