org.cdlib.xtf.textEngine.facet
Class RangeSelector

Object
  extended by GroupSelector
      extended by RangeSelector

public class RangeSelector
extends GroupSelector

Select a range of the incoming groups


Field Summary
(package private)  int max
           
(package private)  int returned
           
(package private)  int skipped
           
(package private)  int start
           
 
Fields inherited from class GroupSelector
conservative, counts, next
 
Constructor Summary
RangeSelector(int start, int max)
           
 
Method Summary
 void process(int group)
          Process the next group
 void reset(boolean conservative)
          Reset the selector
 String toString()
          Get a string representation
 
Methods inherited from class GroupSelector
flush, setCounts, setNext
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

start

int start

max

int max

skipped

int skipped

returned

int returned
Constructor Detail

RangeSelector

public RangeSelector(int start,
                     int max)
Method Detail

reset

public void reset(boolean conservative)
Description copied from class: GroupSelector
Reset the selector

Overrides:
reset in class GroupSelector

process

public void process(int group)
Description copied from class: GroupSelector
Process the next group

Specified by:
process in class GroupSelector

toString

public String toString()
Description copied from class: GroupSelector
Get a string representation

Specified by:
toString in class GroupSelector