public class ErrorBounds
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
DataToSketch.exec(Tuple) for the definition of a Sketch Tuple.
Sketch Result Tuple
| Constructor and Description |
|---|
ErrorBounds()
Constructs with the DEFAULT_UPDATE_SEED used when deserializing the sketch.
|
ErrorBounds(long seed)
Constructs with the given seed.
|
ErrorBounds(String seedStr)
Constructs with the given seed.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.pig.data.Tuple |
exec(org.apache.pig.data.Tuple sketchTuple) |
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
The output is a Sketch Result Tuple Schema.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic ErrorBounds()
public ErrorBounds(String seedStr)
seedStr - the string seed used when deserializing the sketch.public ErrorBounds(long seed)
seed - used when deserializing the sketch.public org.apache.pig.data.Tuple exec(org.apache.pig.data.Tuple sketchTuple)
throws IOException
exec in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>IOExceptionpublic 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.Tuple>Copyright © 2015–2019 The Apache Software Foundation. All rights reserved.