|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmondrian.calc.impl.AbstractCalc
mondrian.calc.impl.AbstractListCalc
mondrian.olap.fun.DistinctFunDef.CalcImpl
static class DistinctFunDef.CalcImpl
Field Summary |
---|
Fields inherited from class mondrian.calc.impl.AbstractListCalc |
---|
tuple |
Fields inherited from class mondrian.calc.impl.AbstractCalc |
---|
exp, type |
Constructor Summary | |
---|---|
DistinctFunDef.CalcImpl(ResolvedFunCall call,
ListCalc listCalc)
|
Method Summary | |
---|---|
(package private) static java.util.List<java.lang.Object> |
distinct(java.util.List list)
|
java.util.List |
evaluateList(Evaluator evaluator)
Evaluates an expression to yield a list of members or tuples. |
java.util.List<Member> |
evaluateMemberList(Evaluator evaluator)
Evaluates an expression to yield a list of members. |
java.util.List<Member[]> |
evaluateTupleList(Evaluator evaluator)
Evaluates an expression to yield a list of tuples. |
Methods inherited from class mondrian.calc.impl.AbstractListCalc |
---|
evaluate, evaluateEitherList, getResultStyle, getType |
Methods inherited from class mondrian.calc.impl.AbstractCalc |
---|
accept, anyDepends, anyDependsButFirst, butDepends, dependsOn, getArguments, getCalcs, getName, simplifyEvaluator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface mondrian.calc.Calc |
---|
accept, dependsOn |
Constructor Detail |
---|
public DistinctFunDef.CalcImpl(ResolvedFunCall call, ListCalc listCalc)
Method Detail |
---|
public java.util.List evaluateList(Evaluator evaluator)
ListCalc
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
evaluator
- Evaluation context
static java.util.List<java.lang.Object> distinct(java.util.List list)
public java.util.List<Member> evaluateMemberList(Evaluator evaluator)
MemberListCalc
The list is immutable if Calc.getResultStyle()
yields
ResultStyle.MUTABLE_LIST
. Otherwise,
the caller must not modify the list.
evaluateMemberList
in interface MemberListCalc
evaluateMemberList
in class AbstractListCalc
evaluator
- Evaluation context
public java.util.List<Member[]> evaluateTupleList(Evaluator evaluator)
TupleListCalc
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.
evaluateTupleList
in interface TupleListCalc
evaluateTupleList
in class AbstractListCalc
evaluator
- Evaluation context
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |