| java.lang.Object org.apache.derby.iapi.store.access.KeyHasher
KeyHasher | public class KeyHasher (Code) | | Provides the ability to hash on multiple objects.
|
Constructor Summary | |
public | KeyHasher(int size) |
Method Summary | |
public static Object | buildHashKey(Object[] objects, int[] indexes) Static method to return the object to hash on. | public boolean | equals(Object obj) | public Object | getObject(int index) Get the object stored at the specified index.
Parameters: index - The specified index. | public int | hashCode() | public void | setObject(int index, Object object) Set array element at the specified index to the specified object. |
KeyHasher | public KeyHasher(int size)(Code) | | |
buildHashKey | public static Object buildHashKey(Object[] objects, int[] indexes)(Code) | | Static method to return the object to hash on.
(Object stored in specifed array, if only a single
object, otherwise a KeyHasher wrapping the
objects to hash on.
(NOTE: We optimize for in-memory hash tables, hence
we only create a wrapper when needed.)
Parameters: objects - The array of objects to consider Parameters: indexes - The indexes of the objects in the hash key. The object to hash on. |
getObject | public Object getObject(int index)(Code) | | Get the object stored at the specified index.
Parameters: index - The specified index. The object stored in the array element. |
hashCode | public int hashCode()(Code) | | |
setObject | public void setObject(int index, Object object)(Code) | | Set array element at the specified index to the specified object.
Parameters: index - The specified index Parameters: object - The specified object. |
|
|