Package org.pentaho.di.core.hash
Class LongHashIndex
- java.lang.Object
-
- org.pentaho.di.core.hash.LongHashIndex
-
public class LongHashIndex extends Object
-
-
Constructor Summary
Constructors Constructor Description LongHashIndex()
Create a new long/long hash indexLongHashIndex(int size)
Create a new long/long hash index
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getSize
public int getSize()
-
isEmpty
public boolean isEmpty()
-
get
public Long get(long key) throws KettleValueException
- Throws:
KettleValueException
-
put
public void put(long key, Long value) throws KettleValueException
- Throws:
KettleValueException
-
generateHashCode
public static int generateHashCode(Long key) throws KettleValueException
- Throws:
KettleValueException
-
indexFor
public static int indexFor(int hash, int length)
-
-