public enum HdfsFileType extends Enum<HdfsFileType>
Enum Constant and Description |
---|
ARRAY_FILE |
BLOOMMAP_FILE |
MAP_FILE |
NORMAL_FILE |
SEQUENCE_FILE |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final HdfsFileType NORMAL_FILE
public static final HdfsFileType SEQUENCE_FILE
public static final HdfsFileType MAP_FILE
public static final HdfsFileType BLOOMMAP_FILE
public static final HdfsFileType ARRAY_FILE
public static HdfsFileType[] values()
for (HdfsFileType c : HdfsFileType.values()) System.out.println(c);
public static HdfsFileType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract long append(HdfsOutputStream hdfsostr, Object key, Object value, org.apache.camel.TypeConverter typeConverter)
public abstract long next(HdfsInputStream hdfsistr, Holder<Object> key, Holder<Object> value)
public abstract Closeable createOutputStream(String hdfsPath, HdfsConfiguration configuration)
public abstract Closeable createInputStream(String hdfsPath, HdfsConfiguration configuration)
public static long copyBytes(InputStream in, OutputStream out, int buffSize, boolean close) throws IOException
IOException
Apache Camel