org.exist.storage.btree
Class InsertValueLoggable

java.lang.Object
  extended by org.exist.storage.journal.AbstractLoggable
      extended by org.exist.storage.btree.BTAbstractLoggable
          extended by org.exist.storage.btree.InsertValueLoggable
All Implemented Interfaces:
Loggable

public class InsertValueLoggable
extends BTAbstractLoggable

Log object representing the insertion of a new btree key.

Author:
wolf

Constructor Summary
InsertValueLoggable(DBBroker broker, long transactionId)
           
InsertValueLoggable(Txn transaction, byte fileId, long pageNum, int idx, Value key, int pointerIdx, long pointer)
           
 
Method Summary
 String dump()
          Default implementation returns the current LSN plus the class name of the Loggable instance.
 int getLogSize()
          Returns the size of the work load of this entry.
 void read(ByteBuffer in)
          Read the entry.
 void redo()
          Redo the underlying operation.
 void undo()
          Undo, i.e.
 void write(ByteBuffer out)
          Write this entry to the specified ByteBuffer.
 
Methods inherited from class org.exist.storage.journal.AbstractLoggable
clear, getLogType, getLsn, getTransactionId, setLsn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertValueLoggable

public InsertValueLoggable(Txn transaction,
                           byte fileId,
                           long pageNum,
                           int idx,
                           Value key,
                           int pointerIdx,
                           long pointer)

InsertValueLoggable

public InsertValueLoggable(DBBroker broker,
                           long transactionId)
Method Detail

write

public void write(ByteBuffer out)
Description copied from interface: Loggable
Write this entry to the specified ByteBuffer.

Specified by:
write in interface Loggable
Overrides:
write in class BTAbstractLoggable

read

public void read(ByteBuffer in)
Description copied from interface: Loggable
Read the entry.

Specified by:
read in interface Loggable
Overrides:
read in class BTAbstractLoggable

getLogSize

public int getLogSize()
Description copied from interface: Loggable
Returns the size of the work load of this entry.

Specified by:
getLogSize in interface Loggable
Overrides:
getLogSize in class BTAbstractLoggable
Returns:
size of the work load of this entry.

redo

public void redo()
          throws LogException
Description copied from interface: Loggable
Redo the underlying operation. This method is called by RecoveryManager.

Specified by:
redo in interface Loggable
Overrides:
redo in class AbstractLoggable
Throws:
LogException

undo

public void undo()
          throws LogException
Description copied from interface: Loggable
Undo, i.e. roll back, the underlying operation. The method is called by RecoveryManager.

Specified by:
undo in interface Loggable
Overrides:
undo in class AbstractLoggable
Throws:
LogException

dump

public String dump()
Description copied from class: AbstractLoggable
Default implementation returns the current LSN plus the class name of the Loggable instance.

Specified by:
dump in interface Loggable
Overrides:
dump in class AbstractLoggable
Returns:
description


Copyright (C) Wolfgang Meier. All rights reserved.