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

All Known Implementing Classes:
CombineHiveInputFormat.CombineHiveInputSplit
Enclosing interface:
HadoopShims

public static interface HadoopShims.InputSplitShim

InputSplitShim.


Method Summary
 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.
 Path getPath(int i)
          Returns the ith Path.
 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

JobConf getJob()

getLength

long getLength()

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

Path getPath(int i)
Returns the ith Path.


getPaths

Path[] getPaths()
Returns all the Paths in the split.


getLocations

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

Throws:
IOException

shrinkSplit

void shrinkSplit(long length)

toString

String toString()
Overrides:
toString in class Object

readFields

void readFields(DataInput in)
                throws IOException
Throws:
IOException

write

void write(DataOutput out)
           throws IOException
Throws:
IOException


Copyright © 2012 The Apache Software Foundation