Class TransactionContext

  • All Implemented Interfaces:
    Transaction

    public class TransactionContext
    extends Object
    implements Transaction
    Manage the transaction context. When the transaction begins, the modifiedPages map is initialized. This allows to always delegate to the transaction context, even if there is no active transaction by ignoring tx data.
    At commit time, the files are locked in order (to avoid deadlocks) and to allow parallel commit on different files.
    Format of WAL:
    txId:long|pages:int|<segmentSize:int|fileId:int|pageNumber:long|pageModifiedFrom:int|pageModifiedTo:int|<prevContent><newContent>segmentSize:int>MagicNumber:long