Package mondrian.rolap
Class RolapNativeTopCount
- java.lang.Object
-
- mondrian.rolap.RolapNative
-
- mondrian.rolap.RolapNativeSet
-
- mondrian.rolap.RolapNativeTopCount
-
public class RolapNativeTopCount extends RolapNativeSet
Computes a TopCount in SQL.- Since:
- Nov 21, 2005
- Author:
- av
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classRolapNativeTopCount.TopCountConstraint-
Nested classes/interfaces inherited from class mondrian.rolap.RolapNativeSet
RolapNativeSet.SchemaReaderWithMemberReaderAvailable, RolapNativeSet.SetConstraint, RolapNativeSet.SetEvaluator
-
Nested classes/interfaces inherited from class mondrian.rolap.RolapNative
RolapNative.Listener, RolapNative.NativeEvent, RolapNative.TupleEvent
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.RolapNativeSet
LOGGER
-
Fields inherited from class mondrian.rolap.RolapNative
listener
-
-
Constructor Summary
Constructors Constructor Description RolapNativeTopCount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) NativeEvaluatorcreateEvaluator(RolapEvaluator evaluator, FunDef fun, Exp[] args)If function can be implemented in SQL, returns a NativeEvaluator that computes the result; otherwise returns null.(package private) booleanisValidContext(RolapEvaluator evaluator)protected booleanrestrictMemberTypes()Returns whether certain member types (e.g.-
Methods inherited from class mondrian.rolap.RolapNativeSet
crossJoinArgFactory, flushCache, isPreferInterpreter, overrideContext, useHardCache
-
Methods inherited from class mondrian.rolap.RolapNative
getListener, isEnabled, setEnabled, setListener
-
-
-
-
Method Detail
-
restrictMemberTypes
protected boolean restrictMemberTypes()
Description copied from class:RolapNativeSetReturns whether certain member types (e.g. calculated members) should disable native SQL evaluation for expressions containing them.If true, expressions containing calculated members will be evaluated by the interpreter, instead of using SQL.
If false, calc members will be ignored and the computation will be done in SQL, returning more members than requested. This is ok, if the superflous members are filtered out in java code afterwards.
- Specified by:
restrictMemberTypesin classRolapNativeSet- Returns:
- whether certain member types should disable native SQL evaluation
-
createEvaluator
NativeEvaluator createEvaluator(RolapEvaluator evaluator, FunDef fun, Exp[] args)
Description copied from class:RolapNativeIf function can be implemented in SQL, returns a NativeEvaluator that computes the result; otherwise returns null.- Specified by:
createEvaluatorin classRolapNative
-
isValidContext
boolean isValidContext(RolapEvaluator evaluator)
-
-