cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5894) CQL-aware SSTableWriter
Date Wed, 09 Oct 2013 15:24:43 GMT

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

Sylvain Lebresne commented on CASSANDRA-5894:
---------------------------------------------

In terms of API, what about something like that:
{noformat}
String schema = "CREATE TABLE foo (c1 int, c2 text, c3 float, PRIMARY KEY (c1, c2))"
String insert = "INSERT INTO foo(c1, c2, c3) VALUES (?, ?, ?)"
CQLSSTableWriter writer = CQLSSTableWriter.builder()
                                          .for(schema)
                                          .using(insert)
                                          .build();

writer.addRow(3, "foo", 2.3f);
writer.addRow(1, "bar", 0.0f);
...
{noformat}

> CQL-aware SSTableWriter
> -----------------------
>
>                 Key: CASSANDRA-5894
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5894
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Tools
>            Reporter: Jonathan Ellis
>            Priority: Minor
>
> SSTableSimple[Un]SortedWriter requires defining raw comparators and inserting raw data
cells.  We should create a CQL-aware alternative.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message