congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MVStoreTool.dump
Code IndexAdd Tabnine to your IDE (free)

How to use
dump
method
in
org.h2.mvstore.MVStoreTool

Best Java code snippets using org.h2.mvstore.MVStoreTool.dump (Showing top 11 results out of 315)

origin: com.h2database/h2

/**
 * Read the contents of the file and write them to system out.
 *
 * @param fileName the name of the file
 * @param details whether to print details
 */
public static void dump(String fileName, boolean details) {
  dump(fileName, new PrintWriter(System.out), details);
}
origin: com.h2database/h2

if ("-dump".equals(args[i])) {
  String fileName = args[++i];
  dump(fileName, new PrintWriter(System.out), true);
} else if ("-info".equals(args[i])) {
  String fileName = args[++i];
origin: com.h2database/h2

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();
    }
  }
}
origin: com.h2database/h2-mvstore

/**
 * Read the contents of the file and write them to system out.
 *
 * @param fileName the name of the file
 * @param details whether to print details
 */
public static void dump(String fileName, boolean details) {
  dump(fileName, new PrintWriter(System.out), details);
}
origin: org.wowtools/h2

/**
 * Read the contents of the file and write them to system out.
 *
 * @param fileName the name of the file
 * @param details whether to print details
 */
public static void dump(String fileName, boolean details) {
  dump(fileName, new PrintWriter(System.out), details);
}
origin: com.eventsourcing/h2

/**
 * Read the contents of the file and write them to system out.
 *
 * @param fileName the name of the file
 * @param details whether to print details
 */
public static void dump(String fileName, boolean details) {
  dump(fileName, new PrintWriter(System.out), details);
}
origin: com.eventsourcing/h2

if ("-dump".equals(args[i])) {
  String fileName = args[++i];
  dump(fileName, new PrintWriter(System.out), true);
} else if ("-info".equals(args[i])) {
  String fileName = args[++i];
origin: com.h2database/h2-mvstore

if ("-dump".equals(args[i])) {
  String fileName = args[++i];
  dump(fileName, new PrintWriter(System.out), true);
} else if ("-info".equals(args[i])) {
  String fileName = args[++i];
origin: org.wowtools/h2

if ("-dump".equals(args[i])) {
  String fileName = args[++i];
  dump(fileName, new PrintWriter(System.out), true);
} else if ("-info".equals(args[i])) {
  String fileName = args[++i];
origin: org.wowtools/h2

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();
    }
  }
}
origin: com.eventsourcing/h2

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();
    }
  }
}
org.h2.mvstoreMVStoreTooldump

Javadoc

Read the contents of the file and display them in a human-readable format.

Popular methods of MVStoreTool

  • compact
    Copy all live pages from the source store to the target store.
  • formatTimestamp
  • getCompressor
  • getPercent
  • info
    Read the summary information of the file and write them to system out.
  • compactCleanUp
    Clean up if needed, in a case a compact operation was interrupted due to killing the process or a po
  • repair
    Repair a store by rolling back to the newest good version.
  • rollback
    Roll back to a given revision into a a file called *.temp.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Permission (java.security)
    Legacy security code; do not use.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now