@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(@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(@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(SetDigestState state, @SqlType(SetDigestType.NAME) Slice value) { SetDigest instance = SetDigest.newInstance(value); merge(state, instance); }
@InputFunction public static void bigintInput(@AggregationState CentralMomentsState state, @SqlType(StandardTypes.BIGINT) long value) { updateCentralMomentsState(state, (double) value); }
@InputFunction public static void input(@AggregationState LongAndDoubleState state, @SqlType(StandardTypes.REAL) long value) { state.setLong(state.getLong() + 1); state.setDouble(state.getDouble() + Math.log(intBitsToFloat((int) value))); }
@InputFunction public static void input(@AggregationState DigestAndPercentileArrayState state, @SqlType(StandardTypes.REAL) long value, @SqlType("array(double)") Block percentilesArrayBlock) { ApproximateLongPercentileArrayAggregations.input(state, floatToSortableInt(intBitsToFloat((int) value)), percentilesArrayBlock); }
@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 CovarianceState state, @SqlType(StandardTypes.DOUBLE) double dependentValue, @SqlType(StandardTypes.DOUBLE) double independentValue) { updateCovarianceState(state, independentValue, dependentValue); }
@InputFunction public static void input(@AggregationState HyperLogLogState state, @SqlType(StandardTypes.HYPER_LOG_LOG) Slice value) { HyperLogLog input = HyperLogLog.newInstance(value); merge(state, input); }
@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 add(@AggregationState DoubleHistogramAggregation.State state, @SqlType(StandardTypes.BIGINT) long buckets, @SqlType(StandardTypes.REAL) long value) { add(state, buckets, value, 1); }
@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 input(@AggregationState LongState state, @SqlType(StandardTypes.BOOLEAN) boolean value) { if (value) { state.setLong(state.getLong() + 1); } }
@InputFunction public static void input(@AggregationState LongAndDoubleState state, @SqlType(StandardTypes.BIGINT) long value) { state.setLong(state.getLong() + 1); state.setDouble(state.getDouble() + Math.log(value)); }
@InputFunction public static void input(@AggregationState LongAndDoubleState state, @SqlType(StandardTypes.DOUBLE) double value) { state.setLong(state.getLong() + 1); state.setDouble(state.getDouble() + Math.log(value)); }
@InputFunction @TypeParameter("T") public static void input( @OperatorDependency(operator = XX_HASH_64, returnType = StandardTypes.BIGINT, argumentTypes = {"T"}) MethodHandle methodHandle, @AggregationState HyperLogLogState state, @SqlType("T") long value) { ApproximateCountDistinctAggregation.input(methodHandle, state, value, DEFAULT_STANDARD_ERROR); }
@InputFunction public static void input(@AggregationState DigestAndPercentileArrayState state, @SqlType(StandardTypes.DOUBLE) double value, @SqlType("array(double)") Block percentilesArrayBlock) { ApproximateLongPercentileArrayAggregations.input(state, doubleToSortableLong(value), percentilesArrayBlock); }
@InputFunction public static void input( @AggregationState LearnState state, @SqlType(VARCHAR) Slice label, @SqlType("map(bigint,double)") Block features) { LearnLibSvmVarcharClassifierAggregation.input(state, label, features, Slices.utf8Slice("")); }
@InputFunction public static void input(@AggregationState NullableLongState state, @SqlType(StandardTypes.BIGINT) long value) { state.setLong(state.getLong() + value); state.setNull(false); }