/** * Export an SSTable and write the resulting JSON to standard out. * * @param desc the descriptor of the sstable to read from * @param excludes keys to exclude from export * @param metadata Metadata to print keys in a proper format * @throws IOException on failure to read/write SSTable/standard out */ public static void export(Descriptor desc, String[] excludes, CFMetaData metadata) throws IOException { export(desc, System.out, excludes, metadata); }
/** * Export an SSTable and write the resulting JSON to a PrintStream. * * @param desc the descriptor of the sstable to read from * @param outs PrintStream to write the output to * @param excludes keys to exclude from export * @param metadata Metadata to print keys in a proper format * @throws IOException on failure to read/write input/output */ public static void export(Descriptor desc, PrintStream outs, String[] excludes, CFMetaData metadata) throws IOException { export(SSTableReader.open(desc), outs, excludes, metadata); }