public class LongHashIndex extends Object
| Constructor and Description |
|---|
LongHashIndex()
Create a new long/long hash index
|
LongHashIndex(int size)
Create a new long/long hash index
|
| Modifier and Type | Method and Description |
|---|---|
static int |
generateHashCode(Long key) |
Long |
get(long key) |
int |
getSize() |
static int |
indexFor(int hash,
int length) |
boolean |
isEmpty() |
void |
put(long key,
Long value) |
public LongHashIndex(int size)
size - the initial size of the hash indexpublic LongHashIndex()
public int getSize()
public boolean isEmpty()
public Long get(long key) throws KettleValueException
KettleValueExceptionpublic void put(long key,
Long value)
throws KettleValueException
KettleValueExceptionpublic static int generateHashCode(Long key) throws KettleValueException
KettleValueExceptionpublic static int indexFor(int hash,
int length)
Copyright © 2020 Hitachi Vantara. All rights reserved.