Enum Class EssAiFeature

java.lang.Object
java.lang.Enum<EssAiFeature>
com.appliedolap.essbase.EssAiFeature
All Implemented Interfaces:
Serializable, Comparable<EssAiFeature>, Constable

public enum EssAiFeature extends Enum<EssAiFeature>
The generative-AI capabilities a server can offer, each independently switchable.

GET /about/instance reports one flag per capability rather than one for AI as a whole, so a server can perfectly well have semantic search on and the MDX generator off. Asking EssCubeAi.getReadiness(EssAiFeature) about the one you are about to use beats asking whether "AI" is available, which is not a question the server answers.

  • Enum Constant Details

    • MDX_GENERATOR

      public static final EssAiFeature MDX_GENERATOR
      Writing an MDX query from a question asked in English.
    • ASK_ESSBASE

      public static final EssAiFeature ASK_ESSBASE
      Free-form chat about a cube.
    • CALCULATION

      public static final EssAiFeature CALCULATION
      Writing a calculation script from a description.
  • Field Details

    • ENABLED_FLAG

      public static final String ENABLED_FLAG
      The flag for AI as a whole; every capability is off when this is.
      See Also:
  • Method Details

    • values

      public static EssAiFeature[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EssAiFeature valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFlag

      public String getFlag()
      The key this capability is reported under in /about/instance.
      Returns:
      the flag name
    • getLabel

      public String getLabel()
      The capability's name as a person would write it, for a caller putting it on screen. Worth carrying here rather than deriving from the constant name, which would give "Mdx generator".
      Returns:
      the display name