public Bucket(int bucketsize,
long fromoff,
DataInput from,
int datasize)
throws java.io.IOException
Throws:
java.io.IOException
Method Detail
put
public long put(byte[] data,
int localoffset,
long id)
Put the new data element into the hash table. If the item is already inhere, then its negative id value
is returned (the id value when the item has come). The id is returned when the data is new in this bucket,
and 0 is returned if and only if the bucket is full. The id value must not be passed with 0 value.
Parameters:
data - the data block added
localoffset - the index position; the bytes of data before this index are skipped when compared with the items of this bucket