public class SSTableImport
extends java.lang.Object
Constructor and Description |
---|
SSTableImport() |
SSTableImport(boolean isSorted) |
SSTableImport(boolean isSorted,
boolean oldSCFormat) |
SSTableImport(java.lang.Integer keyCountToImport,
boolean isSorted,
boolean oldSCFormat) |
Modifier and Type | Method and Description |
---|---|
int |
importJson(java.lang.String jsonFile,
java.lang.String keyspace,
java.lang.String cf,
java.lang.String ssTablePath)
Convert a JSON formatted file to an SSTable.
|
static void |
main(java.lang.String[] args)
Converts JSON to an SSTable file.
|
public SSTableImport()
public SSTableImport(boolean isSorted)
public SSTableImport(boolean isSorted, boolean oldSCFormat)
public SSTableImport(java.lang.Integer keyCountToImport, boolean isSorted, boolean oldSCFormat)
public int importJson(java.lang.String jsonFile, java.lang.String keyspace, java.lang.String cf, java.lang.String ssTablePath) throws java.io.IOException
jsonFile
- the file containing JSON formatted datakeyspace
- keyspace the data belongs tocf
- column family the data belongs tossTablePath
- file to write the SSTable tojava.io.IOException
- for errors reading/writing input/outputpublic static void main(java.lang.String[] args) throws org.apache.commons.cli.ParseException, ConfigurationException
args
- command line argumentsjava.io.IOException
- on failure to open/read/write files or output streamsorg.apache.commons.cli.ParseException
- on failure to parse JSON inputConfigurationException
- on configuration error.Copyright © 2013 The Apache Software Foundation