public class VarOptSampling
extends org.apache.pig.AccumulatorEvalFunc<org.apache.pig.data.DataBag>
implements org.apache.pig.Algebraic
| Modifier and Type | Class and Description |
|---|---|
static class |
VarOptSampling.Final |
| Constructor and Description |
|---|
VarOptSampling(String kStr)
VarOpt sampling constructor.
|
VarOptSampling(String kStr,
String weightIdxStr)
VarOpt sampling constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(org.apache.pig.data.Tuple inputTuple) |
void |
cleanup() |
String |
getFinal() |
String |
getInitial() |
String |
getIntermed() |
org.apache.pig.data.DataBag |
getValue() |
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input) |
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic VarOptSampling(String kStr)
kStr - String indicating the maximum number of desired samples to return.public void accumulate(org.apache.pig.data.Tuple inputTuple)
throws IOException
accumulate in interface org.apache.pig.Accumulator<org.apache.pig.data.DataBag>accumulate in class org.apache.pig.AccumulatorEvalFunc<org.apache.pig.data.DataBag>IOExceptionpublic org.apache.pig.data.DataBag getValue()
getValue in interface org.apache.pig.Accumulator<org.apache.pig.data.DataBag>getValue in class org.apache.pig.AccumulatorEvalFunc<org.apache.pig.data.DataBag>public void cleanup()
cleanup in interface org.apache.pig.Accumulator<org.apache.pig.data.DataBag>cleanup in class org.apache.pig.AccumulatorEvalFunc<org.apache.pig.data.DataBag>public org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
outputSchema in class org.apache.pig.EvalFunc<org.apache.pig.data.DataBag>public String getInitial()
getInitial in interface org.apache.pig.Algebraicpublic String getIntermed()
getIntermed in interface org.apache.pig.Algebraicpublic String getFinal()
getFinal in interface org.apache.pig.AlgebraicCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.