Package org.apache.tajo.InternalTypes

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


  @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

Related Classes of org.apache.tajo.InternalTypes.AvgLongProto

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.