Package org.apache.heron.streamlet
Enum Config.Serializer
- java.lang.Object
-
- java.lang.Enum<Config.Serializer>
-
- org.apache.heron.streamlet.Config.Serializer
-
- All Implemented Interfaces:
Serializable
,Comparable<Config.Serializer>
- Enclosing class:
- Config
public static enum Config.Serializer extends Enum<Config.Serializer>
An enum encapsulating the serializers that can be used for data in the topology. The options are currently: the Kryo serializer or the native Java serializer.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Config.Serializer
valueOf(String name)
Returns the enum constant of this type with the specified name.static Config.Serializer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JAVA
public static final Config.Serializer JAVA
-
KRYO
public static final Config.Serializer KRYO
-
-
Method Detail
-
values
public static Config.Serializer[] 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 (Config.Serializer c : Config.Serializer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Config.Serializer 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
-
-