Package org.pentaho.di.core.hash
Class ByteArrayHashIndex
- java.lang.Object
-
- org.pentaho.di.core.hash.ByteArrayHashIndex
-
public class ByteArrayHashIndex extends Object
-
-
Constructor Summary
Constructors Constructor Description ByteArrayHashIndex(RowMetaInterface keyRowMeta)
ByteArrayHashIndex(RowMetaInterface keyRowMeta, int size)
Create a Byte array hash index to store row
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
generateHashCode(byte[] key, RowMetaInterface rowMeta)
byte[]
get(byte[] key)
int
getSize()
boolean
isEmpty()
void
put(byte[] key, byte[] value)
-
-
-
Constructor Detail
-
ByteArrayHashIndex
public ByteArrayHashIndex(RowMetaInterface keyRowMeta, int size)
Create a Byte array hash index to store row- Parameters:
rowMeta
-
-
ByteArrayHashIndex
public ByteArrayHashIndex(RowMetaInterface keyRowMeta)
-
-
Method Detail
-
getSize
public int getSize()
-
isEmpty
public boolean isEmpty()
-
get
public byte[] get(byte[] key) throws KettleValueException
- Throws:
KettleValueException
-
put
public void put(byte[] key, byte[] value) throws KettleValueException
- Throws:
KettleValueException
-
generateHashCode
public static int generateHashCode(byte[] key, RowMetaInterface rowMeta) throws KettleValueException
- Throws:
KettleValueException
-
-