Search in sources :

Example 26 with Query

use of mondrian.olap.Query in project pentaho-platform by pentaho.

the class MDXConnection method executeQuery.

/*
   * (non-Javadoc)
   * 
   * @see org.pentaho.connection.IPentahoConnection#executeQuery(java.lang.String)
   */
public IPentahoResultSet executeQuery(final String query) {
    Query mdxQuery = nativeConnection.parseQuery(query);
    Result result = nativeConnection.execute(mdxQuery);
    resultSet = new MDXResultSet(result, nativeConnection, useExtendedColumnNames);
    return resultSet;
}
Also used : Query(mondrian.olap.Query) Result(mondrian.olap.Result)

Aggregations

Query (mondrian.olap.Query)26 Connection (mondrian.olap.Connection)17 OlapConnection (org.olap4j.OlapConnection)14 Result (mondrian.olap.Result)9 RolapConnection (mondrian.rolap.RolapConnection)7 Member (mondrian.olap.Member)6 Exp (mondrian.olap.Exp)5 ArrayList (java.util.ArrayList)3 MemberExpr (mondrian.mdx.MemberExpr)3 MondrianException (mondrian.olap.MondrianException)3 SqlQuery (mondrian.rolap.sql.SqlQuery)3 Execution (mondrian.server.Execution)3 HashSet (java.util.HashSet)2 TupleList (mondrian.calc.TupleList)2 ListTupleList (mondrian.calc.impl.ListTupleList)2 Formula (mondrian.olap.Formula)2 Hierarchy (mondrian.olap.Hierarchy)2 QueryAxis (mondrian.olap.QueryAxis)2 TestMember (mondrian.olap.fun.TestMember)2 Dialect (mondrian.spi.Dialect)2