| Modifier and Type | Field and Description |
|---|---|
private String |
code |
private Function1<DataContext,Object[]> |
compiledFunction |
private DataContext |
dataContext |
private static String |
GENERATED_CLASS_NAME |
| Constructor and Description |
|---|
RexExecutable(String code,
Object reason) |
| Modifier and Type | Method and Description |
|---|---|
private static Function1<DataContext,Object[]> |
compile(String code,
Object reason) |
Object[] |
execute() |
Function1<DataContext,Object[]> |
getFunction() |
String |
getSource() |
void |
reduce(RexBuilder rexBuilder,
List<RexNode> constExps,
List<RexNode> reducedValues) |
void |
setDataContext(DataContext dataContext) |
private static final String GENERATED_CLASS_NAME
private final Function1<DataContext,Object[]> compiledFunction
private final String code
private DataContext dataContext
private static Function1<DataContext,Object[]> compile(String code, Object reason)
public void setDataContext(DataContext dataContext)
public void reduce(RexBuilder rexBuilder, List<RexNode> constExps, List<RexNode> reducedValues)
public Function1<DataContext,Object[]> getFunction()
public Object[] execute()
public String getSource()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.