Class Histogram
- java.lang.Object
-
- io.prestosql.metadata.SqlAggregationFunction
-
- io.prestosql.operator.aggregation.histogram.Histogram
-
- All Implemented Interfaces:
SqlFunction
public class Histogram extends SqlAggregationFunction
-
-
Field Summary
Fields Modifier and Type Field Description static int
EXPECTED_SIZE_FOR_HASHING
static String
NAME
-
Constructor Summary
Constructors Constructor Description Histogram(HistogramGroupImplementation groupMode, BlockTypeOperators blockTypeOperators)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
combine(HistogramState state, HistogramState otherState)
List<TypeSignature>
getIntermediateTypes(FunctionBinding functionBinding)
static void
input(Type type, HistogramState state, Block key, int position)
static void
output(Type type, HistogramState state, BlockBuilder out)
InternalAggregationFunction
specialize(FunctionBinding functionBinding)
-
Methods inherited from class io.prestosql.metadata.SqlAggregationFunction
createFunctionByAnnotations, createFunctionsByAnnotations, getAggregationMetadata, getFunctionMetadata, specialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.prestosql.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
EXPECTED_SIZE_FOR_HASHING
public static final int EXPECTED_SIZE_FOR_HASHING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Histogram
public Histogram(HistogramGroupImplementation groupMode, BlockTypeOperators blockTypeOperators)
-
-
Method Detail
-
getIntermediateTypes
public List<TypeSignature> getIntermediateTypes(FunctionBinding functionBinding)
- Overrides:
getIntermediateTypes
in classSqlAggregationFunction
-
specialize
public InternalAggregationFunction specialize(FunctionBinding functionBinding)
- Overrides:
specialize
in classSqlAggregationFunction
-
input
public static void input(Type type, HistogramState state, Block key, int position)
-
combine
public static void combine(HistogramState state, HistogramState otherState)
-
output
public static void output(Type type, HistogramState state, BlockBuilder out)
-
-