SOLR-10882: Moves parameter checking of anova evaluator

This commit is contained in:
Dennis Gove 2017-06-13 09:14:02 -04:00
parent f1695104fa
commit 8988862698
1 changed files with 4 additions and 4 deletions

View File

@ -37,13 +37,13 @@ public class AnovaEvaluator extends ComplexEvaluator implements Expressible {
public AnovaEvaluator(StreamExpression expression, StreamFactory factory) throws IOException {
super(expression, factory);
}
public Tuple evaluate(Tuple tuple) throws IOException {
if(subEvaluators.size() < 2) {
throw new IOException("ANOVA evaluator expects atleast 2 parameters found: "+subEvaluators.size());
}
}
public Tuple evaluate(Tuple tuple) throws IOException {
List<double[]> list = new ArrayList();
for(StreamEvaluator subEvaluator : subEvaluators) {