Modifier and Type | Class and Description |
---|---|
static class |
DataBucket.DeletedData
Static class to mark deleted entries within the bucket.
|
Constructor and Description |
---|
DataBucket(long pBucketKey,
long pLastBucketKey)
Create data bucket.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getBucketKey()
Getting the key of a bucket for dereferencing over any pointers as well, the access in the log and for
retrieving buckets from the persistent storage.
|
IData |
getData(int pOffset)
Get data at a given offset.
|
IData[] |
getDatas()
Getter for datas
|
long |
getLastBucketPointer()
Getting the pointer to the former representation of the same data-bucket.
|
int |
hashCode() |
com.google.common.hash.HashCode |
secureHash()
Getting a secure hash for a bucket.
|
void |
serialize(DataOutput pOutput)
Serializing to given dataput
|
void |
setData(int pOffset,
IData pData)
Overwrite a single data at a given offset.
|
String |
toString() |
public DataBucket(long pBucketKey, long pLastBucketKey)
pBucketKey
- Base key assigned to this data bucket.public long getBucketKey()
getBucketKey
in interface IBucket
public long getLastBucketPointer()
public IData getData(int pOffset)
pOffset
- Offset of data within local data bucket.public void setData(int pOffset, IData pData)
pOffset
- Offset of data to overwrite in this data bucket.pData
- Data to store at given dataofffset.public IData[] getDatas()
public void serialize(DataOutput pOutput) throws TTIOException
serialize
in interface IBucket
pOutput
- to serialize toTTIOException
public com.google.common.hash.HashCode secureHash()
secureHash
in interface IBucket
Copyright © 2013. All Rights Reserved.