Package com.salesforce.phoenix.expression.aggregator

Examples of com.salesforce.phoenix.expression.aggregator.LongSumAggregator


    @Override
    public LongSumAggregator newClientAggregator() {
        // Since COUNT can never be null, ensure the aggregator is not nullable.
        // This allows COUNT(*) to return 0 with the initial state of ClientAggregators
        // when no rows are returned.
        return new LongSumAggregator(null) {
            @Override
            public boolean isNullable() {
                return false;
            }
        };
View Full Code Here


        return NAME;
    }

    @Override
    public Aggregator newServerAggregator(Configuration config, ImmutableBytesWritable ptr) {
        LongSumAggregator sumAgg = newClientAggregator();
        sumAgg.aggregate(null, ptr);
        return new CountAggregator(sumAgg);
    }
View Full Code Here

TOP

Related Classes of com.salesforce.phoenix.expression.aggregator.LongSumAggregator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.