Package co.nubetech.crux.server.functions

Examples of co.nubetech.crux.server.functions.UpperCase


  }
 
  @Test
  public void testApplyFunctionsAllNonAggregate() throws CruxException{
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    xFnStack.push(new UpperCase());
    byte[] value = Bytes.toBytes(new String("rowKey"));
    FunctionUtil.applyAggregateFunctions(value, xFnStack);   
  }
View Full Code Here


 
  @Test
  public void testGetSemiAggregatedResultWithoutAggFn() throws CruxException{
    //getSimpleFunctionResult
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    xFnStack.push(new UpperCase());
    xFnStack.push(new LowerCase());
    FunctionUtil.getSemiAggregatedResult(xFnStack);
  }
View Full Code Here

 
  @Test
  public void testGetSimpleFunctionResultTwoFns() throws CruxException{
    //getSimpleFunctionResult
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    xFnStack.push(new UpperCase());
    xFnStack.push(new LowerCase());
    assertEquals("i am a stranger", FunctionUtil.getSimpleFunctionResult(Bytes.toBytes("i AM a stranger"),
        xFnStack));
  }
View Full Code Here

 
  @Test
  public void testGetResultByApplyingAllFunctions() throws CruxException{
    //getSimpleFunctionResult
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    xFnStack.push(new UpperCase());
    xFnStack.push(new LowerCase());
    assertEquals("i am a stranger", FunctionUtil.getResultByApplyingAllFunctions(Bytes.toBytes("i AM a stranger"),
        xFnStack));
  }
View Full Code Here

TOP

Related Classes of co.nubetech.crux.server.functions.UpperCase

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.