Package org.apache.camel.component.hdfs
Enum HdfsFileType
- java.lang.Object
-
- java.lang.Enum<HdfsFileType>
-
- org.apache.camel.component.hdfs.HdfsFileType
-
- All Implemented Interfaces:
Serializable,Comparable<HdfsFileType>
public enum HdfsFileType extends Enum<HdfsFileType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_FILEBLOOMMAP_FILEMAP_FILENORMAL_FILESEQUENCE_FILE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longappend(HdfsOutputStream hdfsOutputStream, Object key, Object value, org.apache.camel.Exchange exchange)CloseablecreateInputStream(String hdfsPath, org.apache.camel.component.hdfs.HdfsInfoFactory hdfsInfoFactory)CloseablecreateOutputStream(String hdfsPath, org.apache.camel.component.hdfs.HdfsInfoFactory hdfsInfoFactory)longnext(HdfsInputStream hdfsInputStream, Holder<Object> key, Holder<Object> value)static HdfsFileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static HdfsFileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL_FILE
public static final HdfsFileType NORMAL_FILE
-
SEQUENCE_FILE
public static final HdfsFileType SEQUENCE_FILE
-
MAP_FILE
public static final HdfsFileType MAP_FILE
-
BLOOMMAP_FILE
public static final HdfsFileType BLOOMMAP_FILE
-
ARRAY_FILE
public static final HdfsFileType ARRAY_FILE
-
-
Method Detail
-
values
public static HdfsFileType[] 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 (HdfsFileType c : HdfsFileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HdfsFileType 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
-
createOutputStream
public Closeable createOutputStream(String hdfsPath, org.apache.camel.component.hdfs.HdfsInfoFactory hdfsInfoFactory)
-
append
public long append(HdfsOutputStream hdfsOutputStream, Object key, Object value, org.apache.camel.Exchange exchange)
-
createInputStream
public Closeable createInputStream(String hdfsPath, org.apache.camel.component.hdfs.HdfsInfoFactory hdfsInfoFactory)
-
next
public long next(HdfsInputStream hdfsInputStream, Holder<Object> key, Holder<Object> value)
-
-