isql.groupby
Class GroupKey

java.lang.Object
  extended by isql.groupby.GroupKey
All Implemented Interfaces:
java.lang.Comparable<GroupKey>

public class GroupKey
extends java.lang.Object
implements java.lang.Comparable<GroupKey>

Used as key for the groups in the GROUP BY clause. The GROUP BY clause divides the rows in sets; in each set the GROUP BY columns have the same values for all rows, the other columns have different values. The keys contain the invariant GROUP BY columns values. Assumes that the columns are always in the same positions in the array

Author:
SHZ Oct 29, 2007

Constructor Summary
GroupKey(java.lang.Object[] arrColumnValue)
           
 
Method Summary
 int compareTo(GroupKey o)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Object[] getArrColumnValue()
          The invariant columns values for the set identified by this key
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupKey

public GroupKey(java.lang.Object[] arrColumnValue)
Method Detail

compareTo

public int compareTo(GroupKey o)
Specified by:
compareTo in interface java.lang.Comparable<GroupKey>

getArrColumnValue

public java.lang.Object[] getArrColumnValue()
The invariant columns values for the set identified by this key

Returns:
the arrColumnValue

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object