/* // $Id: //guest/julian_hyde/mondrian/src/main/mondrian/rolap/MemberKey.java#1 $ // (C) Copyright 2002 Kana Software, Inc. // 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 2002 Kana Software, Inc. and others. // All Rights Reserved. // You must accept the terms of that agreement to use this software. // // jhyde, 21 March, 2002 */ package mondrian.rolap; /** * <code>MemberKey</code> todo: * * @author jhyde * @since 21 March, 2002 * @version $Id: //guest/julian_hyde/mondrian/src/main/mondrian/rolap/MemberKey.java#1 $ **/ class MemberKey { RolapMember parent; Object value; MemberKey(RolapMember parent, Object value) { this.parent = parent; this.value = value; } // override Object public boolean equals(Object o) { if (!(o instanceof MemberKey)) { return false; } MemberKey other = (MemberKey) o; return other.parent == this.parent && other.value.equals(this.value); } // override Object public int hashCode() { return (parent == null ? 0 : parent.hashCode() << 16) ^ value.hashCode(); } } // End MemberKey.java
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 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. |