| com.tencent.wcdb.repair.RepairKit.Callback |
Listener for repairing progress report.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract int |
onProgress(String table, int root, Cursor cursor)
Called whenever a row of data is read from the corrupted database file.
| ||||||||||
Called whenever a row of data is read from the corrupted database file.
The implementation can use the Cursor object from the argument to access the row data. Note that no movement of the cursor is allowed. The access is limited to the current row when callback method is called.
The implementation tells the library how to deal with the current row by returning different values.
RESULT_OK means output the row to the new database;RESULT_CANCELED means the repairing method should return immediately with
further iteration;RESULT_IGNORE means ignore the current row and proceed to the next.| table | which table the row of data belong to |
|---|---|
| root | root page of the table |
| cursor | cursor object to access the row data |