org.apache.hadoop.hive.ql.io
Class RCFileInputFormat<K extends org.apache.hadoop.io.LongWritable,V extends BytesRefArrayWritable>

java.lang.Object
  extended by org.apache.hadoop.mapred.FileInputFormat<K,V>
      extended by org.apache.hadoop.hive.ql.io.RCFileInputFormat<K,V>
All Implemented Interfaces:
InputFormatChecker, org.apache.hadoop.mapred.InputFormat<K,V>

public class RCFileInputFormat<K extends org.apache.hadoop.io.LongWritable,V extends BytesRefArrayWritable>
extends org.apache.hadoop.mapred.FileInputFormat<K,V>
implements InputFormatChecker


Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.FileInputFormat
LOG
 
Constructor Summary
RCFileInputFormat()
           
 
Method Summary
 org.apache.hadoop.mapred.RecordReader<K,V> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.Reporter reporter)
           
 boolean validateInput(org.apache.hadoop.fs.FileSystem fs, HiveConf conf, ArrayList<org.apache.hadoop.fs.FileStatus> files)
          This method is used to validate the input files
 
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat
addInputPath, addInputPaths, computeSplitSize, getBlockIndex, getInputPathFilter, getInputPaths, getSplits, isSplitable, listStatus, setInputPathFilter, setInputPaths, setInputPaths, setMinSplitSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCFileInputFormat

public RCFileInputFormat()
Method Detail

getRecordReader

public org.apache.hadoop.mapred.RecordReader<K,V> getRecordReader(org.apache.hadoop.mapred.InputSplit split,
                                                                  org.apache.hadoop.mapred.JobConf job,
                                                                  org.apache.hadoop.mapred.Reporter reporter)
                                                                                                                                   throws IOException
Specified by:
getRecordReader in interface org.apache.hadoop.mapred.InputFormat<K extends org.apache.hadoop.io.LongWritable,V extends BytesRefArrayWritable>
Specified by:
getRecordReader in class org.apache.hadoop.mapred.FileInputFormat<K extends org.apache.hadoop.io.LongWritable,V extends BytesRefArrayWritable>
Throws:
IOException

validateInput

public boolean validateInput(org.apache.hadoop.fs.FileSystem fs,
                             HiveConf conf,
                             ArrayList<org.apache.hadoop.fs.FileStatus> files)
                      throws IOException
Description copied from interface: InputFormatChecker
This method is used to validate the input files

Specified by:
validateInput in interface InputFormatChecker
Throws:
IOException


Copyright © 2009 The Apache Software Foundation