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
Modifier and TypeFieldDescriptionstatic final int
Array
is an expression of array type.static final int
Constant
is a flag which, when bitwise-OR-ed with a category value, indicates a constant (as opposed to an expression).static final int
Cube
is a cube expression.static final int
Represents a DataTime expression.static final int
Dimension
is a dimension expression.static final int
Represents an empty expression.static final int
Expression
is a flag which, when bitwise-OR-ed with a category value, indicates an expression (as opposed to a constant).static final int
Hierarchy
is a hierarchy expression.static final Category
The singleton instance ofCategory
.static final int
Integer
is an integer expression.static final int
Level
is a level expression.static final int
Logical
is a boolean expression.static final int
Mask
is a mask to remove flags.static final int
Member
is a member expression.static final int
Represents aNull
valuestatic final int
Numeric
is a numeric expression.static final int
Set
is a set of members or tuples.static final int
String
is a string expression.static final int
Symbol
is a symbol, for example theBASC
keyword to theOrder()
function.static final int
Tuple
is a tuple expression.static final int
Unknown
is an expression whose type is as yet unknown.static final int
Value
is 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 UnknownUnknown
is an expression whose type is as yet unknown.- See Also:
-
Array
public static final int ArrayArray
is an expression of array type.- See Also:
-
Dimension
public static final int DimensionDimension
is a dimension expression.- See Also:
-
Hierarchy
public static final int HierarchyHierarchy
is a hierarchy expression.- See Also:
-
Level
public static final int LevelLevel
is a level expression.- See Also:
-
Logical
public static final int LogicalLogical
is a boolean expression.- See Also:
-
Member
public static final int MemberMember
is a member expression.- See Also:
-
Numeric
public static final int NumericNumeric
is a numeric expression.- See Also:
-
Set
public static final int SetSet
is a set of members or tuples.- See Also:
-
String
public static final int StringString
is a string expression.- See Also:
-
Tuple
public static final int TupleTuple
is a tuple expression.- See Also:
-
Symbol
public static final int SymbolSymbol
is a symbol, for example theBASC
keyword to theOrder()
function.- See Also:
-
Cube
public static final int CubeCube
is a cube expression.- See Also:
-
Value
public static final int ValueValue
is any expression yielding a string or numeric value.- See Also:
-
Integer
public static final int IntegerInteger
is an integer expression. This is a subtype ofNumeric
.- See Also:
-
Null
public static final int NullRepresents aNull
value- 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 ExpressionExpression
is 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 ConstantConstant
is 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 MaskMask
is 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
-