문제

I develop the web application with Mondrian OLAP engine with Olap4j and should present/display data to user. From Java code i create OlapConnection and try get all cubes from database.

OlapConnection c = (OlapConnection) DriverManager.getConnection(connStr);
OlapDatabaseMetaData  md = c.getMetaData();
ResultSet cubes = (Cube)md.getCubes("wdi", "", "wdi");

But i have only ResultSet type, how i can get all cubes by type org.olap4j.metadata.Cube? Thanks for any help.

도움이 되었습니까?

해결책

org.olap4j.metadata.Cube cube = c.getOlapSchema().getCubes().get("wdi");

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top