Uses of Class
edu.caltech.nanodb.storage.writeahead.WALRecordType
-
Packages that use WALRecordType Package Description edu.caltech.nanodb.storage.writeahead This package contains the implementation for the write-ahead log, which allows us to provide transaction atomicity, consistency and durability. -
-
Uses of WALRecordType in edu.caltech.nanodb.storage.writeahead
Methods in edu.caltech.nanodb.storage.writeahead that return WALRecordType Modifier and Type Method Description static WALRecordType
WALRecordType. valueOf(int id)
Given a numeric type ID, returns the corresponding type value for the ID, or null if no type corresponds to the ID.static WALRecordType
WALRecordType. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WALRecordType[]
WALRecordType. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in edu.caltech.nanodb.storage.writeahead with parameters of type WALRecordType Modifier and Type Method Description private void
WALManager. applyRedo(WALRecordType type, DBFileReader walReader, DBPage dbPage, int numSegments)
This helper function writes a sequence of redo-segments from anUPDATE_PAGE
orUPDATE_PAGE_REDO_ONLY
record.LogSequenceNumber
WALManager. writeTxnRecord(WALRecordType type)
This function writes a transaction demarcation record (START_TXN
,COMMIT_TXN
, orABORT_TXN
) to the write-ahead log.private LogSequenceNumber
WALManager. writeTxnRecord(WALRecordType type, int transactionID, LogSequenceNumber prevLSN)
This function writes a transaction demarcation record (START_TXN
,COMMIT_TXN
, orABORT_TXN
) to the write-ahead log.
-