public abstract class RandomJELEvaluator extends Object implements Closeable
Constructor and Description |
---|
RandomJELEvaluator() |
Modifier and Type | Method and Description |
---|---|
static RandomJELEvaluator |
createEvaluator(StarTable table,
String expr,
boolean isConcurrent)
Returns a RandomJELEvaluator instance for a given table and expression.
|
abstract boolean |
evaluateBoolean(long lrow)
Returns the value of the expression at a given table row as a boolean.
|
abstract double |
evaluateDouble(long lrow)
Returns the value of the expression at a given table row as a double.
|
abstract Object |
evaluateObject(long lrow)
Returns the value of the expression at a given table row as an Object.
|
public abstract Object evaluateObject(long lrow) throws IOException
lrow
- evaluation row indexIOException
public abstract double evaluateDouble(long lrow) throws IOException
lrow
- evaluation row indexIOException
public abstract boolean evaluateBoolean(long lrow) throws IOException
lrow
- evaluation row indexIOException
public static RandomJELEvaluator createEvaluator(StarTable table, String expr, boolean isConcurrent) throws gnu.jel.CompilationException
isConcurrent
parameter.table
- context for expression evaluationexpr
- JEL expressionisConcurrent
- whether result will be suitable for concurrent useisConcurrent
was set truegnu.jel.CompilationException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.