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, setRootJidBytes
public void setRootJid(org.agilewiki.jid.scalar.vlens.actor.RootJid rootJid)
setRootJid
in interface Block
setRootJid
in class LBlock
rootJid
- The RootJid to be assigned.public int headerLength()
headerLength
in interface Block
headerLength
in class LBlock
protected void saveHeader(org.agilewiki.jid.AppendableBytes ab, int l) throws Exception
saveHeader
in class LBlock
ab
- Append the data to this.l
- The length of the data.Exception
public int setHeaderBytes(byte[] bytes)
setHeaderBytes
in interface Block
setHeaderBytes
in class LBlock
bytes
- The header bytes read from disk.public long getTimestamp()
getTimestamp
in interface Block
getTimestamp
in class LBlock
public void setTimestamp(long timestamp)
setTimestamp
in interface Block
setTimestamp
in class LBlock
timestamp
- The timestamp.Copyright © 2013. All Rights Reserved.