Enum CopyContainerCompression
java.lang.Object
java.lang.Enum<CopyContainerCompression>
org.apache.hadoop.ozone.container.replication.CopyContainerCompression
- All Implemented Interfaces:
Serializable,Comparable<CopyContainerCompression>
Defines compression algorithm for container replication.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CopyContainerCompressionfromProto(org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.CopyContainerCompressProto proto) static CopyContainerCompressiongetConf(org.apache.hadoop.hdds.conf.ConfigurationSource conf) static CopyContainerCompressionvoidsetOn(org.apache.hadoop.hdds.conf.ConfigurationTarget conf) org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.CopyContainerCompressPrototoProto()static CopyContainerCompressionReturns the enum constant of this type with the specified name.static CopyContainerCompression[]values()Returns an array containing the constants of this enum type, in the order they are declared.wrap(InputStream input) wrap(OutputStream output)
-
Enum Constant Details
-
NO_COMPRESSION
-
GZIP
-
LZ4
-
SNAPPY
-
ZSTD
-
-
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
-
getConf
public static CopyContainerCompression getConf(org.apache.hadoop.hdds.conf.ConfigurationSource conf) -
setOn
public void setOn(org.apache.hadoop.hdds.conf.ConfigurationTarget conf) -
getDefaultCompression
-
toProto
public org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.CopyContainerCompressProto toProto() -
fromProto
public static CopyContainerCompression fromProto(org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.CopyContainerCompressProto proto) -
wrap
- Throws:
IOException
-
wrap
- Throws:
IOException
-