Search in sources :

Example 6 with IndexFunction

use of com.cinchapi.ccl.type.function.IndexFunction in project concourse by cinchapi.

the class ConvertTest method testConvertIndexFunctionToThriftRoundTrip.

@Test
public void testConvertIndexFunctionToThriftRoundTrip() {
    IndexFunction expected = new IndexFunction("average", "age");
    IndexFunction actual = (IndexFunction) Convert.thriftToJava(Convert.javaToThrift(expected));
    Assert.assertEquals(expected, actual);
}
Also used : IndexFunction(com.cinchapi.ccl.type.function.IndexFunction) Test(org.junit.Test)

Aggregations

IndexFunction (com.cinchapi.ccl.type.function.IndexFunction)6 TObject (com.cinchapi.concourse.thrift.TObject)4 KeyConditionFunction (com.cinchapi.ccl.type.function.KeyConditionFunction)3 KeyRecordsFunction (com.cinchapi.ccl.type.function.KeyRecordsFunction)3 Function (com.cinchapi.ccl.type.Function)2 TemporalFunction (com.cinchapi.ccl.type.function.TemporalFunction)2 Link (com.cinchapi.concourse.Link)2 Type (com.cinchapi.concourse.thrift.Type)2 ByteBuffer (java.nio.ByteBuffer)2 Test (org.junit.Test)2 FunctionValueSymbol (com.cinchapi.ccl.grammar.FunctionValueSymbol)1 Symbol (com.cinchapi.ccl.grammar.Symbol)1 ConditionTree (com.cinchapi.ccl.syntax.ConditionTree)1 AdHocIterator (com.cinchapi.common.base.AdHocIterator)1 ArrayBuilder (com.cinchapi.common.base.ArrayBuilder)1 Reflection (com.cinchapi.common.reflect.Reflection)1 Constants (com.cinchapi.concourse.Constants)1 Tag (com.cinchapi.concourse.Tag)1 Timestamp (com.cinchapi.concourse.Timestamp)1 Calculations (com.cinchapi.concourse.server.calculate.Calculations)1