/* // $Id: //guest/julian_hyde/mondrian/src/main/mondrian/rolap/CellKey.java#2 $ // 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 2001-2002 Kana Software, Inc. and others. // All Rights Reserved. // You must accept the terms of that agreement to use this software. // // jhyde, 10 August, 2001 */ package mondrian.rolap; /** * todo: * * @author jhyde * @since 10 August, 2001 * @version $Id: //guest/julian_hyde/mondrian/src/main/mondrian/rolap/CellKey.java#2 $ **/ public class CellKey { public int[] ordinals; public CellKey(int[] ordinals) { this.ordinals = ordinals; } public boolean equals(Object o) { if (o instanceof CellKey) { CellKey other = (CellKey) o; if (other.ordinals.length != this.ordinals.length) { return false; } for (int i = 0; i < ordinals.length; i++) { if (other.ordinals[i] != this.ordinals[i]) { return false; } } return true; } else { return false; } } public int hashCode() { int h = 0; for (int i = 0; i < ordinals.length; i++) { h = (h * 37) ^ ordinals[i]; } return h; } CellKey copy() { return new CellKey((int[])ordinals.clone()); } }; // End CellKey.java
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 1576 | Julian Hyde |
mondrian: fix dataset (add column customer.ordinal); create dataset for oracle; get queries working on oracle; get format strings working; refactor out new packages mondrian.rolap.agg and mondrian.rolap.sql. |
||
#1 | 1453 | Julian Hyde | mondrian: first source check-in |