![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.file.Log:

Definition at line 53 of file Log.java.
Public Member Functions | |
| void | init (Datafile db, boolean create, Properties props) throws IOException |
| Initialize the logging subsystem. | |
| void | start () |
| Start the logging subsystem. | |
| Datafile | getDatafile () |
| Return the database that we're logging for. | |
| void | addEntry (LogEntry entry) throws IOException |
| Add a transaction's log record to the end of the open log file. | |
| void | reallyAddEntry (LogEntry entry) throws IOException |
| XXX why public? | |
| void | close () throws IOException |
| Flush and close the log file. | |
| void | flushLog () throws IOException |
| Flush all log records to disk. | |
| void | checkpoint () throws IOException |
| Perform a checkpoint operation. | |
| void | sync () throws IOException |
| Wait for all queue ops to be processed by the log sync thread. | |
| void | rollbackTransaction (Transaction trans) throws IOException |
| Transaction rollback. | |
| void | rollbackStatement (Transaction trans, int stmtId) throws IOException |
| Statement rollback. | |
| void | restart () throws Exception |
| Restart from a previous state. | |
| long | getRowMap (long rowId) |
| Retrieve a row mapping. | |
| void | putRowMap (long logRow, long fileRow) |
| Remember a row mapping {old,new} The old row (logRow) is now stored in a new place (fileRow), so any stored log entries that refer to the old row need to be translated to use the new row. | |
| void | removeRowMap (long row) |
| Discard a row mapping. | |
| boolean | isLogging () |
| Are you logging? | |
| void | saveBlock (long b) throws IOException |
| Save a "before" image. | |
| void | restoreBlocks () throws IOException |
| Restore all the "before" images. | |
| void | resetBlocks () throws IOException |
| Reset the "before" list to be empty. | |
| void | remove () throws IOException |
| Remove the log. | |
| boolean | inRecovery () throws IOException |
| Are we currently performing restart log recovery? | |
|
|
Add a transaction's log record to the end of the open log file.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.Session.beginStatement(), com.quadcap.sql.file.Datafile.commitTransaction(), com.quadcap.sql.file.Datafile.doStep(), and com.quadcap.sql.file.Datafile.makeTransaction(). |
|
|
Perform a checkpoint operation.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.close(), and com.quadcap.sql.file.Datafile.initFileDatabase(). |
|
|
Flush and close the log file.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.close(). |
|
|
Flush all log records to disk.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.commitTransaction(). |
|
|
Return the database that we're logging for.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. |
|
|
Retrieve a row mapping.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.UpdateRow.redo(), com.quadcap.sql.InsertRow.redo(), com.quadcap.sql.UpdateRow.undo(), and com.quadcap.sql.InsertRow.undo(). |
|
||||||||||||||||
|
Initialize the logging subsystem.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.initFileDatabase(), and com.quadcap.sql.file.Datafile.initMemoryDatabase(). |
|
|
Are we currently performing restart log recovery?
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.inRecovery(). |
|
|
Are you logging?
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. |
|
||||||||||||
|
Remember a row mapping {old,new} The old row (logRow) is now stored in a new place (fileRow), so any stored log entries that refer to the old row need to be translated to use the new row.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.InsertRow.redo(), com.quadcap.sql.InsertBlob.redo(), and com.quadcap.sql.DeleteRow.undo(). |
|
|
XXX why public?
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. |
|
|
Remove the log.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.close(). |
|
|
Discard a row mapping.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.InsertRow.undo(). |
|
|
Reset the "before" list to be empty.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.BlockStore.clearModified(). |
|
|
Restart from a previous state.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.initFileDatabase(). |
|
|
Restore all the "before" images.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.initFileDatabase(). |
|
||||||||||||
|
Statement rollback.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.rollbackStatement(). |
|
|
Transaction rollback.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.rollbackTransaction(). |
|
|
Save a "before" image.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.MemoryBlockStore.write(), and com.quadcap.sql.file.BlockStore.write(). |
|
|
Start the logging subsystem.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.initFileDatabase(). |
|
|
Wait for all queue ops to be processed by the log sync thread.
Implemented in com.quadcap.sql.file.Log0, com.quadcap.sql.file.Log1, com.quadcap.sql.file.Log2, and com.quadcap.sql.file.Log3. Referenced by com.quadcap.sql.file.Datafile.close(). |