public abstract class Evaluator extends Object
Pluggable functions for resolving variables
Implementations of this abstract class must provide a public no-arg constructor.
Refer to http://wiki.apache.org/solr/DataImportHandler for more details.
This API is experimental and may change in the future.| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT_EVALUATOR |
static String |
ESCAPE_SOLR_QUERY_CHARS |
static String |
SQL_ESCAPE_EVALUATOR |
static String |
URL_ENCODE_EVALUATOR |
| Constructor and Description |
|---|
Evaluator() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
evaluate(String expression,
Context context)
Return a String after processing an expression and a
VariableResolver |
public static final String DATE_FORMAT_EVALUATOR
public static final String URL_ENCODE_EVALUATOR
public static final String ESCAPE_SOLR_QUERY_CHARS
public static final String SQL_ESCAPE_EVALUATOR
public abstract String evaluate(String expression, Context context)
VariableResolverexpression - string to be evaluatedcontext - instanceVariableResolverCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.