<commit_before>/*
// $Id$
// This software is subject to the terms of the Common Public License
// Agreement, available at the following URL:
// http://www.opensource.org/licenses/cpl.html.
// (C) Copyright 1998-2002 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 20 January, 1999
*/

package mondrian.olap;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.*;

/**
 * MDX query.
 **/
public class Query extends QueryPart implements NameResolver {
	// enum axisType
	public static final int noAxis = -2;
	public static final int slicerAxis = -1;
	public static final int xAxis = 0;
	public static final int yAxis = 1;
	public static final EnumeratedValues axisEnum = new EnumeratedValues(
		new String[] {"none", "slicer", "x", "y"},
		new int[] {-2, -1, 0, 1});

	// enum sortDirection
	public static final int ascDirection = 0; // ascending inside hierarchy
	public static final int descDirection = 1; // descending inside hierarchy
  public static final int bascDirection = 2; // ascending disregarding hierarchy
  public static final int bdescDirection = 3; // descending disregarding hierarchy
	public static final int noneDirection = -1;
	public static final EnumeratedValues directionEnum = new EnumeratedValues(
		new String[] {"ascending", "descending", "none"});

	//hidden string
	public static final String hidden = "hidden_";

	public Formula formulas[];
	public QueryAxis axes[];
	public Cube mdxCube;
	public Exp slicer;<commit_msg>Query.java: adapted directionEnum to "BASC" "BDESC" change.<commit_after>/*
// $Id$
// This software is subject to the terms of the Common Public License
// Agreement, available at the following URL:
// http://www.opensource.org/licenses/cpl.html.
// (C) Copyright 1998-2002 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 20 January, 1999
*/

package mondrian.olap;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.*;

/**
 * MDX query.
 **/
public class Query extends QueryPart implements NameResolver {
	// enum axisType
	public static final int noAxis = -2;
	public static final int slicerAxis = -1;
	public static final int xAxis = 0;
	public static final int yAxis = 1;
	public static final EnumeratedValues axisEnum = new EnumeratedValues(
		new String[] {"none", "slicer", "x", "y"},
		new int[] {-2, -1, 0, 1});

	// enum sortDirection
  public static final int ascDirection = 0; // ascending inside hierarchy
  public static final int descDirection = 1; // descending inside hierarchy
  public static final int bascDirection = 2; // ascending disregarding hierarchy
  public static final int bdescDirection = 3; // descending disregarding hierarchy
  public static final int noneDirection = -1;
  public static final EnumeratedValues directionEnum = new EnumeratedValues(
		new String[] {"none", "ascending", "descending", 
                           "nonhierarchized ascending", "nonhierarchized descending"},
    new int[] {-1, 0, 1, 2, 3} );

	//hidden string
	public static final String hidden = "hidden_";

	public Formula formulas[];
	public QueryAxis axes[];
	public Cube mdxCube;
	public Exp slicer;
{'fraction_non_alphanumeric': 0.10473588342440801, 'fraction_numerical': 0.01791135397692775, 'mean_word_length': 3.8172514619883042, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4718957', 'n_tokens_mistral': 998, 'n_tokens_neox': 924, 'n_words': 388}