June 2001
Intermediate to advanced
688 pages
19h 18m
English
import com.sleepycat.db.*; public void verify(String file, String database, java.io.OutputStream outfile, int flags) throws DbException;
The Db.verify method verifies the integrity of all databases in the file specified by the file argument, and optionally outputs the databases’ key/data pairs to a file stream.
The flags parameter must be set to 0 or one of the following values:
Db.DB_SALVAGE Write the key/data pairs from all databases in the file to the file stream named in the outfile argument. The output format is the same as that specified for the db_dump utility, and can be used as input for the db_load utility.
Because the key/data pairs are output in page order as opposed to the sort order used by db_dump, using ...