| Modifier and Type | Field and Description |
|---|---|
| private HashMap | |
| private String | |
| private boolean | |
| private HashSet | |
| private int | |
| private ArrayList | |
| private int | |
| private String | |
| private HashMap | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| private static void | |
| private void | |
| private static void | |
| private void | |
| private static void | |
| public static void | |
| private static String | |
| public CompareMode | |
| public String | |
| public SmallLRUCache | |
| public LobStorageInterface | |
| public Object | |
| public int | |
| private void | |
| public TempFileDeleter | |
| private PrintWriter | |
| private static boolean | |
| private static boolean | |
| public static void | |
| public FileStore | openFile(String
the file name name, String the mode mode, boolean whether the file must already exist mustExist)Implements org. INTERNAL |
| private void | |
| public static InputStream | Returns: InputStream to read LOB content fromto use conn, long id of the LOB stream lobId, long not used precision)INTERNAL |
| public static Reader | Returns: Reader to read LOB content fromto use conn, long id of the LOB stream lobId, long not used precision)INTERNAL |
| public int | readLob(long
the lob id lobId, byte[] the message authentication code hmac, long the offset within the lob offset, byte[] the target buffer buff, int the offset within the target buffer off, int the number of bytes to read length)Implements org. INTERNAL |
| private void | |
| public void | runTool(String...
the command line arguments args)Implements abstract org. Dumps the contents of a database file to a human readable text file. |
| private void | |
| private String | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| columnTypeMap | back to summary |
|---|---|
| private HashMap<String, String> columnTypeMap | |
| databaseName | back to summary |
|---|---|
| private String databaseName | |
| lobMaps | back to summary |
|---|---|
| private boolean lobMaps | |
| objectIdSet | back to summary |
|---|---|
| private HashSet<Integer> objectIdSet | |
| recordLength | back to summary |
|---|---|
| private int recordLength | |
| schema | back to summary |
|---|---|
| private ArrayList<MetaRecord> schema | |
| storageId | back to summary |
|---|---|
| private int storageId | |
| storageName | back to summary |
|---|---|
| private String storageName | |
| tableMap | back to summary |
|---|---|
| private HashMap<Integer, String> tableMap | |
| trace | back to summary |
|---|---|
| private boolean trace | |
| valueId | back to summary |
|---|---|
| private int valueId | |
| Recover | back to summary |
|---|---|
| public Recover() | |
| checkPowerOff | back to summary |
|---|---|
| public void checkPowerOff() Implements org. INTERNAL
| |
| checkWritingAllowed | back to summary |
|---|---|
| public void checkWritingAllowed() Implements org. INTERNAL
| |
| createTemporaryTable | back to summary |
|---|---|
| private void createTemporaryTable(PrintWriter writer) | |
| dumpLayout | back to summary |
|---|---|
| private static void dumpLayout(PrintWriter writer, MVStore mv) | |
| dumpLobMaps | back to summary |
|---|---|
| private void dumpLobMaps(PrintWriter writer, MVStore mv) | |
| dumpMeta | back to summary |
|---|---|
| private static void dumpMeta(PrintWriter writer, MVStore mv) | |
| dumpMVStoreFile | back to summary |
|---|---|
| private void dumpMVStoreFile(PrintWriter writer, String fileName) | |
| dumpTypes | back to summary |
|---|---|
| private static void dumpTypes(PrintWriter writer, MVStore mv) | |
| execute | back to summary |
|---|---|
| public static void execute(String dir, String db) throws SQLException Dumps the contents of a database to a SQL script file.
| |
| extractTableOrViewName | back to summary |
|---|---|
| private static String extractTableOrViewName(String sql) | |
| getCompareMode | back to summary |
|---|---|
| public CompareMode getCompareMode() Implements org. Doc from org. Return compare mode.
| |
| getDatabasePath | back to summary |
|---|---|
| public String getDatabasePath() Implements org. INTERNAL
| |
| getLobFileListCache | back to summary |
|---|---|
| public SmallLRUCache Implements org. INTERNAL
| |
| getLobStorage | back to summary |
|---|---|
| public LobStorageInterface getLobStorage() Implements org. INTERNAL
| |
| getLobSyncObject | back to summary |
|---|---|
| public Object getLobSyncObject() Implements org. INTERNAL
| |
| getMaxLengthInplaceLob | back to summary |
|---|---|
| public int getMaxLengthInplaceLob() Implements org. INTERNAL
| |
| getSQL | back to summary |
|---|---|
| private void getSQL(StringBuilder builder, String column, Value v) | |
| getTempFileDeleter | back to summary |
|---|---|
| public TempFileDeleter getTempFileDeleter() Implements org. INTERNAL
| |
| getWriter | back to summary |
|---|---|
| private PrintWriter getWriter(String fileName, String suffix) | |
| isLobTable | back to summary |
|---|---|
| private static boolean isLobTable(String name) | |
| isSchemaObjectTypeDelayed | back to summary |
|---|---|
| private static boolean isSchemaObjectTypeDelayed(MetaRecord m) | |
| main | back to summary | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| public static void main(String... args) throws SQLException Options are case sensitive.
| |||||||||||
| openFile | back to summary |
|---|---|
| public FileStore openFile(String name, String mode, boolean mustExist) Implements org. INTERNAL
| |
| process | back to summary |
|---|---|
| private void process(String dir, String db) | |
| readBlobMap | back to summary |
|---|---|
| public static InputStream readBlobMap(Connection conn, long lobId, long precision) throws SQLException INTERNAL
| |
| readClobMap | back to summary |
|---|---|
| public static Reader readClobMap(Connection conn, long lobId, long precision) throws Exception INTERNAL
| |
| readLob | back to summary |
|---|---|
| public int readLob(long lobId, byte[] hmac, long offset, byte[] buff, int off, int length) Implements org. INTERNAL
| |
| resetSchema | back to summary |
|---|---|
| private void resetSchema() | |
| runTool | back to summary |
|---|---|
| public void runTool(String... args) throws SQLException Implements abstract org. Dumps the contents of a database file to a human readable text file. This text file can be used to recover most of the data. This tool does not open the database and can be used even if the database files are corrupted. A database can get corrupted if there is a bug in the database engine or file system software, or if an application writes into the database file that doesn't understand the file format, or if there is a hardware problem.
| |
| setDatabaseName | back to summary |
|---|---|
| private void setDatabaseName(String name) | |
| setStorage | back to summary |
|---|---|
| private String setStorage(int storageId) | |
| trace | back to summary |
|---|---|
| private void trace(String message) | |
| traceError | back to summary |
|---|---|
| private void traceError(String message, Throwable t) | |
| writeError | back to summary |
|---|---|
| private void writeError(PrintWriter writer, Throwable e) | |
| writeMetaRow | back to summary |
|---|---|
| private void writeMetaRow(Row r) | |
| writeSchema | back to summary |
|---|---|
| private void writeSchema(PrintWriter writer) | |
| writeSchemaSET | back to summary |
|---|---|
| private void writeSchemaSET(PrintWriter writer) | |