public class JaninoRexCompiler extends Object implements Interpreter.ScalarCompiler
| Modifier and Type | Field and Description |
|---|---|
private RexBuilder |
rexBuilder |
| Constructor and Description |
|---|
JaninoRexCompiler(RexBuilder rexBuilder) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static Scalar |
baz(ParameterExpression context_,
ParameterExpression outputValues_,
BlockStatement block)
Given a method that implements
Scalar.execute(Context, Object[]),
adds a bridge method that implements Scalar.execute(Context), and
compiles. |
Scalar |
compile(List<RexNode> nodes,
RelDataType inputRowType) |
(package private) static Scalar |
getScalar(ClassDeclaration expr,
String s) |
private final RexBuilder rexBuilder
public JaninoRexCompiler(RexBuilder rexBuilder)
public Scalar compile(List<RexNode> nodes, RelDataType inputRowType)
compile in interface Interpreter.ScalarCompilerstatic Scalar baz(ParameterExpression context_, ParameterExpression outputValues_, BlockStatement block)
Scalar.execute(Context, Object[]),
adds a bridge method that implements Scalar.execute(Context), and
compiles.static Scalar getScalar(ClassDeclaration expr, String s) throws org.codehaus.commons.compiler.CompileException, IOException
org.codehaus.commons.compiler.CompileExceptionIOExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.