public class SSTableExport
extends java.lang.Object
Constructor and Description |
---|
SSTableExport() |
Modifier and Type | Method and Description |
---|---|
static void |
enumeratekeys(Descriptor desc,
java.io.PrintStream outs)
Enumerate row keys from an SSTableReader and write the result to a PrintStream.
|
static void |
export(Descriptor desc,
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(Descriptor desc,
java.io.PrintStream outs,
java.lang.String[] excludes)
Export an SSTable and write the resulting JSON to a PrintStream.
|
static void |
export(Descriptor desc,
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.
|
public static void enumeratekeys(Descriptor desc, java.io.PrintStream outs) throws java.io.IOException
desc
- the descriptor of the file to export the rows fromouts
- PrintStream to write the output tojava.io.IOException
- on failure to read/write input/outputpublic static void export(Descriptor desc, java.io.PrintStream outs, java.util.Collection<java.lang.String> toExport, java.lang.String[] excludes) throws java.io.IOException
desc
- the descriptor of the sstable to read fromouts
- PrintStream to write the output totoExport
- the keys corresponding to the rows to exportexcludes
- keys to exclude from exportjava.io.IOException
- on failure to read/write input/outputpublic static void export(Descriptor desc, java.io.PrintStream outs, java.lang.String[] excludes) throws java.io.IOException
desc
- the descriptor of the sstable to read fromouts
- PrintStream to write the output toexcludes
- keys to exclude from exportjava.io.IOException
- on failure to read/write input/outputpublic static void export(Descriptor desc, java.lang.String[] excludes) throws java.io.IOException
desc
- the descriptor of the sstable to read fromexcludes
- keys to exclude from exportjava.io.IOException
- on failure to read/write SSTable/standard outpublic static void main(java.lang.String[] args) throws ConfigurationException
args
- command lines argumentsjava.io.IOException
- on failure to open/read/write files or output streamsConfigurationException
- on configuration failure (wrong params given)Copyright © 2013 The Apache Software Foundation