|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.flatfile.DataBlockCacheEntry
public class DataBlockCacheEntry
An individual entry in the DataBlockUtil cache, which can be turned on and off.
| Field Summary | |
|---|---|
protected BigHash |
chunkHash
The hash representing the data chunk. |
protected DataBlock |
dataBlock
Which DataBlock contains the chunk. |
protected int |
offset
The offset, in bytes, of where the chunk exists in the DataBlock. |
protected int |
size
The size, in bytes, of the chunk. |
| Method Summary | |
|---|---|
static DataBlockCacheEntry |
create(BigHash chunkHash,
DataBlock dataBlock,
int offset,
int size)
Create an entry for the cache. |
boolean |
equals(java.lang.Object h)
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final BigHash chunkHash
The hash representing the data chunk.
protected final DataBlock dataBlock
Which DataBlock contains the chunk.
protected final int offset
The offset, in bytes, of where the chunk exists in the DataBlock.
protected final int size
The size, in bytes, of the chunk.
| Method Detail |
|---|
public static DataBlockCacheEntry create(BigHash chunkHash,
DataBlock dataBlock,
int offset,
int size)
Create an entry for the cache.
chunkHash - dataBlock - offset - Offset of chunk in payload of DataBlock
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object h)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||