Package org.apache.camel.component.hdfs
Enum WritableType
- java.lang.Object
-
- java.lang.Enum<WritableType>
-
- org.apache.camel.component.hdfs.WritableType
-
- All Implemented Interfaces:
Serializable,Comparable<WritableType>
public enum WritableType extends Enum<WritableType>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Class<? extends org.apache.hadoop.io.WritableComparable>getWritableClass()static WritableTypevalueOf(String name)Returns the enum constant of this type with the specified name.static WritableType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final WritableType NULL
-
BOOLEAN
public static final WritableType BOOLEAN
-
BYTE
public static final WritableType BYTE
-
INT
public static final WritableType INT
-
FLOAT
public static final WritableType FLOAT
-
LONG
public static final WritableType LONG
-
DOUBLE
public static final WritableType DOUBLE
-
TEXT
public static final WritableType TEXT
-
BYTES
public static final WritableType BYTES
-
-
Method Detail
-
values
public static WritableType[] 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 (WritableType c : WritableType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WritableType 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
-
getWritableClass
public abstract Class<? extends org.apache.hadoop.io.WritableComparable> getWritableClass()
-
-