Package org.pentaho.di.core.hash
Class ByteArrayHashIndex
java.lang.Object
org.pentaho.di.core.hash.ByteArrayHashIndex
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayHashIndex(RowMetaInterface keyRowMeta) ByteArrayHashIndex(RowMetaInterface keyRowMeta, int size) Create a Byte array hash index to store row -
Method Summary
Modifier and TypeMethodDescriptionstatic intgenerateHashCode(byte[] key, RowMetaInterface rowMeta) byte[]get(byte[] key) intgetSize()booleanisEmpty()voidput(byte[] key, byte[] value)
-
Constructor Details
-
ByteArrayHashIndex
Create a Byte array hash index to store row- Parameters:
rowMeta-
-
ByteArrayHashIndex
-
-
Method Details
-
getSize
public int getSize() -
isEmpty
public boolean isEmpty() -
get
- Throws:
KettleValueException
-
put
- Throws:
KettleValueException
-
generateHashCode
public static int generateHashCode(byte[] key, RowMetaInterface rowMeta) throws KettleValueException - Throws:
KettleValueException
-