T
- type of itempublic abstract static class DataToItemsSketch.DataToItemsSketchIntermediateFinal<T>
extends org.apache.pig.EvalFunc<org.apache.pig.data.Tuple>
Constructor and Description |
---|
DataToItemsSketchIntermediateFinal(int k,
Comparator<T> comparator,
org.apache.datasketches.ArrayOfItemsSerDe<T> serDe)
Constructor for the intermediate and final passes of an Algebraic function.
|
Modifier and Type | Method and Description |
---|---|
org.apache.pig.data.Tuple |
exec(org.apache.pig.data.Tuple inputTuple) |
protected T |
extractValue(Object object)
Override this if it takes more than a cast to convert from Pig type to type T
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLoadCaster, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, needEndOfAllInputProcessing, outputSchema, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
public DataToItemsSketchIntermediateFinal(int k, Comparator<T> comparator, org.apache.datasketches.ArrayOfItemsSerDe<T> serDe)
k
- parameter that determines the accuracy and size of the sketch.comparator
- for items of type TserDe
- an instance of ArrayOfItemsSerDe for type Tprotected T extractValue(Object object)
object
- Pig object, which needs to be converted to type Tpublic 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.