Modifier and Type
Method and Description
Retrieves the next tuple to be processed.
prepareToRead PigSplit split)
Initializes LoadFunc for reading data.
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Retrieves the next tuple to be processed. Implementations should NOT reuse
tuple objects (or inner member objects) they return across calls and
should return a different tuple object in each call.
getNext LoadFunc Returns: the next tuple to be processed or null if there are no more tuples
to be processed.
- if there is an exception while retrieving the next
public void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader,
Initializes LoadFunc for reading data. This will be called during execution
before any calls to getNext. The RecordReader needs to be passed here because
it has been instantiated for a particular InputSplit.
prepareToRead SampleLoader Parameters:
RecordReader to be used by this instance of the LoadFunc
split - The input
- if there is an exception during initialization
Copyright © 2007-2012 The Apache Software Foundation