[Mondrian] RE: AxisOrdinal

Julian Hyde jhyde at pentaho.com
Mon Mar 2 13:59:51 EST 2009

> On Monday, March 02, 2009 10:32 AM Will Gorman wrote:
> In MondrianChangeSlicer.java within JPivot, here is the line of code I
> had to change:
> monQuery.setSlicerAxis(new QueryAxis(false, f,
> StandardAxisOrdinal.SLICER, QueryAxis.SubtotalVisibility.Undefined));
> The query axis requires an Axis Ordinal.  Is this change okay?
> The only other change was in the MondrianAxis and MondrianQueryAdapter
> classes within JPivot:
>       mondrian.olap.Hierarchy[] monHiers =
> adapter.getMonQuery().getMdxHierarchiesOnAxis(
>    		  StandardAxisOrdinal.forLogicalOrdinal(iOrdinal));

Yes, that's fine. I added abbreviating constants to olap4j's Axis class -
see e.g. http://olap4j.org/head/api/src-html/org/olap4j/Axis.html#line.42 -
but I didn't bother to add them to mondrian's AxisOrdinal class. Mondrian's
API (the mondrian.olap package) is, after all, deprecated.


More information about the Mondrian mailing list