|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.tools.SSTableImport
public class SSTableImport
Create SSTables from JSON input
| Constructor Summary | |
|---|---|
SSTableImport()
|
|
| Method Summary | |
|---|---|
static void |
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 int |
importSorted(java.lang.String jsonFile,
ColumnFamily columnFamily,
java.lang.String ssTablePath,
IPartitioner<?> partitioner)
|
static void |
main(java.lang.String[] args)
Converts JSON to an SSTable file. |
static void |
setKeyCountToImport(java.lang.Integer keyCount)
Used by test framework to set key count |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSTableImport()
| Method Detail |
|---|
public static void 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 to
java.io.IOException - for errors reading/writing input/output
public static int importSorted(java.lang.String jsonFile,
ColumnFamily columnFamily,
java.lang.String ssTablePath,
IPartitioner<?> partitioner)
throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
throws java.io.IOException,
org.apache.commons.cli.ParseException,
ConfigurationException
args - command line arguments
java.io.IOException - on failure to open/read/write files or output streams
org.apache.commons.cli.ParseException - on failure to parse JSON input
ConfigurationException - on configuration error.public static void setKeyCountToImport(java.lang.Integer keyCount)
keyCount - numbers of keys to import
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||