Enum ContainerLayoutVersion
java.lang.Object
java.lang.Enum<ContainerLayoutVersion>
org.apache.hadoop.ozone.container.common.impl.ContainerLayoutVersion
- All Implemented Interfaces:
Serializable,Comparable<ContainerLayoutVersion>
Defines layout versions for the Chunks.
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ContainerLayoutVersion> abstract FilegetChunkFile(File chunkDir, org.apache.hadoop.hdds.client.BlockID blockID, String chunkName) getChunkFile(ContainerData containerData, org.apache.hadoop.hdds.client.BlockID blockID, String chunkName) static ContainerLayoutVersiongetConfiguredVersion(org.apache.hadoop.hdds.conf.ConfigurationSource conf) static ContainerLayoutVersiongetContainerLayoutVersion(int containerVersion) Return ContainerLayoutVersion object for the numeric containerVersion.inttoString()static ContainerLayoutVersionReturns the enum constant of this type with the specified name.static ContainerLayoutVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FILE_PER_CHUNK
Deprecated. -
FILE_PER_BLOCK
-
-
Field Details
-
DEFAULT_LAYOUT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getContainerLayoutVersion
Return ContainerLayoutVersion object for the numeric containerVersion. -
getAllVersions
- Returns:
- list of all versions.
-
getConfiguredVersion
public static ContainerLayoutVersion getConfiguredVersion(org.apache.hadoop.hdds.conf.ConfigurationSource conf) - Returns:
- the latest version.
-
getVersion
public int getVersion()- Returns:
- version number.
-
getDescription
- Returns:
- description.
-
getChunkFile
-
getChunkFile
public File getChunkFile(ContainerData containerData, org.apache.hadoop.hdds.client.BlockID blockID, String chunkName) throws org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException - Throws:
org.apache.hadoop.hdds.scm.container.common.helpers.StorageContainerException
-
toString
- Overrides:
toStringin classEnum<ContainerLayoutVersion>
-