Refine search
@InputFunction public static void input(SpatialPartitioningState state, @SqlType(GEOMETRY_TYPE_NAME) Slice slice) { throw new UnsupportedOperationException("spatial_partitioning(geometry, samplingPercentage) aggregate function should be re-written into spatial_partitioning(geometry, samplingPercentage, partitionCount)"); }
@InputFunction public static void add(@AggregationState State state, @SqlType(BIGINT) long buckets, @SqlType(DOUBLE) double value) { add(state, buckets, value, 1); }
@InputFunction public static void input(@AggregationState LongState state) { state.setLong(state.getLong() + 1); }
@InputFunction public static void input(@AggregationState CovarianceState state, @SqlType(StandardTypes.DOUBLE) double dependentValue, @SqlType(StandardTypes.DOUBLE) double independentValue) { updateCovarianceState(state, independentValue, dependentValue); }
@InputFunction public static void input(BooleanDistinctState state, @SqlType(StandardTypes.BOOLEAN) boolean value) { ApproximateCountDistinctAggregation.input(state, value, DEFAULT_STANDARD_ERROR); }
@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)); }
@InputFunction public static void input(BooleanDistinctState state, @SqlType(StandardTypes.BOOLEAN) boolean value, @SqlType(StandardTypes.DOUBLE) double maxStandardError) { state.setByte((byte) (state.getByte() | (value ? 1 : 2))); }
@InputFunction public static void input(@AggregationState CorrelationState state, @SqlType(StandardTypes.REAL) long dependentValue, @SqlType(StandardTypes.REAL) long independentValue) { DoubleCorrelationAggregation.input(state, intBitsToFloat((int) dependentValue), intBitsToFloat((int) independentValue)); }
@InputFunction public static void input(SetDigestState state, @SqlType(SetDigestType.NAME) Slice value) { SetDigest instance = SetDigest.newInstance(value); merge(state, instance); }
@InputFunction public static void input(@AggregationState CovarianceState state, @SqlType(StandardTypes.REAL) long dependentValue, @SqlType(StandardTypes.REAL) long independentValue) { DoubleCovarianceAggregation.input(state, intBitsToFloat((int) dependentValue), intBitsToFloat((int) independentValue)); }
@InputFunction public static void input(NullableDoubleState state, @SqlType(DOUBLE) double value) { // noop this is only for annotation testing puproses }
@InputFunction public static void bigintInput(@AggregationState CentralMomentsState state, @SqlType(StandardTypes.BIGINT) long value) { updateCentralMomentsState(state, (double) value); }
@InputFunction public static void input(LongAndDoubleState state, @SqlType(StandardTypes.INTERVAL_YEAR_TO_MONTH) long value) { state.setLong(state.getLong() + 1); state.setDouble(state.getDouble() + value); }
@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(LongAndDoubleState state, @SqlType(StandardTypes.INTERVAL_DAY_TO_SECOND) long value) { state.setLong(state.getLong() + 1); state.setDouble(state.getDouble() + value); }
@InputFunction public static void add(@AggregationState DoubleHistogramAggregation.State state, @SqlType(StandardTypes.BIGINT) long buckets, @SqlType(StandardTypes.REAL) long value) { add(state, buckets, value, 1); }
@InputFunction public static void sum(NullableLongState state, @SqlType(INTERVAL_DAY_TO_SECOND) long value) { state.setNull(false); state.setLong(BigintOperators.add(state.getLong(), value)); }
@InputFunction public static void input(@AggregationState CorrelationState state, @SqlType(StandardTypes.DOUBLE) double dependentValue, @SqlType(StandardTypes.DOUBLE) double independentValue) { updateCorrelationState(state, independentValue, dependentValue); }
@InputFunction public static void sum(NullableLongState state, @SqlType(INTERVAL_YEAR_TO_MONTH) long value) { state.setNull(false); state.setLong(BigintOperators.add(state.getLong(), value)); }
@InputFunction public static void doubleInput(@AggregationState CentralMomentsState state, @SqlType(StandardTypes.DOUBLE) double value) { updateCentralMomentsState(state, value); }