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
KettleValueException
public void put(long key, Long value) throws KettleValueException
KettleValueException
public static int generateHashCode(Long key) throws KettleValueException
KettleValueException
public static int indexFor(int hash, int length)
Copyright © 2018 Hitachi Vantara. All rights reserved.