Package org.apache.tajo.engine.function.builtin

Examples of org.apache.tajo.engine.function.builtin.AvgLong.merge()


      avg.eval(ctx2, tuples2[i-1]);
    }
    assertTrue((double)55 / 10 == avg.terminate(ctx2).asFloat8());


    avg.merge(ctx, new VTuple(new Datum[] {avg.getPartialResult(ctx2)}));
    assertTrue((double)(15 + 55) / (5 + 10) == avg.terminate(ctx).asFloat8());
  }
}
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.