Package mondrian.olap

Class ResultBase

java.lang.Object
mondrian.olap.ResultBase
All Implemented Interfaces:
Result
Direct Known Subclasses:
RolapResult

public abstract class ResultBase extends Object implements Result
Skeleton implementation of Result.
Since:
10 August, 2001
Author:
jhyde
  • Field Details

    • execution

      protected final Execution execution
    • statement

      protected final Statement statement
    • query

      protected final Query query
    • axes

      protected final Axis[] axes
    • slicerAxis

      protected Axis slicerAxis
  • Constructor Details

    • ResultBase

      protected ResultBase(Execution execution, Axis[] axes)
  • Method Details

    • getLogger

      protected abstract org.apache.logging.log4j.Logger getLogger()
    • getQuery

      public Query getQuery()
      Description copied from interface: Result
      Returns the query which generated this result.
      Specified by:
      getQuery in interface Result
    • getAxes

      public Axis[] getAxes()
      Description copied from interface: Result
      Returns the non-slicer axes.
      Specified by:
      getAxes in interface Result
    • getSlicerAxis

      public Axis getSlicerAxis()
      Description copied from interface: Result
      Returns the slicer axis.
      Specified by:
      getSlicerAxis in interface Result
    • print

      public void print(PrintWriter pw)
      Specified by:
      print in interface Result
    • getMember

      public Member getMember(int[] pos, Hierarchy hierarchy)
      Returns the current member of a given hierarchy at a given location.
      Parameters:
      pos - Coordinates in cell set
      hierarchy - Hierarchy
      Returns:
      current member of given hierarchy
    • getExecution

      public Execution getExecution()
    • close

      public void close()
      Specified by:
      close in interface Result