Package mondrian.olap
Class Category
java.lang.Object
mondrian.olap.EnumeratedValues
mondrian.olap.Category
- All Implemented Interfaces:
Cloneable
Category enumerates the possible expression types.
Values of this enumeration are returned by Exp.getCategory(),
FunDef.getParameterCategories(), and
FunDef.getReturnCategory().
For modern code, the more descriptive type system
(Type) is preferred.
- Since:
- Feb 21, 2003
- Author:
- jhyde
-
Nested Class Summary
Nested classes/interfaces inherited from class mondrian.olap.EnumeratedValues
EnumeratedValues.BasicValue, EnumeratedValues.Value -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intArrayis an expression of array type.static final intConstantis a flag which, when bitwise-OR-ed with a category value, indicates a constant (as opposed to an expression).static final intCubeis a cube expression.static final intRepresents a DataTime expression.static final intDimensionis a dimension expression.static final intRepresents an empty expression.static final intExpressionis a flag which, when bitwise-OR-ed with a category value, indicates an expression (as opposed to a constant).static final intHierarchyis a hierarchy expression.static final CategoryThe singleton instance ofCategory.static final intIntegeris an integer expression.static final intLevelis a level expression.static final intLogicalis a boolean expression.static final intMaskis a mask to remove flags.static final intMemberis a member expression.static final intRepresents aNullvaluestatic final intNumericis a numeric expression.static final intSetis a set of members or tuples.static final intStringis a string expression.static final intSymbolis a symbol, for example theBASCkeyword to theOrder()function.static final intTupleis a tuple expression.static final intUnknownis an expression whose type is as yet unknown.static final intValueis any expression yielding a string or numeric value. -
Method Summary
Methods inherited from class mondrian.olap.EnumeratedValues
badValue, clone, getDescription, getMax, getMin, getMutableClone, getName, getNames, getOrdinal, getValue, getValue, getValuesSortedByName, isImmutable, isValid, makeImmutable, register, unexpected
-
Field Details
-
instance
The singleton instance ofCategory. -
Unknown
public static final int UnknownUnknownis an expression whose type is as yet unknown.- See Also:
-
Array
public static final int ArrayArrayis an expression of array type.- See Also:
-
Dimension
public static final int DimensionDimensionis a dimension expression.- See Also:
-
Hierarchy
public static final int HierarchyHierarchyis a hierarchy expression.- See Also:
-
Level
public static final int LevelLevelis a level expression.- See Also:
-
Logical
public static final int LogicalLogicalis a boolean expression.- See Also:
-
Member
public static final int MemberMemberis a member expression.- See Also:
-
Numeric
public static final int NumericNumericis a numeric expression.- See Also:
-
Set
public static final int SetSetis a set of members or tuples.- See Also:
-
String
public static final int StringStringis a string expression.- See Also:
-
Tuple
public static final int TupleTupleis a tuple expression.- See Also:
-
Symbol
public static final int SymbolSymbolis a symbol, for example theBASCkeyword to theOrder()function.- See Also:
-
Cube
public static final int CubeCubeis a cube expression.- See Also:
-
Value
public static final int ValueValueis any expression yielding a string or numeric value.- See Also:
-
Integer
public static final int IntegerIntegeris an integer expression. This is a subtype ofNumeric.- See Also:
-
Null
public static final int NullRepresents aNullvalue- See Also:
-
Empty
public static final int EmptyRepresents an empty expression.- See Also:
-
DateTime
public static final int DateTimeRepresents a DataTime expression.- See Also:
-
Expression
public static final int ExpressionExpressionis a flag which, when bitwise-OR-ed with a category value, indicates an expression (as opposed to a constant).- See Also:
-
Constant
public static final int ConstantConstantis a flag which, when bitwise-OR-ed with a category value, indicates a constant (as opposed to an expression).- See Also:
-
Mask
public static final int MaskMaskis a mask to remove flags.- See Also:
-
-
Method Details
-
instance
Returns the singleton instance ofCategory.- Returns:
- the singleton instance
-
isScalar
public static boolean isScalar(int category) Returns whether a category represents a scalar type.- Parameters:
category- Category- Returns:
- Whether is scalar
-