Package mondrian.xmla

Class XmlaHandler.TabularRowSet

    • Constructor Detail

      • TabularRowSet

        public TabularRowSet​(ResultSet rs,
                             int totalCount)
                      throws SQLException
        Creates a TabularRowSet based upon a SQL statement result.

        Does not close the ResultSet, on success or failure. Client must do it.

        Parameters:
        rs - Result set
        totalCount - Total number of rows. If >= 0, writes the "totalCount" attribute into the XMLA response.
        Throws:
        SQLException - on error
      • TabularRowSet

        public TabularRowSet​(Map<String,​List<String>> tableFieldMap,
                             List<String> tableList)
        Alternate constructor for advanced drill-through.
        Parameters:
        tableFieldMap - Map from table name to a list of the names of the fields in the table
        tableList - List of table names
    • Method Detail

      • close

        public void close()
      • metadata

        public void metadata​(SaxWriter writer)
        Writes the tabular drillthrough schema
        Parameters:
        writer - Writer