|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.agg.Aggregation.Axis
static class Aggregation.Axis
Constructor Summary | |
---|---|
Aggregation.Axis(StarColumnPredicate predicate)
Creates an empty Axis. |
|
Aggregation.Axis(StarColumnPredicate predicate,
Comparable<?>[] keys)
Creates an axis populated with a set of keys. |
Method Summary | |
---|---|
(package private) boolean |
contains(Object key)
Returns whether this axis contains a given key, or would contain it if it existed. |
(package private) Comparable<?>[] |
getKeys()
|
int |
getMatchCount(StarColumnPredicate predicate)
Returns how many of this Axis' keys match a given constraint. |
(package private) int |
getOffset(Comparable key)
|
(package private) int |
getOffset(Object o)
|
(package private) StarColumnPredicate |
getPredicate()
|
(package private) int |
loadKeys(SortedSet<Comparable<?>> valueSet,
boolean hasNull)
Loads keys into the axis. |
(package private) static Comparable |
wrap(Object o)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Aggregation.Axis(StarColumnPredicate predicate)
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.)Aggregation.Axis(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
- KeysMethod Detail |
---|
StarColumnPredicate getPredicate()
Comparable<?>[] getKeys()
int loadKeys(SortedSet<Comparable<?>> valueSet, boolean hasNull)
valueSet
- Set of distinct key values, sortedhasNull
- Whether the axis contains the null value, in addition
to the values in valueSet
static final Comparable wrap(Object o)
final int getOffset(Object o)
final int getOffset(Comparable key)
boolean contains(Object key)
For example, if this axis is unconstrained, then this method
returns true
for any value.
key
- Key
key
public int getMatchCount(StarColumnPredicate predicate)
predicate
- Predicate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |