Package org.apache.flink.formats.avro
Enum AvroOutputFormat.Codec
- java.lang.Object
-
- java.lang.Enum<AvroOutputFormat.Codec>
-
- org.apache.flink.formats.avro.AvroOutputFormat.Codec
-
- All Implemented Interfaces:
Serializable,Comparable<AvroOutputFormat.Codec>
- Enclosing class:
- AvroOutputFormat<E>
public static enum AvroOutputFormat.Codec extends Enum<AvroOutputFormat.Codec>
Wrapper which encapsulates the supported codec and a related serialization byte.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AvroOutputFormat.CodecvalueOf(String name)Returns the enum constant of this type with the specified name.static AvroOutputFormat.Codec[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final AvroOutputFormat.Codec NULL
-
SNAPPY
public static final AvroOutputFormat.Codec SNAPPY
-
BZIP2
public static final AvroOutputFormat.Codec BZIP2
-
DEFLATE
public static final AvroOutputFormat.Codec DEFLATE
-
XZ
public static final AvroOutputFormat.Codec XZ
-
-
Method Detail
-
values
public static AvroOutputFormat.Codec[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AvroOutputFormat.Codec c : AvroOutputFormat.Codec.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AvroOutputFormat.Codec valueOf(String name)
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
-
-