Class RecursiveEvaluator
- java.lang.Object
-
- org.apache.solr.client.solrj.io.eval.RecursiveEvaluator
-
- All Implemented Interfaces:
Serializable,StreamEvaluator,ValueWorker,Expressible
- Direct Known Subclasses:
CanberraEvaluator,ChebyshevEvaluator,ColumnEvaluator,CosineDistanceEvaluator,EarthMoversEvaluator,EuclideanEvaluator,ManhattanEvaluator,MemsetEvaluator,MonteCarloEvaluator,RecursiveBooleanEvaluator,RecursiveNumericEvaluator,RecursiveNumericListEvaluator,RecursiveObjectEvaluator,RecursiveTemporalEvaluator
public abstract class RecursiveEvaluator extends Object implements StreamEvaluator, ValueWorker
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StreamFactoryconstructingFactoryprotected List<StreamEvaluator>containedEvaluatorsprotected UUIDnodeIdprotected static longserialVersionUIDprotected StreamContextstreamContext
-
Constructor Summary
Constructors Constructor Description RecursiveEvaluator(StreamExpression expression, StreamFactory factory)RecursiveEvaluator(StreamExpression expression, StreamFactory factory, List<String> ignoredNamedParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(Tuple tuple)StreamContextgetStreamContext()protected ObjectnormalizeInputType(Object value)protected ObjectnormalizeOutputType(Object value)List<Object>recursivelyEvaluate(Tuple tuple)voidsetStreamContext(StreamContext context)ExplanationtoExplanation(StreamFactory factory)Returns an explanation about the stream objectStreamExpressionParametertoExpression(StreamFactory factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.client.solrj.io.eval.StreamEvaluator
evaluateOverContext
-
Methods inherited from interface org.apache.solr.client.solrj.io.eval.ValueWorker
doWork
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
streamContext
protected StreamContext streamContext
-
nodeId
protected UUID nodeId
-
constructingFactory
protected StreamFactory constructingFactory
-
containedEvaluators
protected List<StreamEvaluator> containedEvaluators
-
-
Constructor Detail
-
RecursiveEvaluator
public RecursiveEvaluator(StreamExpression expression, StreamFactory factory) throws IOException
- Throws:
IOException
-
RecursiveEvaluator
public RecursiveEvaluator(StreamExpression expression, StreamFactory factory, List<String> ignoredNamedParameters) throws IOException
- Throws:
IOException
-
-
Method Detail
-
evaluate
public Object evaluate(Tuple tuple) throws IOException
- Specified by:
evaluatein interfaceStreamEvaluator- Throws:
IOException
-
recursivelyEvaluate
public List<Object> recursivelyEvaluate(Tuple tuple) throws IOException
- Throws:
IOException
-
toExpression
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
- Specified by:
toExpressionin interfaceExpressible- Throws:
IOException
-
toExplanation
public Explanation toExplanation(StreamFactory factory) throws IOException
Description copied from interface:ExpressibleReturns an explanation about the stream object- Specified by:
toExplanationin interfaceExpressible- Parameters:
factory- Stream factory for this, contains information about the function name- Returns:
- Explanation about this stream object containing explanations of any child stream objects
- Throws:
IOException- throw on any error
-
setStreamContext
public void setStreamContext(StreamContext context)
- Specified by:
setStreamContextin interfaceStreamEvaluator
-
getStreamContext
public StreamContext getStreamContext()
- Specified by:
getStreamContextin interfaceStreamEvaluator
-
-