org.apache.solr.handler.dataimport
Class Evaluator

java.lang.Object
  extended by org.apache.solr.handler.dataimport.Evaluator

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.

Since:
solr 1.3

Constructor Summary
Evaluator()
           
 
Method Summary
abstract  String evaluate(String expression, Context context)
          Return a String after processing an expression and a VariableResolver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluator

public Evaluator()
Method Detail

evaluate

public abstract String evaluate(String expression,
                                Context context)
Return a String after processing an expression and a VariableResolver

Parameters:
expression - string to be evaluated
context - instance
Returns:
the value of the given expression evaluated using the resolver
See Also:
VariableResolver


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.