private ValueSourceQuery[] getValueSourceQueries() { ValueSourceQuery[] vsq = new ValueSourceQuery[functionValueSources .size()]; int i = 0; for (FunctionValueSource fvs : functionValueSources) vsq[i++] = new ValueSourceQuery(fvs.valueSource); return vsq; }
protected ScoreFunctionQuery(Query subQuery, ValueSourceQuery valueSourceQuery, Expression expression) throws SyntaxError { super(subQuery, valueSourceQuery); this.subQuery = subQuery; this.expression = expression; }
protected ScoreFunctionQuery(Query subQuery, ValueSourceQuery[] valueSourceQueries, Expression expression) throws SyntaxError { super(subQuery, valueSourceQueries); this.subQuery = subQuery; this.expression = expression; }
private ValueSourceQuery getValueSourceQuery() { return new ValueSourceQuery(functionValueSources.get(0).valueSource); }