Examples of OlapQuery


Examples of org.saiku.olap.query.OlapQuery

    try {
      Cube cub = olapDiscoverService.getNativeCube(cube);
      OlapConnection con = olapDiscoverService.getNativeConnection(cube.getConnection());

      if (cub != null) {
        IQuery query = new OlapQuery(new Query(queryName, cub), con, cube);
        putIQuery(queryName, query);
        return ObjectUtil.convert(query);
      }
    } catch (Exception e) {
      LOG.error("Cannot create new query for cube :" + cube, e);
View Full Code Here

Examples of org.saiku.olap.query.OlapQuery

      SaikuCube scube = qd.getFakeCube(xml);
      OlapConnection con = olapDiscoverService.getNativeConnection(scube.getConnection());
      IQuery query = qd.unparse(xml, con);

      if (QueryType.QM.equals(query.getType())) {
        OlapQuery qr = (OlapQuery) query;
        Query sQ = QueryConverter.convertQuery(qr.getQuery());
        SaikuCube converted = ObjectUtil.convert(scube.getConnection(), sQ.getCube());
        return Thin.convert(sQ, converted);
      } else {
        SaikuCube converted = ObjectUtil.convert(scube.getConnection(), olapDiscoverService.getNativeCube(scube));
        return new ThinQuery(query.getName(), converted, query.getMdx());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.