public final class DataBlockWriteOperation extends AbstractJournalWriteOperation
offsetTYPE_COMMIT, TYPE_DATA_BLOCK_WRITE, TYPE_META_DATA_BLOCK_WRITE, TYPE_META_DATA_WRITE, TYPE_STORE_EXTEND| Constructor and Description |
|---|
DataBlockWriteOperation(long transactionId,
int blockIndex,
long blockOffset,
byte[] blockData)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBlockData() |
int |
getBlockIndex() |
int |
size()
The storage size for this operation
|
String |
toString() |
protected void |
writeTo(JournalFile journalFile)
Write the operation to the given journal file
|
protected int |
writeTo(RandomAccessFile dataRandomAccessFile) |
getOffsetgetTransactionId, getType, next, setNextpublic DataBlockWriteOperation(long transactionId,
int blockIndex,
long blockOffset,
byte[] blockData)
public int getBlockIndex()
public byte[] getBlockData()
public int size()
AbstractJournalOperationsize in class AbstractJournalWriteOperationprotected void writeTo(JournalFile journalFile) throws JournalException
AbstractJournalOperationwriteTo in class AbstractJournalWriteOperationjournalFile - teh journal fileJournalExceptionprotected int writeTo(RandomAccessFile dataRandomAccessFile) throws JournalException
JournalExceptionpublic String toString()
toString in class AbstractJournalWriteOperationCopyright © 2021. All rights reserved.