public static class SparkPigSplit.FileSparkPigSplit extends org.apache.hadoop.mapreduce.lib.input.FileSplit implements SparkPigSplit
SparkPigSplit.FileSparkPigSplit, SparkPigSplit.GenericSparkPigSplit
Constructor and Description |
---|
FileSparkPigSplit()
Spark executor's deserializer calls this, and we have to instantiate a default wrapped object
|
FileSparkPigSplit(PigSplit pigSplit) |
Modifier and Type | Method and Description |
---|---|
boolean |
disableCounter() |
org.apache.hadoop.conf.Configuration |
getConf() |
long |
getLength() |
long |
getLength(int idx) |
org.apache.hadoop.mapred.SplitLocationInfo[] |
getLocationInfo() |
String[] |
getLocations() |
int |
getNumPaths() |
org.apache.hadoop.fs.Path |
getPath() |
int |
getSplitIndex() |
PigSplit |
getWrappedPigSplit() |
org.apache.hadoop.mapreduce.InputSplit |
getWrappedSplit() |
org.apache.hadoop.mapreduce.InputSplit |
getWrappedSplit(int idx) |
boolean |
isMultiInputs() |
void |
readFields(DataInput is) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
setCurrentIdx(int idx) |
void |
setDisableCounter(boolean disableCounter) |
void |
setMultiInputs(boolean b) |
String |
toString() |
void |
write(DataOutput os) |
public FileSparkPigSplit()
public FileSparkPigSplit(PigSplit pigSplit)
public org.apache.hadoop.mapred.SplitLocationInfo[] getLocationInfo() throws IOException
getLocationInfo
in interface SparkPigSplit
getLocationInfo
in class org.apache.hadoop.mapreduce.lib.input.FileSplit
IOException
public String toString()
toString
in class org.apache.hadoop.mapreduce.lib.input.FileSplit
public long getLength()
getLength
in class org.apache.hadoop.mapreduce.lib.input.FileSplit
public String[] getLocations() throws IOException
getLocations
in class org.apache.hadoop.mapreduce.lib.input.FileSplit
IOException
public org.apache.hadoop.mapreduce.InputSplit getWrappedSplit()
getWrappedSplit
in interface SparkPigSplit
public org.apache.hadoop.mapreduce.InputSplit getWrappedSplit(int idx)
getWrappedSplit
in interface SparkPigSplit
public long getLength(int idx) throws IOException, InterruptedException
getLength
in interface SparkPigSplit
IOException
InterruptedException
public void readFields(DataInput is) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.mapreduce.lib.input.FileSplit
IOException
public void write(DataOutput os) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.mapreduce.lib.input.FileSplit
IOException
public int getSplitIndex()
getSplitIndex
in interface SparkPigSplit
public void setMultiInputs(boolean b)
setMultiInputs
in interface SparkPigSplit
public boolean isMultiInputs()
isMultiInputs
in interface SparkPigSplit
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public int getNumPaths()
getNumPaths
in interface SparkPigSplit
public void setDisableCounter(boolean disableCounter)
setDisableCounter
in interface SparkPigSplit
public boolean disableCounter()
disableCounter
in interface SparkPigSplit
public void setCurrentIdx(int idx)
setCurrentIdx
in interface SparkPigSplit
public PigSplit getWrappedPigSplit()
getWrappedPigSplit
in interface SparkPigSplit
public org.apache.hadoop.fs.Path getPath()
getPath
in class org.apache.hadoop.mapreduce.lib.input.FileSplit
Copyright © 2007-2017 The Apache Software Foundation