public class PoissonSampleLoader extends SampleLoader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NUMROWS_TUPLE_MARKER |
loader, numSamples
Constructor and Description |
---|
PoissonSampleLoader(java.lang.String funcSpec,
java.lang.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 java.lang.String NUMROWS_TUPLE_MARKER
public PoissonSampleLoader(java.lang.String funcSpec, java.lang.String ns)
public Tuple getNext() throws java.io.IOException
LoadFunc
public void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader, PigSplit split) throws java.io.IOException
LoadFunc
prepareToRead
in class SampleLoader
reader
- RecordReader
to be used by this instance of the LoadFuncsplit
- The input PigSplit
to processjava.io.IOException
- if there is an exception during initializationCopyright © 2007-2012 The Apache Software Foundation