Skip to content

Commit

Permalink
implement Axis Swapping
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 224]
  • Loading branch information
hhaas committed Oct 31, 2002
1 parent 6381094 commit 589a6b4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/mondrian/olap/Query.java
Expand Up @@ -1124,6 +1124,19 @@ boolean isValidTopBottomNName(String fName)
return true;
return false;
}

/**
* swap the x- and y- axis
* do nothing, if the number of axes is != 2
*/
public void swapAxes() {
if ( axes.length == 2 ) {
Exp e0 = axes[0].set;
Exp e1 = axes[1].set;
axes[1].set = e0;
axes[0].set = e1;
}
}

/** Returns filtered sQuery based on user's grant privileges. {@link
* CubeAccess} contains a list of forbidden hiearchies, and limited
Expand Down

0 comments on commit 589a6b4

Please sign in to comment.