Loggable
| Modifier and Type | Field and Description |
|---|---|
| private Checksum | |
| private byte | |
| private long | |
| public static final byte | |
| private int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | doMe(Transaction
the Transaction xact, LogInstant the log instant of this operation instant, LimitObjectInput optional data in)Implements org. Nothing to do for the checksum log record because it does need to be applied during redo. |
| protected int | |
| public ByteArray | getPreparedLog()
Implements org. the default for prepared log is always null for all the operations that don't have optionalData. |
| public int | |
| public int | getTypeFormatId()
Implements org. Return my format identifier. |
| public int | |
| public void | |
| private void | |
| protected boolean | |
| public boolean | needsRedo(Transaction
The transaction trying to redo this operation xact)Implements org. Checksum does not need to be redone, it is used to just verify that log records are written completely. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | releaseResource(Transaction xact)
Implements org. Checksum has no resources to release |
| protected void | |
| public String | |
| protected void | |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| checksum | back to summary |
|---|---|
| private Checksum checksum | |
| checksumAlgo | back to summary |
|---|---|
| private byte checksumAlgo | |
| checksumValue | back to summary |
|---|---|
| private long checksumValue | |
| CRC32_ALGORITHM | back to summary |
|---|---|
| public static final byte CRC32_ALGORITHM | |
| dataLength | back to summary |
|---|---|
| private int dataLength | |
| formatLength | back to summary |
|---|---|
| private static final int formatLength | |
| ChecksumOperation | back to summary |
|---|---|
| public ChecksumOperation() | |
| doMe | back to summary |
|---|---|
| public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException Implements org. Nothing to do for the checksum log record because it does need to be applied during redo.
| |
| getDataLength | back to summary |
|---|---|
| protected int getDataLength() Access attributes of the checksum log record | |
| getPreparedLog | back to summary |
|---|---|
| public ByteArray getPreparedLog() Implements org. 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 | back to summary |
|---|---|
| public int getStoredSize() | |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Return my format identifier.
| |
| group | back to summary |
|---|---|
| public int group() Implements org. Checksum is a raw store operation | |
| init | back to summary |
|---|---|
| public void init() | |
| initializeChecksumAlgo | back to summary |
|---|---|
| private void initializeChecksumAlgo() | |
| isChecksumValid | back to summary |
|---|---|
| protected boolean isChecksumValid(byte[] data, int off, int length) | |
| needsRedo | back to summary |
|---|---|
| public boolean needsRedo(Transaction xact) Implements org. Checksum does not need to be redone, it is used to just verify that log records are written completely.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| releaseResource | back to summary |
|---|---|
| public void releaseResource(Transaction xact) Implements org. Checksum has no resources to release | |
| reset | back to summary |
|---|---|
| protected void reset() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. DEBUG: Print self.
| |
| update | back to summary |
|---|---|
| protected void update(byte[] buf, int off, int len) | |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |