001/*
002// $Id: SortOrder.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*/
020package org.olap4j.query;
021/**
022 * Defines in what order to perform sort operations.
023 * @author Luc Boudreau
024 * @version $Id: SortOrder.java 482 2012-01-05 23:27:27Z jhyde $
025 * @since 0.9.8
026 */
027public enum SortOrder {
028    /**
029     * Ascending sort order. Members of
030     * the same hierarchy are still kept together.
031     */
032    ASC,
033    /**
034     * Descending sort order. Members of
035     * the same hierarchy are still kept together.
036     */
037    DESC,
038    /**
039     * Sorts in ascending order, but does not
040     * maintain members of a same hierarchy
041     * together. This is known as a "break
042     * hierarchy ascending sort".
043     */
044    BASC,
045    /**
046     * Sorts in descending order, but does not
047     * maintain members of a same hierarchy
048     * together. This is known as a "break
049     * hierarchy descending sort".
050     */
051    BDESC
052}
053// End SortOrder.java