mirror of https://github.com/apache/lucene.git
SOLR-10882: ArrayEvaluator now supports values of any type
This commit is contained in:
parent
8988862698
commit
606824acaf
|
@ -36,11 +36,11 @@ public class ArrayEvaluator extends ComplexEvaluator implements Expressible {
|
||||||
super(expression, factory);
|
super(expression, factory);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Number> evaluate(Tuple tuple) throws IOException {
|
public List<Object> evaluate(Tuple tuple) throws IOException {
|
||||||
List<Number> list = new ArrayList();
|
List<Object> list = new ArrayList<>();
|
||||||
for(StreamEvaluator subEvaluator : subEvaluators) {
|
for(StreamEvaluator subEvaluator : subEvaluators) {
|
||||||
Number num = (Number)subEvaluator.evaluate(tuple);
|
Object value = (Number)subEvaluator.evaluate(tuple);
|
||||||
list.add(num);
|
list.add(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
|
Loading…
Reference in New Issue