List of usage examples for org.apache.solr.search FunctionQParser parseInt
public int parseInt() throws SyntaxError
From source file:org.vootoo.search.function.RandomValueSourceParser.java
License:Apache License
@Override public ValueSource parse(FunctionQParser fp) throws SyntaxError { int max = Integer.MAX_VALUE; Long seed = null;/*from w w w .j ava 2s .c o m*/ if (fp.hasMoreArguments()) { max = fp.parseInt(); } if (fp.hasMoreArguments()) { seed = parseLong(fp); } return new RandomValueSource(max, seed); }