Package com.alibaba.wasp.coprocessor

Examples of com.alibaba.wasp.coprocessor.IntegerColumnInterpreter


    private byte[] getSumValue(String tableName, Field field, Scan scan) throws Throwable {
      switch (field.getType()) {
        case INT32: {
          Integer sum = aggregationClient
                    .sum(Bytes.toBytes(tableName), new IntegerColumnInterpreter(),
                        scan, Bytes.toBytes(field.getName()));
          return Bytes.toBytes(sum == null ? 0 : sum.intValue());
        }
        case INT64: {
          Long sum = aggregationClient
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.coprocessor.IntegerColumnInterpreter

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.