public class AggregationKey extends Object
Column context has two components:
OR(AND(column predicates))
Any column is only used in either column context or compound context, not both.
Modifier and Type | Field and Description |
---|---|
(package private) List<StarPredicate> |
compoundPredicateList
List of StarPredicate (representing the predicate
defining the compound member).
|
Constructor and Description |
---|
AggregationKey(CellRequest request)
Creates an AggregationKey.
|
Modifier and Type | Method and Description |
---|---|
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() |
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.
public AggregationKey(CellRequest request)
request
- Cell requestpublic final int computeHashCode()
public static int computeHashCode(BitKey constrainedColumnsBitKey, RolapStar star, Collection<BitKey> compoundPredicateBitKeys)
static boolean equal(List<StarPredicate> list1, List<StarPredicate> list2)
list1
- First compound predicate maplist2
- Second compound predicate mappublic final BitKey getConstrainedColumnsBitKey()
public List<StarPredicate> getCompoundPredicateList()
public static List<String> getCompoundPredicateStringList(RolapStar star, List<StarPredicate> compoundPredicateList)
star
- StarcompoundPredicateList
- Predicate list