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 999E2D843 for ; Mon, 17 Sep 2012 14:51:40 +0000 (UTC) Received: (qmail 80781 invoked by uid 500); 17 Sep 2012 14:51:38 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 80757 invoked by uid 500); 17 Sep 2012 14:51:38 -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 80749 invoked by uid 99); 17 Sep 2012 14:51:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 14:51:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of s5alye@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-wg0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2012 14:51:30 +0000 Received: by wgbdr13 with SMTP id dr13so4479458wgb.25 for ; Mon, 17 Sep 2012 07:51:10 -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=Y4GWQVG5vsykyelKSL864AqJELcrI8WSZuHgeyBzAYo=; b=OycAwlcUw6Zg0z9la5uA5kO09emUBEGlGDBKREScivpEHWRWlAZCuM8uEZ2uCPqNIs x6rAYV0rC/nNOH6JaDFTYz4Gz44HK5IlohUmjp84wdX8AnrFy7EM4II+u+UCqdPnYiAc FZcahIodMP6y9zatx2xsGkPZovOZUn7zi8o611YpeW97YGho8Uyo2Uq9iZ7i4RKSW3sm /mhw7ZvOo+4Y3viUoNKHiGxuYkfMzUCUrFulMgnTYjQBoVGMIPvXtqzzhuwLOmHFGBrg TetiFLkIdwJYZ1TkE7GVIh84NlmJbN0ZC25jqU8qas+o9xkK2B8WdZXLKUzaydWln77n p0WQ== MIME-Version: 1.0 Received: by 10.180.100.131 with SMTP id ey3mr16665529wib.15.1347893470215; Mon, 17 Sep 2012 07:51:10 -0700 (PDT) Received: by 10.223.3.14 with HTTP; Mon, 17 Sep 2012 07:51:10 -0700 (PDT) Date: Mon, 17 Sep 2012 10:51:10 -0400 Message-ID: Subject: Astyanax error From: A J To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hello, I am tyring to retrieve a list of Column Names (that are defined as Integer) from a CF with RowKey as Integer as well. (I don't care for the column values that are just nulls) Following is snippet of my Astyanax code. I am getting 0 columns but I know the key that I am querying contains a few hundred columns. Any idea what part of the code below is incorrect ? Thanks. Astyanax code: ============ ColumnFamily CF1 = new ColumnFamily( "CF1", // Column Family Name IntegerSerializer.get(), // Key Serializer IntegerSerializer.get()); // Column Serializer //Reading data int NUM_EVENTS = 9; StopWatch clock = new StopWatch(); clock.start(); for (int i = 0; i < NUM_EVENTS; ++i) { ColumnList result = keyspace.prepareQuery(CF1) .getKey(1919) .execute().getResult(); System.out.println( "results are: " + result.size() ); } clock.stop(); CF definition: =========== [default@ks1] describe CF1; ColumnFamily: CF1 Key Validation Class: org.apache.cassandra.db.marshal.IntegerType Default column value validator: org.apache.cassandra.db.marshal.BytesType Columns sorted by: org.apache.cassandra.db.marshal.IntegerType