datafu.pig.sampling
Class ReservoirSample.Intermediate

java.lang.Object
  extended by org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
      extended by datafu.pig.sampling.ReservoirSample.Intermediate
Enclosing class:
ReservoirSample

public static class ReservoirSample.Intermediate
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>


Field Summary
 
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
 
Constructor Summary
ReservoirSample.Intermediate()
           
ReservoirSample.Intermediate(java.lang.String numSamples)
           
 
Method Summary
 org.apache.pig.data.Tuple exec(org.apache.pig.data.Tuple input)
           
 
Methods inherited from class org.apache.pig.EvalFunc
finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, isAsynchronous, outputSchema, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservoirSample.Intermediate

public ReservoirSample.Intermediate()

ReservoirSample.Intermediate

public ReservoirSample.Intermediate(java.lang.String numSamples)
Method Detail

exec

public org.apache.pig.data.Tuple exec(org.apache.pig.data.Tuple input)
                               throws java.io.IOException
Specified by:
exec in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
Throws:
java.io.IOException


Matthew Hayes, Sam Shah