SOLR-10882: ArrayEvaluator now supports values of any type

This commit is contained in:
Dennis Gove 2017-06-13 09:19:45 -04:00
parent 8988862698
commit 606824acaf
1 changed files with 4 additions and 4 deletions

View File

@ -36,11 +36,11 @@ public class ArrayEvaluator extends ComplexEvaluator implements Expressible {
super(expression, factory);
}
public List<Number> evaluate(Tuple tuple) throws IOException {
List<Number> list = new ArrayList();
public List<Object> evaluate(Tuple tuple) throws IOException {
List<Object> list = new ArrayList<>();
for(StreamEvaluator subEvaluator : subEvaluators) {
Number num = (Number)subEvaluator.evaluate(tuple);
list.add(num);
Object value = (Number)subEvaluator.evaluate(tuple);
list.add(value);
}
return list;