|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.tools.SSTableExport
public class SSTableExport
Export SSTables to JSON format.
Constructor Summary | |
---|---|
SSTableExport()
|
Method Summary | |
---|---|
static void |
enumeratekeys(java.lang.String ssTableFile,
java.io.PrintStream outs)
Enumerate row keys from an SSTableReader and write the result to a PrintStream. |
static void |
export(java.lang.String ssTableFile,
java.io.PrintStream outs,
java.util.Collection<java.lang.String> toExport,
java.lang.String[] excludes)
Export specific rows from an SSTable and write the resulting JSON to a PrintStream. |
static void |
export(java.lang.String ssTableFile,
java.io.PrintStream outs,
java.lang.String[] excludes)
Export an SSTable and write the resulting JSON to a PrintStream. |
static void |
export(java.lang.String ssTableFile,
java.lang.String[] excludes)
Export an SSTable and write the resulting JSON to standard out. |
static void |
main(java.lang.String[] args)
Given arguments specifying an SSTable, and optionally an output file, export the contents of the SSTable to JSON. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSTableExport()
Method Detail |
---|
public static void enumeratekeys(java.lang.String ssTableFile, java.io.PrintStream outs) throws java.io.IOException
ssTableFile
- the file to export the rows fromouts
- PrintStream to write the output to
java.io.IOException
- on failure to read/write input/outputpublic static void export(java.lang.String ssTableFile, java.io.PrintStream outs, java.util.Collection<java.lang.String> toExport, java.lang.String[] excludes) throws java.io.IOException
ssTableFile
- the SSTableScanner to export the rows fromouts
- PrintStream to write the output totoExport
- the keys corresponding to the rows to exportexcludes
- keys to exclude from export
java.io.IOException
- on failure to read/write input/outputpublic static void export(java.lang.String ssTableFile, java.io.PrintStream outs, java.lang.String[] excludes) throws java.io.IOException
ssTableFile
- the SSTable to exportouts
- PrintStream to write the output toexcludes
- keys to exclude from export
java.io.IOException
- on failure to read/write input/outputpublic static void export(java.lang.String ssTableFile, java.lang.String[] excludes) throws java.io.IOException
ssTableFile
- SSTable to exportexcludes
- keys to exclude from export
java.io.IOException
- on failure to read/write SSTable/standard outpublic static void main(java.lang.String[] args) throws java.io.IOException, ConfigurationException
args
- command lines arguments
java.io.IOException
- on failure to open/read/write files or output streams
ConfigurationException
- on configuration failure (wrong params given)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |