001 /*
002 // $Id: Quax.java 482 2012-01-05 23:27:27Z jhyde $
003 //
004 // Licensed to Julian Hyde under one or more contributor license
005 // agreements. See the NOTICE file distributed with this work for
006 // additional information regarding copyright ownership.
007 //
008 // Julian Hyde licenses this file to you under the Apache License,
009 // Version 2.0 (the "License"); you may not use this file except in
010 // compliance with the License. You may obtain a copy of the License at:
011 //
012 // http://www.apache.org/licenses/LICENSE-2.0
013 //
014 // Unless required by applicable law or agreed to in writing, software
015 // distributed under the License is distributed on an "AS IS" BASIS,
016 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017 // See the License for the specific language governing permissions and
018 // limitations under the License.
019 */
020 package org.olap4j.transform;
021
022 import org.olap4j.CellSetAxis;
023 import org.olap4j.Position;
024 import org.olap4j.metadata.Member;
025
026 /**
027 * Representation of member expressions on a query axis, derived from
028 * CellSetAxis objects.
029 *
030 * <p>Quaxes are used by MDX axis query transforms, to construct and use
031 * an internal tree-like representation of positions and members from the
032 * result CellSetAxis objects of a previous MDX query. This is needed
033 * for OLAP navigation operators like drill-down on a position.
034 *
035 * <p>Inspired from the JPivot Quax class.
036 *
037 * <p>NOTE: not exactly sure how to implement this, to be completed...
038 *
039 * @author etdub
040 * @version $Id: Quax.java 482 2012-01-05 23:27:27Z jhyde $
041 * @since Aug 7, 2008
042 */
043 public class Quax {
044 private final CellSetAxis cellSetAxis;
045
046 private TreeNode<Member> memberTree;
047
048 public Quax(CellSetAxis cellSetAxis) {
049 this.cellSetAxis = cellSetAxis;
050
051 for (Position p : cellSetAxis.getPositions()) {
052 p.getMembers();
053 }
054 }
055 }
056
057 // End Quax.java