public final class Bucket extends Object
| Constructor and Description |
|---|
Bucket(int bucketsize,
int datasize) |
Bucket(int bucketsize,
long fromoff,
DataInput from,
int datasize) |
| Modifier and Type | Method and Description |
|---|---|
long |
put(byte[] data,
int localoffset,
long id)
Put the new data element into the hash table.
|
public Bucket(int bucketsize,
int datasize)
bucketsize - total size of the bucketdatasize - size of one datablockpublic Bucket(int bucketsize,
long fromoff,
DataInput from,
int datasize)
throws IOException
IOExceptionpublic long put(byte[] data,
int localoffset,
long id)
data - the data block addedlocaloffset - the index position; the bytes of data before this index are skipped when compared with the items of this bucketid - the new id suggestedCopyright © 2016 Egothor. All Rights Reserved.