public class LTBlock extends LBlock
blockBytes, rb, rootJidBytes| Constructor and Description |
|---|
LTBlock() |
| Modifier and Type | Method and Description |
|---|---|
long |
getTimestamp()
Returns the timestamp.
|
int |
headerLength()
The length of the header which prefaces the actual data on disk.
|
protected void |
saveHeader(org.agilewiki.jid.AppendableBytes ab,
int l)
Provides the raw header information to be written to disk.
|
int |
setHeaderBytes(byte[] bytes)
Provides the raw header information read from disk.
|
void |
setRootJid(org.agilewiki.jid.scalar.vlens.actor.RootJid rootJid)
Reset the block and assign the RootJid.
|
void |
setTimestamp(long timestamp)
Assigns the timestamp.
|
getCurrentPosition, getFileName, getRootJid, getRootJid, isEmpty, serialize, setCurrentPosition, setFileName, setRootJidBytespublic void setRootJid(org.agilewiki.jid.scalar.vlens.actor.RootJid rootJid)
setRootJid in interface BlocksetRootJid in class LBlockrootJid - The RootJid to be assigned.public int headerLength()
headerLength in interface BlockheaderLength in class LBlockprotected void saveHeader(org.agilewiki.jid.AppendableBytes ab,
int l)
throws Exception
saveHeader in class LBlockab - Append the data to this.l - The length of the data.Exceptionpublic int setHeaderBytes(byte[] bytes)
setHeaderBytes in interface BlocksetHeaderBytes in class LBlockbytes - The header bytes read from disk.public long getTimestamp()
getTimestamp in interface BlockgetTimestamp in class LBlockpublic void setTimestamp(long timestamp)
setTimestamp in interface BlocksetTimestamp in class LBlocktimestamp - The timestamp.Copyright © 2013. All Rights Reserved.