Package mondrian.xmla

Class RowsetDefinition.MdschemaMeasuresRowset

    • Method Detail

      • 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)
      • 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
      • populate

        protected <E> void populate​(Class<E> clazz,
                                    List<mondrian.xmla.Rowset.Row> rows,
                                    Comparator<E> comparator)
                             throws XmlaException
        Populates all of 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.