Package mondrian.olap

Class Category

All Implemented Interfaces:
Cloneable

public class Category extends EnumeratedValues
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
  • Field Details

    • instance

      public static final Category instance
      The singleton instance of Category.
    • Unknown

      public static final int Unknown
      Unknown is an expression whose type is as yet unknown.
      See Also:
    • Array

      public static final int Array
      Array is an expression of array type.
      See Also:
    • Dimension

      public static final int Dimension
      Dimension is a dimension expression.
      See Also:
    • Hierarchy

      public static final int Hierarchy
      Hierarchy is a hierarchy expression.
      See Also:
    • Level

      public static final int Level
      Level is a level expression.
      See Also:
    • Logical

      public static final int Logical
      Logical is a boolean expression.
      See Also:
    • Member

      public static final int Member
      Member is a member expression.
      See Also:
    • Numeric

      public static final int Numeric
      Numeric is a numeric expression.
      See Also:
    • Set

      public static final int Set
      Set is a set of members or tuples.
      See Also:
    • String

      public static final int String
      String is a string expression.
      See Also:
    • Tuple

      public static final int Tuple
      Tuple is a tuple expression.
      See Also:
    • Symbol

      public static final int Symbol
      Symbol is a symbol, for example the BASC keyword to the Order() function.
      See Also:
    • Cube

      public static final int Cube
      Cube is a cube expression.
      See Also:
    • Value

      public static final int Value
      Value is any expression yielding a string or numeric value.
      See Also:
    • Integer

      public static final int Integer
      Integer is an integer expression. This is a subtype of Numeric.
      See Also:
    • Null

      public static final int Null
      Represents a Null value
      See Also:
    • Empty

      public static final int Empty
      Represents an empty expression.
      See Also:
    • DateTime

      public static final int DateTime
      Represents a DataTime expression.
      See Also:
    • Expression

      public static final int Expression
      Expression 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 Constant
      Constant 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 Mask
      Mask is a mask to remove flags.
      See Also:
  • Method Details

    • instance

      public static Category instance()
      Returns the singleton instance of Category.
      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