org.apache.hadoop.hive.ql.io
Class HiveInputFormat.HiveInputSplit

java.lang.Object
  extended by FileSplit
      extended by org.apache.hadoop.hive.ql.io.HiveInputFormat.HiveInputSplit
Direct Known Subclasses:
BucketizedHiveInputSplit
Enclosing class:
HiveInputFormat<K extends WritableComparable,V extends Writable>

public static class HiveInputFormat.HiveInputSplit
extends FileSplit

HiveInputSplit encapsulates an InputSplit with its corresponding inputFormatClass. The reason that it derives from FileSplit is to make sure "map.input.file" in MapTask.


Constructor Summary
HiveInputFormat.HiveInputSplit()
           
HiveInputFormat.HiveInputSplit(InputSplit inputSplit, String inputFormatClassName)
           
 
Method Summary
 Configuration getConf()
           
 InputSplit getInputSplit()
           
 long getLength()
           
 String[] getLocations()
           
 Path getPath()
           
 long getStart()
          The position of the first byte in the file to process.
 String inputFormatClassName()
           
 void readFields(DataInput in)
           
 void setConf(Configuration conf)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HiveInputFormat.HiveInputSplit

public HiveInputFormat.HiveInputSplit()

HiveInputFormat.HiveInputSplit

public HiveInputFormat.HiveInputSplit(InputSplit inputSplit,
                                      String inputFormatClassName)
Method Detail

getInputSplit

public InputSplit getInputSplit()

inputFormatClassName

public String inputFormatClassName()

getPath

public Path getPath()

getStart

public long getStart()
The position of the first byte in the file to process.


toString

public String toString()

getLength

public long getLength()

getLocations

public String[] getLocations()
                      throws IOException
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

getConf

public Configuration getConf()

setConf

public void setConf(Configuration conf)


Copyright © 2012 The Apache Software Foundation