datafu.pig.sampling
Class SimpleRandomSample.Initial

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

public static class SimpleRandomSample.Initial
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
SimpleRandomSample.Initial()
           
SimpleRandomSample.Initial(java.lang.String samplingProbability)
           
 
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

SimpleRandomSample.Initial

public SimpleRandomSample.Initial()

SimpleRandomSample.Initial

public SimpleRandomSample.Initial(java.lang.String samplingProbability)
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