mondrian.olap.fun
Class DistinctFunDef.CalcImpl
java.lang.Object
mondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractListCalc
mondrian.olap.fun.DistinctFunDef.CalcImpl
- All Implemented Interfaces:
- Calc, ListCalc, MemberListCalc, TupleListCalc
- Enclosing class:
- DistinctFunDef
static class DistinctFunDef.CalcImpl
- extends AbstractListCalc
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistinctFunDef.CalcImpl
public DistinctFunDef.CalcImpl(ResolvedFunCall call,
ListCalc listCalc)
evaluateList
public List evaluateList(Evaluator evaluator)
- Description copied from interface:
ListCalc
- Evaluates an expression to yield a list of members or tuples.
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
- Parameters:
evaluator
- Evaluation context
- Returns:
- A list of members or tuples, never null.
distinct
static List<Object> distinct(List list)
evaluateMemberList
public List<Member> evaluateMemberList(Evaluator evaluator)
- Description copied from interface:
MemberListCalc
- Evaluates an expression to yield a list of members.
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
- Specified by:
evaluateMemberList
in interface MemberListCalc
- Overrides:
evaluateMemberList
in class AbstractListCalc
- Parameters:
evaluator
- Evaluation context
- Returns:
- A list of members, never null.
evaluateTupleList
public List<Member[]> evaluateTupleList(Evaluator evaluator)
- Description copied from interface:
TupleListCalc
- Evaluates an expression to yield a list of tuples.
Each tuple is represented by an array of members.
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
- Specified by:
evaluateTupleList
in interface TupleListCalc
- Overrides:
evaluateTupleList
in class AbstractListCalc
- Parameters:
evaluator
- Evaluation context
- Returns:
- A list of tuples, never null.