@CombineFunction public static void combine(@AggregationState RegressionState state, @AggregationState RegressionState otherState) { mergeRegressionState(state, otherState); }
@CombineFunction public static void combine(@AggregationState CovarianceState state, @AggregationState CovarianceState otherState) { DoubleCovarianceAggregation.combine(state, otherState); }
@CombineFunction public static void combine(@AggregationState CentralMomentsState state, @AggregationState CentralMomentsState otherState) { mergeCentralMomentsState(state, otherState); }
@CombineFunction public static void combine(@AggregationState CorrelationState state, @AggregationState CorrelationState otherState) { mergeCorrelationState(state, otherState); }
@OutputFunction(StandardTypes.BOOLEAN) public static void output(@AggregationState TriStateBooleanState state, BlockBuilder out) { TriStateBooleanState.write(BooleanType.BOOLEAN, state, out); } }
@CombineFunction public static void combine(@AggregationState NullableDoubleState combine1, @AggregationState NullableDoubleState combine2) { // noop this is only for annotation testing puproses }
@CombineFunction public static void combine(@AggregationState NullableDoubleState combine1, @AggregationState NullableDoubleState combine2) { // noop this is only for annotation testing puproses }
@CombineFunction public static void combine( @AggregationState NullableDoubleState combine1, @AggregationState NullableDoubleState combine2) { // noop this is only for annotation testing puproses }
@CombineFunction public static void combine( @AggregationState NullableDoubleState combine1, @AggregationState NullableDoubleState combine2) { // noop this is only for annotation testing puproses }
@CombineFunction public static void combine( @AggregationState NullableDoubleState combine1, @AggregationState NullableDoubleState combine2) { // noop this is only for annotation testing puproses }
@CombineFunction public static void combine(@AggregationState LongState state, @AggregationState LongState otherState) { state.setLong(state.getLong() + otherState.getLong()); }
@OutputFunction(StandardTypes.BIGINT) public static void output(@AggregationState NullableLongState state, BlockBuilder out) { NullableLongState.write(BigintType.BIGINT, state, out); } }
@OutputFunction(StandardTypes.HYPER_LOG_LOG) public static void evaluateFinal(@AggregationState HyperLogLogState state, BlockBuilder out) { SERIALIZER.serialize(state, out); } }
@InputFunction public static void input(@AggregationState RegressionState state, @SqlType(StandardTypes.REAL) long dependentValue, @SqlType(StandardTypes.REAL) long independentValue) { DoubleRegressionAggregation.input(state, intBitsToFloat((int) dependentValue), intBitsToFloat((int) independentValue)); }
@OutputFunction("varchar(z)") public static void output( @AggregationState SliceState state, BlockBuilder out) { // noop this is only for annotation testing puproses } }
@InputFunction public static void input(@AggregationState LongState state) { state.setLong(state.getLong() + 1); }
@OutputFunction(StandardTypes.REAL) public static void output(@AggregationState NullableDoubleState state, BlockBuilder out) { if (state.isNull()) { out.appendNull(); } else { REAL.writeLong(out, floatToRawIntBits((float) state.getDouble())); } } }
@OutputFunction(StandardTypes.DOUBLE) public static void output(@AggregationState LongAndDoubleState state, BlockBuilder out) { long count = state.getLong(); if (count == 0) { out.appendNull(); } else { DOUBLE.writeDouble(out, Math.exp(state.getDouble() / count)); } } }
@InputFunction public static void add(@AggregationState DoubleHistogramAggregation.State state, @SqlType(StandardTypes.BIGINT) long buckets, @SqlType(StandardTypes.REAL) long value, @SqlType(StandardTypes.DOUBLE) double weight) { DoubleHistogramAggregation.add(state, buckets, intBitsToFloat((int) value), weight); }
@InputFunction public static void input(@AggregationState RegressionState state, @SqlType(StandardTypes.DOUBLE) double dependentValue, @SqlType(StandardTypes.DOUBLE) double independentValue) { updateRegressionState(state, independentValue, dependentValue); }