S
- Type of Summarypublic abstract class UnionSketchAlgebraicIntermediateFinal<S extends org.apache.datasketches.tuple.Summary>
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
Constructor and Description |
---|
UnionSketchAlgebraicIntermediateFinal(int sketchSize,
org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps,
org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
Constructs a function given a sketch size and summary factory
|
UnionSketchAlgebraicIntermediateFinal(org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps,
org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
Constructs a function given a summary factory and default sketch size
|
Modifier and Type | Method and Description |
---|---|
org.apache.pig.data.Tuple |
exec(org.apache.pig.data.Tuple inputTuple) |
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public UnionSketchAlgebraicIntermediateFinal(org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps, org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
summarySetOps
- an instance of SummarySetOperationssummaryDeserializer
- an instance of SummaryDeserializerpublic UnionSketchAlgebraicIntermediateFinal(int sketchSize, org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps, org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
sketchSize
- parameter controlling the size of the sketch and the accuracy.
It represents nominal number of entries in the sketch. Forced to the nearest power of 2
greater than given value.summarySetOps
- an instance of SummarySetOperationssummaryDeserializer
- an instance of SummaryDeserializerpublic org.apache.pig.data.Tuple exec(org.apache.pig.data.Tuple inputTuple) throws IOException
exec
in class org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
IOException
Copyright © 2015–2019 The Apache Software Foundation. All rights reserved.