org.pentaho.di.core.hash
Class ByteArrayHashIndex
java.lang.Object
org.pentaho.di.core.hash.ByteArrayHashIndex
public class ByteArrayHashIndex
- extends Object
ByteArrayHashIndex
public ByteArrayHashIndex(RowMetaInterface keyRowMeta,
int size)
- Create a Byte array hash index to store row
- Parameters:
rowMeta
-
ByteArrayHashIndex
public ByteArrayHashIndex(RowMetaInterface keyRowMeta)
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