Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C00D1C176 for ; Thu, 3 May 2012 00:57:48 +0000 (UTC) Received: (qmail 63675 invoked by uid 500); 3 May 2012 00:57:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 63652 invoked by uid 500); 3 May 2012 00:57:46 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 63643 invoked by uid 99); 3 May 2012 00:57:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 00:57:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sunit.randhawa@gmail.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 00:57:40 +0000 Received: by ghbg16 with SMTP id g16so1563776ghb.31 for ; Wed, 02 May 2012 17:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=8Mdx7iGuh+Vb+1jrWwaKHl9OrgoC7Bx71JXfYbL8hxc=; b=ZiWbzMPvhiCiwbfQh2zuBXRo/NkgIEPnoZcTIeZT5bgme151j2vmaPlxuYzhBU+HqV KNwVRsElGTm7pU99N65CT6EV0mnu45Armjl0n8lCmsNXajAkvzDThpEm4Wz13TyXSsnx 2jzXkduHgIZtiBqFJQrRh5/877apFpziwzagIoG9zijz7jx92Dtpvn8gg69Kl7ziHspU id9s58UC1xG1qL+SPsg4zvQIU4ULafRATpQOe+AjfnbiNhL7oc2VjPUuXGqM9+ese22S wK7+HKMG0ZvWJ3c8RZnrWtdt0tf2uCJgWmLcU6mnPI+yYA1WvwRBTxPfWgFpMR1CVUiZ 3TNQ== MIME-Version: 1.0 Received: by 10.50.186.233 with SMTP id fn9mr106334igc.46.1336006639337; Wed, 02 May 2012 17:57:19 -0700 (PDT) Received: by 10.50.4.38 with HTTP; Wed, 2 May 2012 17:57:19 -0700 (PDT) Date: Wed, 2 May 2012 17:57:19 -0700 Message-ID: Subject: HColumn.getName() appending special characters From: Sunit Randhawa To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=14dae9340b6b27bef404bf17491a X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340b6b27bef404bf17491a Content-Type: text/plain; charset=ISO-8859-1 Hello, Code snippet below is printing out column names and values: MultigetSliceQuery multigetSliceQuery = HFactory.createMultigetSliceQuery(keyspace, stringSerializer, stringSerializer, stringSerializer); for (HColumn column : c){ System.out.println("Col name:"+column.getName()+",Col Value:"+column.getValue()); columnData.put(column.getName(), column.getValue()); } The output for column name is printing some special characters that I cannot copy and paste in the email also. Below is the definition of that CF: create column family XYZ with comparator = 'CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type)' and key_validation_class = UTF8Type and default_validation_class = UTF8Type; Any suggestion as to why these special characters I am seeing in column name only when I display using Thrift API (cassandra-cli does not show that). Thanks, Sunit. --14dae9340b6b27bef404bf17491a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

Code snippet below is printing out column names and values:
MultigetSliceQuery<String, String, String> multigetSliceQuery = =3D
=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 HFactory.createM= ultigetSliceQuery(keyspace, stringSerializer, stringSerializer, stringSeria= lizer);

for (HColumn<String, String> column : c){
=A0=A0=A0 =A0=A0=A0 = =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 System.out.println("Col name:&quo= t;+column.getName()+",Col Value:"+column.getValue());
=A0=A0= =A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 columnData.put(column.ge= tName(), column.getValue());
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0 }


The output for= column name is printing some special characters that I cannot copy and pas= te in the email also.

Below is the definition of that CF:
create= column family XYZ
=A0=A0=A0=A0=A0=A0=A0 with comparator =3D 'Compos= iteType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.ma= rshal.UTF8Type)'
=A0=A0=A0 and key_validation_class =3D UTF8Type
=A0=A0=A0 and default_va= lidation_class =3D UTF8Type;


Any suggestion as to why these spec= ial characters I am seeing in column name only when I display using Thrift = API (cassandra-cli does not show that).

Thanks,
Sunit.
--14dae9340b6b27bef404bf17491a--