public class PoissonSampleLoader extends SampleLoader
Modifier and Type | Field and Description |
---|---|
static String |
NUMROWS_TUPLE_MARKER |
loader, numSamples
Constructor and Description |
---|
PoissonSampleLoader(String funcSpec,
String ns) |
Modifier and Type | Method and Description |
---|---|
Tuple |
getNext()
Retrieves the next tuple to be processed.
|
void |
prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader,
PigSplit split)
Initializes LoadFunc for reading data.
|
computeSamples, getInputFormat, getLoadCaster, getNumSamples, relativeToAbsolutePath, setLocation, setNumSamples, setUDFContextSignature, skipNext
getAbsolutePath, getCacheFiles, getPathStrings, getShipFiles, join, warn
public static final String NUMROWS_TUPLE_MARKER
public Tuple getNext() throws IOException
LoadFunc
getNext
in class LoadFunc
IOException
- if there is an exception while retrieving the next
tuplepublic void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader, PigSplit split) throws IOException
LoadFunc
prepareToRead
in class SampleLoader
reader
- RecordReader
to be used by this instance of the LoadFuncsplit
- The input PigSplit
to processIOException
- if there is an exception during initializationCopyright © 2007-2017 The Apache Software Foundation