U
- Type of the update valueS
- Type of the summarypublic abstract class DataToSketchAlgebraicIntermediateFinal<U,S extends org.apache.datasketches.tuple.UpdatableSummary<U>>
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
Constructor and Description |
---|
DataToSketchAlgebraicIntermediateFinal(int sketchSize,
float samplingProbability,
org.apache.datasketches.tuple.SummaryFactory<S> summaryFactory,
org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps,
org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
Constructs a function given a sketch size, sampling probability, summary factory,
summary set operations and summary deserializer
|
DataToSketchAlgebraicIntermediateFinal(int sketchSize,
org.apache.datasketches.tuple.SummaryFactory<S> summaryFactory,
org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps,
org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
Constructs a function given a sketch size, summary factory, summary set operations,
summary deserializer and default sampling probability of 1.
|
DataToSketchAlgebraicIntermediateFinal(org.apache.datasketches.tuple.SummaryFactory<S> summaryFactory,
org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps,
org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
Constructs a function given a summary factory, summary set operations, summary deserializer,
default sketch size and default sampling probability of 1.
|
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 DataToSketchAlgebraicIntermediateFinal(org.apache.datasketches.tuple.SummaryFactory<S> summaryFactory, org.apache.datasketches.tuple.SummarySetOperations<S> summarySetOps, org.apache.datasketches.tuple.SummaryDeserializer<S> summaryDeserializer)
summaryFactory
- an instance of SummaryFactorysummarySetOps
- an instance of SummarySetOperaionssummaryDeserializer
- an instance of SummaryDeserializerpublic DataToSketchAlgebraicIntermediateFinal(int sketchSize, org.apache.datasketches.tuple.SummaryFactory<S> summaryFactory, 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.summaryFactory
- an instance of SummaryFactorysummarySetOps
- an instance of SummarySetOperaionssummaryDeserializer
- an instance of SummaryDeserializerpublic DataToSketchAlgebraicIntermediateFinal(int sketchSize, float samplingProbability, org.apache.datasketches.tuple.SummaryFactory<S> summaryFactory, 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.samplingProbability
- parameter from 0 to 1 inclusivesummaryFactory
- an instance of SummaryFactorysummarySetOps
- an instance of SummarySetOperaionssummaryDeserializer
- 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.