Examples of FirstLastValueServerAggregator


Examples of org.apache.phoenix.expression.aggregator.FirstLastValueServerAggregator

        super(childExpressions, delegate);
    }

    @Override
    public Aggregator newServerAggregator(Configuration conf) {
        FirstLastValueServerAggregator aggregator = new FirstLastValueServerAggregator();

        boolean order = (Boolean) ((LiteralExpression) children.get(1)).getValue();
        aggregator.init(children, order, 0);

        return aggregator;
    }
View Full Code Here

Examples of org.apache.phoenix.expression.aggregator.FirstLastValueServerAggregator

        super(childExpressions, delegate);
    }

    @Override
    public Aggregator newServerAggregator(Configuration conf) {
        FirstLastValueServerAggregator aggregator = new FirstLastValueServerAggregator();

        //invert order for LAST_BY function cause it is inverted version of FIRST_BY
        boolean order = !(Boolean) ((LiteralExpression) children.get(1)).getValue();
        aggregator.init(children, order, 0);

        return aggregator;
    }
View Full Code Here

Examples of org.apache.phoenix.expression.aggregator.FirstLastValueServerAggregator

        super(childExpressions, delegate);
    }

    @Override
    public Aggregator newServerAggregator(Configuration conf) {
        FirstLastValueServerAggregator aggregator = new FirstLastValueServerAggregator();

        offset = ((Number) ((LiteralExpression) children.get(3)).getValue()).intValue();
        boolean order = (Boolean) ((LiteralExpression) children.get(1)).getValue();

        aggregator.init(children, order, offset);

        return aggregator;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.