[Javamatch-cvs] javamatch/src/net/sourceforge/javamatch/engine MatchEngine.java,1.4,1.5
Status: Pre-Alpha
Brought to you by:
iterson
From: Walter v. I. <it...@us...> - 2004-09-14 13:29:37
|
Update of /cvsroot/javamatch/javamatch/src/net/sourceforge/javamatch/engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25182/net/sourceforge/javamatch/engine Modified Files: MatchEngine.java Log Message: Added setMaxNumResultItems Index: MatchEngine.java =================================================================== RCS file: /cvsroot/javamatch/javamatch/src/net/sourceforge/javamatch/engine/MatchEngine.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MatchEngine.java 13 Sep 2004 09:14:11 -0000 1.4 --- MatchEngine.java 14 Sep 2004 13:29:25 -0000 1.5 *************** *** 112,115 **** --- 112,126 ---- } + /** + * The maximum number of result items to be returned in a query + */ + public void setMaxNumResultItems(int maxNumResultItems) { + if (maxNumResultItems < 0) { + throw new IllegalArgumentException("Can't set a negative number " + + "of result items"); + } + this.maxNumResultItems = maxNumResultItems; + } + /** * Sets the threshold value, the minimum value that each sub-query shoud have, |