org.cdlib.xtf.textEngine.facet
Class GroupSelector

Object
  extended by GroupSelector
Direct Known Subclasses:
ChildSelector, DescendantSelector, DocsSelector, EmptySelector, MarkSelector, NameSelector, PageSelector, RangeSelector, SelectedSelector, SiblingSelector, SingletonSelector, TopChoiceSelector, UnionSelector

public abstract class GroupSelector
extends Object

Base class for the various selector classes that are chained together to execute a selection expression in a faceted query.

Author:
Martin Haye

Field Summary
protected  boolean conservative
           
protected  GroupCounts counts
           
protected  GroupSelector next
           
 
Constructor Summary
GroupSelector()
           
 
Method Summary
 void flush()
          Flush any queued groups
abstract  void process(int group)
          Process the next group
 void reset(boolean conservative)
          Reset the selector
 void setCounts(GroupCounts counts)
          Set the counts to be used
 void setNext(GroupSelector next)
          Set the next selector in the chain
abstract  String toString()
          Get a string representation
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

conservative

protected boolean conservative

next

protected GroupSelector next

counts

protected GroupCounts counts
Constructor Detail

GroupSelector

public GroupSelector()
Method Detail

setNext

public void setNext(GroupSelector next)
Set the next selector in the chain


setCounts

public void setCounts(GroupCounts counts)
Set the counts to be used


reset

public void reset(boolean conservative)
Reset the selector


process

public abstract void process(int group)
Process the next group


flush

public void flush()
Flush any queued groups


toString

public abstract String toString()
Get a string representation

Overrides:
toString in class Object