com.raritantechnologies.verity
Class LinearMaxDocCount

java.lang.Object
  extended bycom.raritantechnologies.verity.LinearMaxDocCount
All Implemented Interfaces:
ISetMaxDocCount

public class LinearMaxDocCount
extends java.lang.Object
implements ISetMaxDocCount

Calculates MaxDocCount by multiplying pageSize by a constant factor.

XML Configuration Template:
 <MaxDocCount class="com.raritantechnologies.verity.LinearMaxDocCount"
                 pageSizeFactor="100" />
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Constructor Summary
LinearMaxDocCount()
           
 
Method Summary
 int getMaxDocCount(int pageSize, int startRec)
           
 void initialize(org.w3c.dom.Element elem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearMaxDocCount

public LinearMaxDocCount()
Method Detail

initialize

public void initialize(org.w3c.dom.Element elem)
Specified by:
initialize in interface ISetMaxDocCount

getMaxDocCount

public int getMaxDocCount(int pageSize,
                          int startRec)
Specified by:
getMaxDocCount in interface ISetMaxDocCount