org.apache.pig.backend.hadoop.executionengine.mapReduceLayer
Class PigSplit

java.lang.Object
  extended by org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit
All Implemented Interfaces:
org.apache.hadoop.io.Writable, org.apache.hadoop.mapred.InputSplit

public class PigSplit
extends Object
implements org.apache.hadoop.mapred.InputSplit

The main split class that maintains important information about the input split.


Constructor Summary
PigSplit()
           
PigSplit(PigContext pigContext, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, String parser, List<OperatorKey> targetOps, long start, long length)
           
 
Method Summary
 long getLength()
           
 LoadFunc getLoadFunction()
           
 String[] getLocations()
           
 String getParser()
           
 org.apache.hadoop.fs.Path getPath()
           
 long getStart()
           
 List<OperatorKey> getTargetOps()
           
 void readFields(DataInput is)
           
 void write(DataOutput os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PigSplit

public PigSplit()

PigSplit

public PigSplit(PigContext pigContext,
                org.apache.hadoop.fs.FileSystem fs,
                org.apache.hadoop.fs.Path path,
                String parser,
                List<OperatorKey> targetOps,
                long start,
                long length)
Method Detail

getParser

public String getParser()

getStart

public long getStart()

getLength

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

getPath

public org.apache.hadoop.fs.Path getPath()

getTargetOps

public List<OperatorKey> getTargetOps()

getLoadFunction

public LoadFunc getLoadFunction()

getLocations

public String[] getLocations()
                      throws IOException
Specified by:
getLocations in interface org.apache.hadoop.mapred.InputSplit
Throws:
IOException

readFields

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

write

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


Copyright © ${year} The Apache Software Foundation