public class MVStoreTool
extends java.lang.Object
| Constructor and Description |
|---|
MVStoreTool() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 argumentspublic 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 filepublic 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 detailspublic static void info(java.lang.String fileName,
java.io.Writer writer)
fileName - the name of the filewriter - the print writerpublic 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 namepublic 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