Package com.inadco.hbl.protocodegen.Cells

Examples of com.inadco.hbl.protocodegen.Cells.Aggregation


            AggregateFunction af = afr.findFunction(functionName);
            if (af == null)
                throw new HblException(String.format("Invalid function name:%s.", functionName));
            if (result == null)
                throw new HblException("no current result");
            Aggregation measureAggr = result[index];
            if (measureAggr == null) {
                Aggregation.Builder b = delegate.current().getMeasures()[index];
                result[index] = b == null ? null : (measureAggr = b.build()); // cache
            }
View Full Code Here


        try {
            for (Tuple tup : db) {
                byte[] msg = DataType.toBytes(tup.get(0));
                if (msg == null)
                    continue; // should not happen.
                Aggregation source = Aggregation.parseFrom(msg);
                afr.mergeAll(accumulator, source, SliceOperation.ADD);
                nonDegenerate = true;
            }
            return nonDegenerate;
        } catch (InvalidProtocolBufferException exc) {
View Full Code Here

TOP

Related Classes of com.inadco.hbl.protocodegen.Cells.Aggregation

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.