|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.MVStoreTool
public class MVStoreTool
Utility methods used in combination with the MVStore.
| Constructor Summary | |
|---|---|
MVStoreTool()
|
|
| Method Summary | |
|---|---|
static void |
compact(MVStore source,
MVStore target)
Copy all live pages from the source store to the target store. |
static void |
compact(java.lang.String fileName,
boolean compress)
Compress the store by creating a new file and copying the live pages there. |
static void |
compact(java.lang.String sourceFileName,
java.lang.String targetFileName,
boolean compress)
Copy all live pages from the source store to the target store. |
static void |
compactCleanUp(java.lang.String fileName)
Clean up if needed, in a case a compact operation was interrupted due to killing the process or a power failure. |
static void |
dump(java.lang.String fileName,
boolean details)
Read the contents of the file and write them to system out. |
static void |
dump(java.lang.String fileName,
java.io.Writer writer,
boolean details)
Read the contents of the file and display them in a human-readable format. |
static void |
info(java.lang.String fileName)
Read the summary information of the file and write them to system out. |
static void |
info(java.lang.String fileName,
java.io.Writer writer)
Read the summary information of the file and write them to system out. |
static void |
main(java.lang.String... args)
Runs this tool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MVStoreTool()
| Method Detail |
|---|
public static void main(java.lang.String... args)
| [-dump <fileName>] | Dump the contends of the file |
| [-info <fileName>] | Get summary information about a file |
| [-compact <fileName>] | Compact a store |
| [-compress <fileName>] | Compact a store with compression enabled |
args - the command line arguments
public static void dump(java.lang.String fileName,
boolean details)
fileName - the name of the filedetails - whether to print detailspublic static void info(java.lang.String fileName)
fileName - the name of the file
public static void dump(java.lang.String fileName,
java.io.Writer writer,
boolean details)
fileName - the name of the filewriter - the print writerdetails - print the page details
public static void info(java.lang.String fileName,
java.io.Writer writer)
fileName - the name of the filewriter - the print writer
public static void compact(java.lang.String fileName,
boolean compress)
fileName - the file namecompress - whether to compress the datapublic static void compactCleanUp(java.lang.String fileName)
fileName - the file name
public static void compact(java.lang.String sourceFileName,
java.lang.String targetFileName,
boolean compress)
sourceFileName - the name of the source storetargetFileName - the name of the target storecompress - whether to compress the data
public static void compact(MVStore source,
MVStore target)
source - the source storetarget - the target store
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||