|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.SegmentAxis
public class SegmentAxis
Collection of values of one of the columns that parameterizes a
Segment.
| Field Summary | |
|---|---|
(package private) StarColumnPredicate |
predicate
Constraint on the keys in this Axis. |
| Constructor Summary | |
|---|---|
SegmentAxis(StarColumnPredicate predicate,
Comparable[] keys)
Creates a SegmentAxis populated with an array of key values. |
|
SegmentAxis(StarColumnPredicate predicate,
SortedSet<Comparable> keySet,
boolean hasNull)
Creates a SegmentAxis populated with a set of key values. |
|
| Method Summary | |
|---|---|
(package private) Comparable[] |
getKeys()
|
int |
getMatchCount(StarColumnPredicate predicate)
Returns how many of this SegmentAxis's keys match a given constraint. |
(package private) int |
getOffset(Comparable key)
|
(package private) StarColumnPredicate |
getPredicate()
|
Pair<SortedSet<Comparable>,Boolean> |
getValuesAndIndicator()
|
boolean |
wouldContain(Object key)
Returns whether this axis contains a given key, or would contain it if it existed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final StarColumnPredicate predicate
| Constructor Detail |
|---|
SegmentAxis(StarColumnPredicate predicate,
Comparable[] keys)
predicate - Predicate defining which keys should appear on
axis. (If a key passes the predicate but
is not in the list, every cell with that
key is assumed to have a null value.)keys - Keys
public SegmentAxis(StarColumnPredicate predicate,
SortedSet<Comparable> keySet,
boolean hasNull)
predicate - Predicate defining which keys should appear on
axis. (If a key passes the predicate but
is not in the list, every cell with that
key is assumed to have a null value.)keySet - Set of distinct key values, sortedhasNull - Whether the axis contains the null value, in addition
to the values in valueSet| Method Detail |
|---|
final StarColumnPredicate getPredicate()
final Comparable[] getKeys()
final int getOffset(Comparable key)
public final boolean wouldContain(Object key)
For example, if this axis is unconstrained, then this method
returns true for any value.
key - Key
keypublic int getMatchCount(StarColumnPredicate predicate)
predicate - Predicate
public Pair<SortedSet<Comparable>,Boolean> getValuesAndIndicator()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||