[ 
https://issues.apache.org/jira/browse/CASSANDRA-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765762#action_12765762
 ] 

Eric Evans commented on CASSANDRA-489:
--------------------------------------

Patch v1-0001-CASSANDRA-489-basic-json-exporter-for-sstables.txt:

Introduces a new class and wrapper script for exporting SSTables to JSON format.

eev...@achilles:~/dev/src/git/cassandra(sstable_export)$ bin/sstable2json 
~/dev/cassandra/var-0/data/Keyspace1/Super1-2-Data.db
{
  "jsmith": { "address": {"zip": "3738323530" } },
  "eevans": { "address": {"street": "737570657276616c", "zip": "3738323530" } },
  "jdoe": { "address": {"zip": "3738323530" } }
}

The string representation of columns names are the result of the comparators 
getString() method, values are always in hex.

Patch v1-0002-convert-bytes-to-hex-for-BytesType.getString.txt:

Updates BytesType.getString() to return a hex representation instead of the 
stringified array of ints that Arrays.toString() produces.


> SSTable export tool
> -------------------
>
>                 Key: CASSANDRA-489
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-489
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Tools
>    Affects Versions: 0.5
>            Reporter: Eric Evans
>            Assignee: Eric Evans
>            Priority: Minor
>         Attachments: 
> v1-0001-CASSANDRA-489-basic-json-exporter-for-sstables.txt, 
> v1-0002-convert-bytes-to-hex-for-BytesType.getString.txt
>
>
> It's been suggested that a tool to export SSTables to a less opaque format 
> would be useful to people.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to