org.apache.camel.component.hdfs
Enum HdfsFileType

java.lang.Object
  extended by java.lang.Enum<HdfsFileType>
      extended by org.apache.camel.component.hdfs.HdfsFileType
All Implemented Interfaces:
Serializable, Comparable<HdfsFileType>

public enum HdfsFileType
extends Enum<HdfsFileType>


Enum Constant Summary
ARRAY_FILE
           
BLOOMMAP_FILE
           
MAP_FILE
           
NORMAL_FILE
           
SEQUENCE_FILE
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 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