org.eigenbase.sarg
Class SargIntervalSequence
java.lang.Object
org.eigenbase.sarg.SargIntervalSequence
public class SargIntervalSequence
- extends Object
SargIntervalSequence represents the union of a set of disjoint SargInterval
instances. (If any adjacent intervals weren't disjoint, they
would have been combined into one bigger one before creation of the
sequence.) Intervals are maintained in coordinate order.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sarg/SargIntervalSequence.java#8 $
- Author:
- John V. Sichi
list
final List<SargInterval> list
SargIntervalSequence
SargIntervalSequence()
isPoint
public boolean isPoint()
- Returns:
- true if this sequence represents a point range.
isEmpty
public boolean isEmpty()
- Returns:
- true if this sequence represents an empty range.
isRange
public boolean isRange()
- Returns:
- true if this sequence represents a non-point, non-empty range.
getList
public List<SargInterval> getList()
- Returns:
- unmodifiable list representing this sequence
addInterval
void addInterval(SargInterval interval)
toString
public String toString()
- Overrides:
toString
in class Object