Package mondrian.xmla

Class RowsetDefinition.MdschemaMeasuresRowset

java.lang.Object
mondrian.xmla.RowsetDefinition.MdschemaMeasuresRowset
All Implemented Interfaces:
XmlaConstants
Enclosing class:
RowsetDefinition

public static class RowsetDefinition.MdschemaMeasuresRowset extends Object
  • Field Details

  • Method Details

    • populateImpl

      public void populateImpl(XmlaResponse response, org.olap4j.OlapConnection connection, List<mondrian.xmla.Rowset.Row> rows) throws XmlaException, SQLException
      Gathers the set of rows which match a given set of the criteria.
      Throws:
      XmlaException
      SQLException
    • populateCatalog

      protected void populateCatalog(org.olap4j.OlapConnection connection, org.olap4j.metadata.Catalog catalog, List<mondrian.xmla.Rowset.Row> rows) throws XmlaException, SQLException
      Throws:
      XmlaException
      SQLException
    • setProperty

      protected void setProperty(PropertyDefinition propertyDef, String value)
      Sets a property for this rowset. Called by the constructor for each supplied property.

      A derived class should override this method and intercept each property it supports. Any property it does not support, it should forward to the base class method, which will probably throw an error.

    • pruneRestrictions

      protected ArrayList<mondrian.xmla.RowsetDefinition.Column> pruneRestrictions(ArrayList<mondrian.xmla.RowsetDefinition.Column> list)
    • unparse

      public final void unparse(XmlaResponse response) throws XmlaException
      Writes the contents of this rowset as a series of SAX events.
      Throws:
      XmlaException
    • populate

      public final void populate(XmlaResponse response, org.olap4j.OlapConnection connection, List<mondrian.xmla.Rowset.Row> rows) throws XmlaException
      Gathers the set of rows which match a given set of the criteria.
      Throws:
      XmlaException
    • needConnection

      protected boolean needConnection()
    • addRow

      protected final boolean addRow(mondrian.xmla.Rowset.Row row, List<mondrian.xmla.Rowset.Row> rows) throws XmlaException
      Adds a Rowset.Row to a result, provided that it meets the necessary criteria. Returns whether the row was added.
      Parameters:
      row - Row
      rows - List of result rows
      Throws:
      XmlaException
    • emit

      protected void emit(mondrian.xmla.Rowset.Row row, XmlaResponse response) throws XmlaException
      Emits a row for this rowset, reading fields from a Rowset.Row object.
      Parameters:
      row - Row
      response - XMLA response writer
      Throws:
      XmlaException
    • populate

      protected <E> void populate(Class<E> clazz, List<mondrian.xmla.Rowset.Row> rows, Comparator<E> comparator) throws XmlaException
      Populates all the values in an enumeration into a list of rows.
      Throws:
      XmlaException
    • isRestricted

      protected boolean isRestricted(mondrian.xmla.RowsetDefinition.Column column)
      Returns true if there is a restriction for the given column definition.
    • catNameCond

      protected Util.Functor1<Boolean,org.olap4j.metadata.Catalog> catNameCond()
    • getRestriction

      public List<String> getRestriction(mondrian.xmla.RowsetDefinition.Column column)