public class CosineDistanceEvaluator extends RecursiveEvaluator
Modifier and Type | Class and Description |
---|---|
static class |
CosineDistanceEvaluator.CosineDistance |
Modifier and Type | Field and Description |
---|---|
protected static long |
serialVersionUID |
constructingFactory, containedEvaluators, nodeId, streamContext
Constructor and Description |
---|
CosineDistanceEvaluator(StreamExpression expression,
StreamFactory factory) |
CosineDistanceEvaluator(StreamExpression expression,
StreamFactory factory,
List<String> ignoredNamedParameters) |
Modifier and Type | Method and Description |
---|---|
Object |
doWork(Object... values) |
Object |
evaluate(Tuple tuple) |
getStreamContext, normalizeInputType, normalizeOutputType, recursivelyEvaluate, setStreamContext, toExplanation, toExpression
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluateOverContext
protected static final long serialVersionUID
public CosineDistanceEvaluator(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public CosineDistanceEvaluator(StreamExpression expression, StreamFactory factory, List<String> ignoredNamedParameters) throws IOException
IOException
public Object evaluate(Tuple tuple) throws IOException
evaluate
in interface StreamEvaluator
evaluate
in class RecursiveEvaluator
IOException
public Object doWork(Object... values) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.