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, skipNextgetAbsolutePath, getCacheFiles, getPathStrings, getShipFiles, join, warnpublic static final String NUMROWS_TUPLE_MARKER
public Tuple getNext() throws IOException
LoadFuncgetNext in class LoadFuncIOException - if there is an exception while retrieving the next
tuplepublic void prepareToRead(org.apache.hadoop.mapreduce.RecordReader reader,
PigSplit split)
throws IOException
LoadFuncprepareToRead in class SampleLoaderreader - 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