Skip to content

Commit

Permalink
Added support for sorting on a dimension inclusions with the "break h…
Browse files Browse the repository at this point in the history
…ierarchy" functionnality.

git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@274 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
lucboudreau committed Jul 30, 2009
1 parent 8974576 commit 38cc365
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions src/org/olap4j/query/QueryDimension.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,17 +357,40 @@ public Selection remove(int index) {
}
}

/**
* Defines in what order to perform the sort.
*/
public static enum SortOrder {
/**
* Ascending sort order.
* Ascending sort order. Members of
* the same hierarchy are still kept together.
*/
ASC,
/**
* Descending sort order.
* Descending sort order. Members of
* the same hierarchy are still kept together.
*/
DESC,
/**
* Sorts in ascending order, but does not
* maintain members of a same hierarchy
* together. This is known as a "break
* hierarchy ascending sort".
*/
DESC
BASC,
/**
* Sorts in descending order, but does not
* maintain members of a same hierarchy
* together. This is known as a "break
* hierarchy descending sort".
*/
BDESC
}

/**
* Defines in which way the hierarchize operation
* should be performed.
*/
public static enum HierarchizeMode {
/**
* Parents are placed before children.
Expand Down

0 comments on commit 38cc365

Please sign in to comment.