|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.dev.hash.MinimalPerfectHash.LongHash
public static class MinimalPerfectHash.LongHash
A sample hash implementation for long keys.
| Constructor Summary | |
|---|---|
MinimalPerfectHash.LongHash()
|
|
| Method Summary | |
|---|---|
int |
hashCode(java.lang.Long o,
int index,
int seed)
Calculate the hash of the given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinimalPerfectHash.LongHash()
| Method Detail |
|---|
public int hashCode(java.lang.Long o,
int index,
int seed)
MinimalPerfectHash.UniversalHash
hashCode in interface MinimalPerfectHash.UniversalHash<java.lang.Long>o - the objectindex - the hash function index (index 0 is used first, so the
method should be very fast with index 0; index 1 and so on
are only called when really needed)seed - the random seed (always the same for a hash table)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||