Examples of AvgLongProto


Examples of org.apache.tajo.InternalTypes.AvgLongProto

  @Override
  public void merge(FunctionContext ctx, Tuple part) {
    AvgContext avgCtx = (AvgContext) ctx;
    ProtobufDatum datum = (ProtobufDatum) part.get(0);
    AvgLongProto proto = (AvgLongProto) datum.get();
    avgCtx.sum += proto.getSum();
    avgCtx.count += proto.getCount();
  }
View Full Code Here

Examples of org.apache.tajo.InternalTypes.AvgLongProto

  @Override
  public void merge(FunctionContext ctx, Tuple part) {
    AvgContext avgCtx = (AvgContext) ctx;
    ProtobufDatum datum = (ProtobufDatum) part.get(0);
    AvgLongProto proto = (AvgLongProto) datum.get();
    avgCtx.sum += proto.getSum();
    avgCtx.count += proto.getCount();
  }
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.