Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5274510B6B for ; Wed, 9 Oct 2013 15:24:48 +0000 (UTC) Received: (qmail 22164 invoked by uid 500); 9 Oct 2013 15:24:45 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 22130 invoked by uid 500); 9 Oct 2013 15:24:44 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 22090 invoked by uid 99); 9 Oct 2013 15:24:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Oct 2013 15:24:43 +0000 Date: Wed, 9 Oct 2013 15:24:43 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5894) CQL-aware SSTableWriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)