Package io.permazen.jsck
Class Jsck
java.lang.Object
io.permazen.jsck.Jsck
Applies consistency checks to, and optionally repairs corruption of, a Permazen key/value database.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Jsck
-
-
Method Details
-
check
Perform check.- Parameters:
kv
- key/value databaseconsumer
- recipient of any issues found; or null for none- Returns:
- the number of issues encountered
- Throws:
IllegalArgumentException
- if database is not a Permazen database (i.e., no format version key)IllegalArgumentException
- if an override schema is invalidSchemaMismatchException
- if the database's recorded schemas are mutually inconsistent (due to schema overrides)
-