public class Evaluator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Evaluator.NameValuePair<T> |
Modifier and Type | Field and Description |
---|---|
protected CommandContext |
context |
protected ProcessorDataManager |
dataMgr |
protected Map |
elements |
static char[] |
REGEX_RESERVED |
static MatchCriteria.PatternTranslator |
SIMILAR_TO_REGEX |
Constructor and Description |
---|
Evaluator(Map elements,
ProcessorDataManager dataMgr,
CommandContext context) |
Modifier and Type | Method and Description |
---|---|
static Boolean |
compare(int operator,
Object leftValue,
Object value) |
static boolean |
evaluate(Criteria criteria) |
boolean |
evaluate(Criteria criteria,
List<?> tuple) |
static Object |
evaluate(Expression expression) |
Object |
evaluate(Expression expression,
List<?> tuple) |
void |
evaluateParameters(List<DerivedColumn> cols,
List<?> tuple,
Map<String,Object> parameters)
Evaluate the parameters and return the context item if it exists
|
protected Object |
evaluateProcedure(Function function,
List<?> tuple,
Object[] values) |
protected Object |
evaluatePushdown(Function function,
List<?> tuple,
Object[] values) |
protected ValueIterator |
evaluateSubquery(SubqueryContainer<?> container,
List<?> tuple) |
Boolean |
evaluateTVL(Criteria criteria,
List<?> tuple) |
static InputStreamFactory |
getInputStreamFactory(Streamable<?> s) |
void |
initialize(CommandContext context,
ProcessorDataManager dataMgr) |
protected Object |
internalEvaluate(Expression expression,
List<?> tuple) |
static JsonType |
jsonArray(CommandContext context,
Function f,
Object[] vals,
JSONFunctionMethods.JSONBuilder builder,
Evaluator eval,
List<?> tuple) |
public static final char[] REGEX_RESERVED
public static final MatchCriteria.PatternTranslator SIMILAR_TO_REGEX
protected Map elements
protected ProcessorDataManager dataMgr
protected CommandContext context
public Evaluator(Map elements, ProcessorDataManager dataMgr, CommandContext context)
public static boolean evaluate(Criteria criteria) throws ExpressionEvaluationException, BlockedException, TeiidComponentException
public static Object evaluate(Expression expression) throws ExpressionEvaluationException, BlockedException, TeiidComponentException
public void initialize(CommandContext context, ProcessorDataManager dataMgr)
public boolean evaluate(Criteria criteria, List<?> tuple) throws ExpressionEvaluationException, BlockedException, TeiidComponentException
public Boolean evaluateTVL(Criteria criteria, List<?> tuple) throws ExpressionEvaluationException, BlockedException, TeiidComponentException
public static Boolean compare(int operator, Object leftValue, Object value) throws AssertionError
AssertionError
public Object evaluate(Expression expression, List<?> tuple) throws ExpressionEvaluationException, BlockedException, TeiidComponentException
protected Object internalEvaluate(Expression expression, List<?> tuple) throws ExpressionEvaluationException, BlockedException, TeiidComponentException
public static InputStreamFactory getInputStreamFactory(Streamable<?> s)
public static JsonType jsonArray(CommandContext context, Function f, Object[] vals, JSONFunctionMethods.JSONBuilder builder, Evaluator eval, List<?> tuple) throws TeiidProcessingException, BlockedException, TeiidComponentException
public void evaluateParameters(List<DerivedColumn> cols, List<?> tuple, Map<String,Object> parameters) throws ExpressionEvaluationException, BlockedException, TeiidComponentException
protected Object evaluatePushdown(Function function, List<?> tuple, Object[] values) throws FunctionExecutionException, TeiidComponentException, TeiidProcessingException
protected ValueIterator evaluateSubquery(SubqueryContainer<?> container, List<?> tuple) throws TeiidProcessingException, BlockedException, TeiidComponentException
container
- tuple
- TeiidProcessingException
BlockedException
TeiidComponentException
protected Object evaluateProcedure(Function function, List<?> tuple, Object[] values) throws TeiidComponentException, TeiidProcessingException
Copyright © 2019. All rights reserved.