Examples of TAggregator


Examples of com.foundationdb.server.types.TAggregator

    private String aggrsToString() {
        int pAggersLen = pAggrs.size();
        StringBuilder sb = new StringBuilder(pAggersLen * 6); // guess at the size, doesn't matter much
        sb.append('[');
        for (int i = 0; i < pAggersLen; ++i) {
            TAggregator aggregator = pAggrs.get(i);
            sb.append(aggregator);
            if (! (aggregator instanceof MCount)) {
                sb.append(rowType().typeAt(i + inputsIndex).typeClass().name().unqualifiedName());
            }
            if ( (i+1) < pAggersLen)
View Full Code Here

Examples of com.foundationdb.server.types.TAggregator

        // for use in this class

        private void aggregate(Row input) {
            for (int i=0; i < pAggrs.size(); ++i) {
                TAggregator aggregator = pAggrs.get(i);
                int inputIndex = i + inputsIndex;
                TInstance inputType = input.rowType().typeAt(inputIndex);
                ValueSource inputSource = input.value(inputIndex);
                aggregator.input(inputType, inputSource, pAggrTypes.get(i), pAggrsStates.get(i), options.get(i));
            }
        }
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.