public static class CombineHiveInputFormat.CombineHiveInputSplit extends HadoopShimsSecure.InputSplitShim
Constructor and Description |
---|
CombineHiveInputFormat.CombineHiveInputSplit() |
CombineHiveInputFormat.CombineHiveInputSplit(org.apache.hadoop.mapred.lib.CombineFileSplit inputSplitShim) |
CombineHiveInputFormat.CombineHiveInputSplit(org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.lib.CombineFileSplit inputSplitShim) |
CombineHiveInputFormat.CombineHiveInputSplit(org.apache.hadoop.mapred.JobConf job,
org.apache.hadoop.mapred.lib.CombineFileSplit inputSplitShim,
Map<String,PartitionDesc> pathToPartitionInfo) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.mapred.lib.CombineFileSplit |
getInputSplitShim() |
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.
|
String |
inputFormatClassName()
Returns the inputFormat class name for the i-th chunk.
|
void |
readFields(DataInput in)
Writable interface.
|
void |
setInputFormatClassName(String inputFormatClassName) |
String |
toString()
Prints this obejct as a string.
|
void |
write(DataOutput out)
Writable interface.
|
getShrinkedLength, isShrinked, shrinkSplit
public CombineHiveInputFormat.CombineHiveInputSplit() throws IOException
IOException
public CombineHiveInputFormat.CombineHiveInputSplit(org.apache.hadoop.mapred.lib.CombineFileSplit inputSplitShim) throws IOException
IOException
public CombineHiveInputFormat.CombineHiveInputSplit(org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.lib.CombineFileSplit inputSplitShim) throws IOException
IOException
public CombineHiveInputFormat.CombineHiveInputSplit(org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.mapred.lib.CombineFileSplit inputSplitShim, Map<String,PartitionDesc> pathToPartitionInfo) throws IOException
IOException
public org.apache.hadoop.mapred.lib.CombineFileSplit getInputSplitShim()
public String inputFormatClassName()
public void setInputFormatClassName(String inputFormatClassName)
public org.apache.hadoop.mapred.JobConf getJob()
getJob
in class org.apache.hadoop.mapred.lib.CombineFileSplit
public long getLength()
getLength
in interface org.apache.hadoop.mapred.InputSplit
getLength
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public long[] getStartOffsets()
getStartOffsets
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public long[] getLengths()
getLengths
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public long getOffset(int i)
getOffset
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public long getLength(int i)
getLength
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public int getNumPaths()
getNumPaths
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public org.apache.hadoop.fs.Path getPath(int i)
getPath
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public org.apache.hadoop.fs.Path[] getPaths()
getPaths
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public String[] getLocations() throws IOException
getLocations
in interface org.apache.hadoop.mapred.InputSplit
getLocations
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
IOException
public String toString()
toString
in class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class HadoopShimsSecure.InputSplitShim
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class HadoopShimsSecure.InputSplitShim
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.