| java.lang.Object org.h2.log.LogFile
LogFile | public class LogFile (Code) | | Each transaction log file contains a number of log records.
Header format:
int logId (<0 means ignore: rolled back already)
int firstUncommittedLogRecordId (-1 if none)
int firstUnwrittenLogRecordId (-1 if none)
Record format:
int block size
byte 'D' (delete) / 'I' (insert) / 'C' (commit) /
'R' (rollback) / 'P' (prepare commit) / 'T' (truncate)
int session
[delete/insert only:]
int storage
int record.pos
int record.blockCount
[prepare commit only:]
string transaction
|
Method Summary | |
void | add(Session session, int storageId, Record record) | void | addSummary(boolean dataFile, byte[] summary) | void | addTruncate(Session session, int storageId, int recordId, int blockCount) | void | close(boolean delete) | void | commit(Session session) | void | flush() | public String | getFileName() | public long | getFileSize() | int | getFirstUncommittedPos() | public int | getId() | int | getPos() | void | go(int pos) | static LogFile | openIfLogFile(LogSystem log, String fileNamePrefix, String fileName) | void | prepareCommit(Session session, String transaction) | public void | redoAllGoEnd() | void | setFirstUncommittedPos(int firstUncommittedPos) | public void | sync() | void | truncate(int pos) | void | undo(int pos) | void | updatePreparedCommit(boolean commit, int pos, int sessionId, int blocks) |
BLOCK_SIZE | final public static int BLOCK_SIZE(Code) | | |
getFirstUncommittedPos | int getFirstUncommittedPos()(Code) | | |
setFirstUncommittedPos | void setFirstUncommittedPos(int firstUncommittedPos) throws SQLException(Code) | | |
updatePreparedCommit | void updatePreparedCommit(boolean commit, int pos, int sessionId, int blocks) throws SQLException(Code) | | |
|
|