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>
Method Summary |
abstract long |
append(HdfsOutputStream hdfsostr,
Object key,
Object value,
org.apache.camel.TypeConverter typeConverter)
|
static long |
copyBytes(InputStream in,
OutputStream out,
int buffSize,
boolean close)
|
abstract Closeable |
createInputStream(String hdfsPath,
HdfsConfiguration configuration)
|
abstract Closeable |
createOutputStream(String hdfsPath,
HdfsConfiguration configuration)
|
abstract long |
next(HdfsInputStream hdfsistr,
Holder<Object> key,
Holder<Object> value)
|
static HdfsFileType |
valueOf(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. |
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
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 name
NullPointerException
- if the argument is null
append
public abstract long append(HdfsOutputStream hdfsostr,
Object key,
Object value,
org.apache.camel.TypeConverter typeConverter)
next
public abstract long next(HdfsInputStream hdfsistr,
Holder<Object> key,
Holder<Object> value)
createOutputStream
public abstract Closeable createOutputStream(String hdfsPath,
HdfsConfiguration configuration)
createInputStream
public abstract Closeable createInputStream(String hdfsPath,
HdfsConfiguration configuration)
copyBytes
public static long copyBytes(InputStream in,
OutputStream out,
int buffSize,
boolean close)
throws IOException
- Throws:
IOException
Apache Camel