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.
|
static java.util.function.Supplier<RandomJELEvaluator> |
createEvaluatorSupplier(StarTable table,
String expr)
Returns a supplier for evaluators.
|
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 java.util.function.Supplier<RandomJELEvaluator> createEvaluatorSupplier(StarTable table, String expr) throws gnu.jel.CompilationException
table
- context for expression evaluationexpr
- JEL expressiongnu.jel.CompilationException
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 © 2025 Central Laboratory of the Research Councils. All Rights Reserved.