public class FileData extends Object implements IData
Modifier and Type | Field and Description |
---|---|
static int |
FILENODESIZE
The size of the filenode
|
Constructor and Description |
---|
FileData(long dataKey,
byte[] content,
boolean header,
boolean eof)
Creates a Filenode with given bytes
|
Modifier and Type | Method and Description |
---|---|
long |
getDataKey()
Gets unique
IData key. |
com.google.common.hash.Funnel<IData> |
getFunnel()
Getting a Funnel for computing guava-based hashes.
|
byte[] |
getVal() |
boolean |
isEof()
Check whether or not this filenode is the last in the sequence.
|
boolean |
isHeader()
Check whether or not this filenode is the first in the sequence.
|
void |
serialize(DataOutput output)
Serializing to given dataput
|
public static final int FILENODESIZE
public FileData(long dataKey, byte[] content, boolean header, boolean eof)
dataKey
- content
- , as byte arraypublic void serialize(DataOutput output) throws TTIOException
serialize
in interface IData
output
- to serialize toTTIOException
public long getDataKey()
IData
IData
key.
This key should be set over the IBucketWriteTrx.incrementDataKey
for getting the correct
offset
within retrievals.getDataKey
in interface IData
public boolean isHeader()
public boolean isEof()
public byte[] getVal()
Copyright © 2013. All Rights Reserved.