|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.catalog.FarragoColumnHistogram.HistogramRange
private class FarragoColumnHistogram.HistogramRange
Histogram range represents a set of bars in a histogram
Field Summary | |
---|---|
private List<FemColumnHistogramBar> |
bars
|
private boolean |
empty
|
private int |
firstBar
|
private SargInterval |
interval
|
private int |
lastBar
|
private int |
minBar
|
Constructor Summary | |
---|---|
protected |
FarragoColumnHistogram.HistogramRange(List<FemColumnHistogramBar> bars,
SargInterval interval,
int minBar)
Initializes a range of histogram bars spanning a search interval |
Method Summary | |
---|---|
protected void |
evaluate()
Searches through the histogram to find the first and last bars the interval may cover in the histogram. |
private int |
findEndBar(int min,
SargEndpoint point)
Finds the first histogram bar which does not contain the specified point. |
private int |
findStartBar(int min,
SargEndpoint point)
Finds the first histogram bar which may contain the specified starting search point, or points greater than the search point. |
protected int |
getFirstBar()
Returns the zero based index of the first bar in the range, or -1 if the range is empty. |
protected int |
getLastBar()
Returns the zero based index of the last bar in the range, or -1 if the range is empty. |
protected boolean |
isEmpty()
Returns whether the range is empty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private List<FemColumnHistogramBar> bars
private SargInterval interval
private int minBar
private boolean empty
private int firstBar
private int lastBar
Constructor Detail |
---|
protected FarragoColumnHistogram.HistogramRange(List<FemColumnHistogramBar> bars, SargInterval interval, int minBar)
bars
- histogram bars to searchinterval
- the search intervalminBar
- the first bar to searchMethod Detail |
---|
protected void evaluate()
protected boolean isEmpty()
protected int getFirstBar()
protected int getLastBar()
private int findStartBar(int min, SargEndpoint point)
min
- index of first histogram bar to searchpoint
- start point to search for
private int findEndBar(int min, SargEndpoint point)
If all bars may contain the search point, returns the index of the last bar + 1.
min
- index of first histogram bar to searchpoint
- point to search for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |