Package mondrian.olap

Class QueryAxis

java.lang.Object
mondrian.olap.QueryPart
mondrian.olap.QueryAxis

public class QueryAxis extends QueryPart
An axis in an MDX query. For example, the typical MDX query has two axes, which appear as the "ON COLUMNS" and "ON ROWS" clauses.
Author:
jhyde, 20 January, 1999
  • Constructor Details

  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • accept

      public Object accept(MdxVisitor visitor)
    • compile

      public Calc compile(ExpCompiler compiler, ResultStyle resultStyle)
    • getAxisName

      public String getAxisName()
    • getAxisOrdinal

      public AxisOrdinal getAxisOrdinal()
      Returns the ordinal of this axis, for example AxisOrdinal.StandardAxisOrdinal.ROWS.
    • isNonEmpty

      public boolean isNonEmpty()
      Returns whether the axis has the NON EMPTY property set.
    • setNonEmpty

      public void setNonEmpty(boolean nonEmpty)
      Sets whether the axis has the NON EMPTY property set. See isNonEmpty().
    • isOrdered

      public boolean isOrdered()
      Returns whether the axis has the ORDER property set.
    • setOrdered

      public void setOrdered(boolean ordered)
      Sets whether the axis has the ORDER property set.
    • getSet

      public Exp getSet()
      Returns the expression which is used to compute the value of this axis.
    • setSet

      public void setSet(Exp set)
      Sets the expression which is used to compute the value of this axis. See getSet().
    • resolve

      public void resolve(Validator validator)
    • getChildren

      public Object[] getChildren()
      Overrides:
      getChildren in class QueryPart
    • unparse

      public void unparse(PrintWriter pw)
      Description copied from class: QueryPart
      Writes a string representation of this parse tree node to the given writer.
      Overrides:
      unparse in class QueryPart
      Parameters:
      pw - writer
    • addLevel

      public void addLevel(Level level)
    • getSubtotalVisibility

      public QueryAxis.SubtotalVisibility getSubtotalVisibility()
    • resetSubtotalVisibility

      public void resetSubtotalVisibility()
    • validate

      public void validate(Validator validator)
    • getDimensionProperties

      public Id[] getDimensionProperties()