org.pentaho.di.core.hash
Class ByteArrayHashIndex

java.lang.Object
  extended by org.pentaho.di.core.hash.ByteArrayHashIndex

public class ByteArrayHashIndex
extends Object


Constructor Summary
ByteArrayHashIndex(RowMetaInterface keyRowMeta)
           
ByteArrayHashIndex(RowMetaInterface keyRowMeta, int size)
          Create a Byte array hash index to store row
 
Method Summary
static int generateHashCode(byte[] key, RowMetaInterface rowMeta)
           
 byte[] get(byte[] key)
           
 int getSize()
           
 boolean isEmpty()
           
 void put(byte[] key, byte[] value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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