|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.AggregationKey
public class AggregationKey
Column context that an Aggregation is computed for.
Column context has two components:
OR(AND(column predicates))
Any column is only used in either column context or compound context, not both.
| Field Summary | |
|---|---|
(package private) List<StarPredicate> |
compoundPredicateList
List of StarPredicate (representing the predicate defining the compound member). |
| Constructor Summary | |
|---|---|
AggregationKey(CellRequest request)
Creates an AggregationKey. |
|
| Method Summary | |
|---|---|
int |
computeHashCode()
|
static int |
computeHashCode(BitKey constrainedColumnsBitKey,
RolapStar star,
Collection<BitKey> compoundPredicateBitKeys)
|
(package private) static boolean |
equal(List<StarPredicate> list1,
List<StarPredicate> list2)
Returns whether two lists of compound predicates are equal. |
boolean |
equals(Object other)
|
List<StarPredicate> |
getCompoundPredicateList()
Returns the list of compound predicates. |
static List<String> |
getCompoundPredicateStringList(RolapStar star,
List<StarPredicate> compoundPredicateList)
Returns a list of compound predicates, expressed as SQL strings. |
BitKey |
getConstrainedColumnsBitKey()
Returns the bitkey of columns that constrain this aggregation. |
RolapStar |
getStar()
Returns the star. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final List<StarPredicate> compoundPredicateList
In sorted order of BitKey. This ensures that the map is deternimistic (otherwise different runs generate SQL statements in different orders), and speeds up comparison.
| Constructor Detail |
|---|
public AggregationKey(CellRequest request)
request - Cell request| Method Detail |
|---|
public final int computeHashCode()
public static int computeHashCode(BitKey constrainedColumnsBitKey,
RolapStar star,
Collection<BitKey> compoundPredicateBitKeys)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
static boolean equal(List<StarPredicate> list1,
List<StarPredicate> list2)
list1 - First compound predicate maplist2 - Second compound predicate map
public String toString()
toString in class Objectpublic final BitKey getConstrainedColumnsBitKey()
public final RolapStar getStar()
public List<StarPredicate> getCompoundPredicateList()
public static List<String> getCompoundPredicateStringList(RolapStar star,
List<StarPredicate> compoundPredicateList)
star - StarcompoundPredicateList - Predicate list
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||