Package co.nubetech.crux.server.functions

Examples of co.nubetech.crux.server.functions.SumDoubleAggregator.aggregate()


 
  @Test
  public void testGetSemiAggregatedResultNonAggregateFirst() throws CruxException{
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    SumDoubleAggregator summer = new SumDoubleAggregator();
    summer.aggregate(Bytes.toBytes(new Double(54.5d)));
    xFnStack.push(new Ceil());
    xFnStack.push(summer);
    assertEquals(54.5d, FunctionUtil.getSemiAggregatedResult(xFnStack));
  }
 
View Full Code Here


 
  @Test
  public void testGetSemiAggResultAggregateFirst() throws CruxException{
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    SumDoubleAggregator summer = new SumDoubleAggregator();
    summer.aggregate(Bytes.toBytes(new Double(54.5d)));
    xFnStack.push(summer);
    xFnStack.push(new Ceil());
    assertEquals(54.5d, FunctionUtil.getSemiAggregatedResult(xFnStack));
  }
 
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.