Class RolapNativeTopCount.TopCountConstraint

    • Field Detail

      • orderByExpr

        Exp orderByExpr
      • ascending

        boolean ascending
    • Constructor Detail

      • TopCountConstraint

        public TopCountConstraint​(int count,
                                  CrossJoinArg[] args,
                                  RolapEvaluator evaluator,
                                  Exp orderByExpr,
                                  boolean ascending)
    • Method Detail

      • isJoinRequired

        protected boolean isJoinRequired()
        Returns whether a join with the fact table is required. A join is required if the context contains members from dimensions other than level. If we are interested in the members of a level or a members children then it does not make sense to join only one dimension (the one that contains the requested members) with the fact table for NON EMPTY optimization.

        If there is a crossjoin, we need to join the fact table - even if the evaluator context is empty.

        TopCount always needs to join the fact table because we want to evaluate the top count expression which involves a fact.

        Overrides:
        isJoinRequired in class RolapNativeSet.SetConstraint