public static class SparkPigSplit.GenericSparkPigSplit extends org.apache.hadoop.mapreduce.InputSplit implements SparkPigSplit
SparkPigSplit.FileSparkPigSplit, SparkPigSplit.GenericSparkPigSplit
Constructor and Description |
---|
GenericSparkPigSplit()
Spark executor's deserializer calls this, and we have to instantiate a default wrapped object
|
GenericSparkPigSplit(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() |
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 GenericSparkPigSplit()
public GenericSparkPigSplit(PigSplit pigSplit)
public org.apache.hadoop.mapred.SplitLocationInfo[] getLocationInfo() throws IOException
getLocationInfo
in interface SparkPigSplit
getLocationInfo
in class org.apache.hadoop.mapreduce.InputSplit
IOException
public long getLength() throws IOException, InterruptedException
getLength
in class org.apache.hadoop.mapreduce.InputSplit
IOException
InterruptedException
public String[] getLocations() throws IOException, InterruptedException
getLocations
in class org.apache.hadoop.mapreduce.InputSplit
IOException
InterruptedException
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
IOException
public void write(DataOutput os) throws IOException
write
in interface org.apache.hadoop.io.Writable
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
Copyright © 2007-2017 The Apache Software Foundation