@Test public void testGetLongOut() throws Exception { TupleSchema schema = TupleSchema.builder(). addField("a", Long.TYPE). addField("b", Long.TYPE). addField("c", Long.TYPE). heapMemory(). build(); FastTuple tuple = schema.createTuple(); tuple.setLong(1, 100L); tuple.setLong(2, 600L); tuple.setLong(3, 1000L); TupleExpressionGenerator.LongTupleExpression eval = TupleExpressionGenerator.builder().expression("tuple.a + tuple.b + tuple.c").schema(schema).returnLong(); assertEquals(1700L, eval.evaluate(tuple)); }
public static Builder builder() { return new Builder(); }
TupleExpressionGenerator extends ClassBodyEvaluator { public static Builder builder() { return new Builder(); } }
TupleExpressionGenerator extends ClassBodyEvaluator { public static Builder builder() { return new Builder(); } private  TupleExpressionGenerator(TupleSchema schema, String expression, Class iface, Class returnType); }
TupleExpressionGenerator extends ClassBodyEvaluator { public static Builder builder() { return new Builder(); } private  TupleExpressionGenerator(TupleSchema schema, String expression, Class iface, Class returnType); static Builder builder(); Object evaluator(); }
TupleExpressionGenerator extends ClassBodyEvaluator { public static Builder builder() { return new Builder(); } private  TupleExpressionGenerator(TupleSchema schema, String expression, Class iface, Class returnType); static Builder builder(); Object evaluator();  }