org.apache.hadoop.hive.shims
Interface HadoopShims.InputSplitShim

All Superinterfaces:
org.apache.hadoop.mapred.InputSplit, org.apache.hadoop.io.Writable
All Known Implementing Classes:
CombineHiveInputFormat.CombineHiveInputSplit
Enclosing interface:
HadoopShims

public static interface HadoopShims.InputSplitShim
extends org.apache.hadoop.mapred.InputSplit

InputSplitShim.


Method Summary
 org.apache.hadoop.mapred.JobConf getJob()
           
 long getLength()
           
 long getLength(int i)
          Returns the length of the ith Path.
 long[] getLengths()
          Returns an array containing the lengths of the files in the split.
 String[] getLocations()
          Returns all the Paths where this input-split resides.
 int getNumPaths()
          Returns the number of Paths in the split.
 long getOffset(int i)
          Returns the start offset of the ith Path.
 org.apache.hadoop.fs.Path getPath(int i)
          Returns the ith Path.
 org.apache.hadoop.fs.Path[] getPaths()
          Returns all the Paths in the split.
 long[] getStartOffsets()
          Returns an array containing the startoffsets of the files in the split.
 void readFields(DataInput in)
           
 void shrinkSplit(long length)
           
 String toString()
           
 void write(DataOutput out)
           
 

Method Detail

getJob

org.apache.hadoop.mapred.JobConf getJob()

getLength

long getLength()
Specified by:
getLength in interface org.apache.hadoop.mapred.InputSplit

getStartOffsets

long[] getStartOffsets()
Returns an array containing the startoffsets of the files in the split.


getLengths

long[] getLengths()
Returns an array containing the lengths of the files in the split.


getOffset

long getOffset(int i)
Returns the start offset of the ith Path.


getLength

long getLength(int i)
Returns the length of the ith Path.


getNumPaths

int getNumPaths()
Returns the number of Paths in the split.


getPath

org.apache.hadoop.fs.Path getPath(int i)
Returns the ith Path.


getPaths

org.apache.hadoop.fs.Path[] getPaths()
Returns all the Paths in the split.


getLocations

String[] getLocations()
                      throws IOException
Returns all the Paths where this input-split resides.

Specified by:
getLocations in interface org.apache.hadoop.mapred.InputSplit
Throws:
IOException

shrinkSplit

void shrinkSplit(long length)

toString

String toString()
Overrides:
toString in class Object

readFields

void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2013 The Apache Software Foundation