org.apache.hadoop.hive.ql.io
Class FlatFileInputFormat<T>

java.lang.Object
  extended by 
      extended by org.apache.hadoop.hive.ql.io.FlatFileInputFormat<T>

public class FlatFileInputFormat<T>
extends

An InputFormat for Plain files with Deserializer records.


Nested Class Summary
 class FlatFileInputFormat.FlatFileRecordReader<R>
          An FlatFileInputFormat.FlatFileRecordReader for plain files with Deserializer records Reads one row at a time of type R.
static class FlatFileInputFormat.RowContainer<T>
          A work-around until HADOOP-1230 is fixed.
static interface FlatFileInputFormat.SerializationContext<S>
          An implementation of SerializationContext is responsible for looking up the Serialization implementation for the given RecordReader.
static class FlatFileInputFormat.SerializationContextFromConf<S>
          An implementation of FlatFileInputFormat.SerializationContext that reads the Serialization class and specific subclass to be deserialized from the JobConf.
 
Field Summary
static String SerializationImplKey
          The JobConf keys for the Serialization implementation.
 
Constructor Summary
FlatFileInputFormat()
           
 
Method Summary
  getRecordReader(InputSplit split, JobConf job, Reporter reporter)
           
protected  boolean isSplittable(FileSystem fs, Path filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SerializationImplKey

public static final String SerializationImplKey
The JobConf keys for the Serialization implementation.

See Also:
Constant Field Values
Constructor Detail

FlatFileInputFormat

public FlatFileInputFormat()
Method Detail

isSplittable

protected boolean isSplittable(FileSystem fs,
                               Path filename)

getRecordReader

public  getRecordReader(InputSplit split,
                             JobConf job,
                             Reporter reporter)
                      throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation