@Test public void testMultiExpr() throws Exception { TupleSchema schema = TupleSchema.builder(). addField("a", Long.TYPE). addField("b", Long.TYPE). addField("c", Long.TYPE). heapMemory(). build(); FastTuple tuple = schema.createTuple(); TupleExpressionGenerator.TupleExpression eval = TupleExpressionGenerator.builder().expression("tuple.a(100), tuple.b(200), tuple.c(300)").schema(schema).returnVoid(); eval.evaluate(tuple); assertEquals(100L, tuple.getLong(1)); assertEquals(200, tuple.getLong(2)); assertEquals(300, tuple.getLong(3)); }
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();  }