| java.lang.Object org.apache.derby.impl.store.raw.log.ChecksumOperation
ChecksumOperation | public class ChecksumOperation implements Loggable(Code) | | A Log Operation that represents a checksum for a group of log records
that are written to the tranaction log file.
author: Suresh Thalamati See Also: Loggable |
CRC32_ALGORITHM | final public static byte CRC32_ALGORITHM(Code) | | |
ChecksumOperation | public ChecksumOperation()(Code) | | |
getDataLength | protected int getDataLength()(Code) | | Access attributes of the checksum log record
|
getPreparedLog | public ByteArray getPreparedLog()(Code) | | the default for prepared log is always null for all the operations
that don't have optionalData. If an operation has optional data,
the operation need to prepare the optional data for this method.
Checksum has no optional data to write out
|
getStoredSize | public int getStoredSize()(Code) | | |
getTypeFormatId | public int getTypeFormatId()(Code) | | Return my format identifier.
|
group | public int group()(Code) | | Checksum is a raw store operation
|
isChecksumValid | protected boolean isChecksumValid(byte[] data, int off, int length)(Code) | | |
needsRedo | public boolean needsRedo(Transaction xact)(Code) | | Checksum does not need to be redone, it is used to just verify that
log records are written completely.
|
releaseResource | public void releaseResource(Transaction xact)(Code) | | Checksum has no resources to release
|
reset | protected void reset()(Code) | | |
update | protected void update(byte[] buf, int off, int len)(Code) | | |
|
|