/** * Read the summary information of the file and write them to system out. * * @param fileName the name of the file */ public static void info(String fileName) { info(fileName, new PrintWriter(System.out)); }
} else if ("-info".equals(args[i])) { String fileName = args[++i]; info(fileName, new PrintWriter(System.out)); } else if ("-compact".equals(args[i])) { String fileName = args[++i];
version = rollback(fileName, version, new PrintWriter(ignore)); try { String error = info(fileName + ".temp", new PrintWriter(ignore)); if (error == null) { FilePath.get(fileName).moveTo(FilePath.get(fileName + ".back"), true);
private void process(String dir, String db) { ArrayList<String> list = FileLister.getDatabaseFiles(dir, db, true); if (list.isEmpty()) { printNoDatabaseFilesFound(dir, db); } for (String fileName : list) { if (fileName.endsWith(Constants.SUFFIX_PAGE_FILE)) { dumpPageStore(fileName); } else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) { dumpLob(fileName, false); } else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) { String f = fileName.substring(0, fileName.length() - Constants.SUFFIX_PAGE_FILE.length()); PrintWriter writer; writer = getWriter(fileName, ".txt"); MVStoreTool.dump(fileName, writer, true); MVStoreTool.info(fileName, writer); writer.close(); writer = getWriter(f + ".h2.db", ".sql"); dumpMVStoreFile(writer, fileName); writer.close(); } } }
/** * Read the summary information of the file and write them to system out. * * @param fileName the name of the file */ public static void info(String fileName) { info(fileName, new PrintWriter(System.out)); }
/** * Read the summary information of the file and write them to system out. * * @param fileName the name of the file */ public static void info(String fileName) { info(fileName, new PrintWriter(System.out)); }
/** * Read the summary information of the file and write them to system out. * * @param fileName the name of the file */ public static void info(String fileName) { info(fileName, new PrintWriter(System.out)); }
} else if ("-info".equals(args[i])) { String fileName = args[++i]; info(fileName, new PrintWriter(System.out)); } else if ("-compact".equals(args[i])) { String fileName = args[++i];
} else if ("-info".equals(args[i])) { String fileName = args[++i]; info(fileName, new PrintWriter(System.out)); } else if ("-compact".equals(args[i])) { String fileName = args[++i];
} else if ("-info".equals(args[i])) { String fileName = args[++i]; info(fileName, new PrintWriter(System.out)); } else if ("-compact".equals(args[i])) { String fileName = args[++i];
version = rollback(fileName, version, new PrintWriter(ignore)); try { String error = info(fileName + ".temp", new PrintWriter(ignore)); if (error == null) { FilePath.get(fileName).moveTo(FilePath.get(fileName + ".back"), true);
private void process(String dir, String db) { ArrayList<String> list = FileLister.getDatabaseFiles(dir, db, true); if (list.size() == 0) { printNoDatabaseFilesFound(dir, db); } for (String fileName : list) { if (fileName.endsWith(Constants.SUFFIX_PAGE_FILE)) { dumpPageStore(fileName); } else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) { dumpLob(fileName, false); } else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) { String f = fileName.substring(0, fileName.length() - Constants.SUFFIX_PAGE_FILE.length()); PrintWriter writer; writer = getWriter(fileName, ".txt"); MVStoreTool.dump(fileName, writer, true); MVStoreTool.info(fileName, writer); writer.close(); writer = getWriter(f + ".h2.db", ".sql"); dumpMVStoreFile(writer, fileName); writer.close(); } } }
private void process(String dir, String db) { ArrayList<String> list = FileLister.getDatabaseFiles(dir, db, true); if (list.size() == 0) { printNoDatabaseFilesFound(dir, db); } for (String fileName : list) { if (fileName.endsWith(Constants.SUFFIX_PAGE_FILE)) { dumpPageStore(fileName); } else if (fileName.endsWith(Constants.SUFFIX_LOB_FILE)) { dumpLob(fileName, false); } else if (fileName.endsWith(Constants.SUFFIX_MV_FILE)) { String f = fileName.substring(0, fileName.length() - Constants.SUFFIX_PAGE_FILE.length()); PrintWriter writer; writer = getWriter(fileName, ".txt"); MVStoreTool.dump(fileName, writer, true); MVStoreTool.info(fileName, writer); writer.close(); writer = getWriter(f + ".h2.db", ".sql"); dumpMVStoreFile(writer, fileName); writer.close(); } } }
version = rollback(fileName, version, new PrintWriter(ignore)); try { String error = info(fileName + ".temp", new PrintWriter(ignore)); if (error == null) { FilePath.get(fileName).moveTo(FilePath.get(fileName + ".back"), true);