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 D49C482F7 for ; Fri, 2 Sep 2011 01:28:25 +0000 (UTC) Received: (qmail 86590 invoked by uid 500); 2 Sep 2011 01:28:24 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 86353 invoked by uid 500); 2 Sep 2011 01:28:23 -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 86345 invoked by uid 99); 2 Sep 2011 01:28:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 01:28:22 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anthony.ikeda.dev@gmail.com designates 209.85.215.170 as permitted sender) Received: from [209.85.215.170] (HELO mail-ey0-f170.google.com) (209.85.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2011 01:28:15 +0000 Received: by eyd10 with SMTP id 10so2196200eyd.1 for ; Thu, 01 Sep 2011 18:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=pWxuLvxEW1aJxyg19hn31yt1FIS/vE5LB4PVhhHb7IM=; b=U1ZSc8L6umHG0dTuQpuzg4Se+TIc031++qX3Maj1eHqvu1VOO3ntaLHjjbHqYIDoQC evfv0dQ347K8mQYJLMbPULXewDhg+7LvtawGQwOLpsFRHVtzmMNUMb+QyiA2FeebikZF 3MkcMZ+GUaMq/pK+/25asfMkyXp73VEMpGmAU= MIME-Version: 1.0 Received: by 10.213.28.200 with SMTP id n8mr275077ebc.138.1314926874965; Thu, 01 Sep 2011 18:27:54 -0700 (PDT) Received: by 10.213.8.134 with HTTP; Thu, 1 Sep 2011 18:27:54 -0700 (PDT) Date: Thu, 1 Sep 2011 18:27:54 -0700 Message-ID: Subject: Limiting ColumnSlice range in second composite value From: Anthony Ikeda To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0015174c0e2c49b70c04abeb45c0 X-Virus-Checked: Checked by ClamAV on apache.org --0015174c0e2c49b70c04abeb45c0 Content-Type: text/plain; charset=ISO-8859-1 My Column name is of Composite(TimeUUIDType, UTF8Type) and I can query across the TimeUUIDs correctly, but now I want to also range across the UTF8 component. Is this possible? UUID start = uuidForDate(new Date(1979, 1, 1)); UUID end = uuidForDate(new Date(Long.MAX_VALUE)); String startState = ""; String endState = ""; if (desiredState != null) { mLog.debug("Restricting state to [" + desiredState.getValue() + "]"); startState = desiredState.getValue(); endState = desiredState.getValue().concat("_"); } Composite startComp = new Composite(start, startState); Composite endComp = new Composite(end, endState); query.setRange(startComp, endComp, true, count); So far I'm not seeing any effect setting my "endState" String value. Anthony --0015174c0e2c49b70c04abeb45c0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable My Column name is of Composite(TimeUUIDType, UTF8Type) and I can query acro= ss the TimeUUIDs correctly, but now I want to also range across the UTF8 co= mponent. Is this possible?

UUID start =3D uuidForDate(new Date(1979, 1, 1));

UUID end =3D uuidForDate(new Date= (Long.MAX_VALUE));

String startState =3D "";

String endState =3D "";

if (desiredState !=3D null) {

=A0 =A0=A0mLog.debug("Restricting state to [" + desiredState.getValue()= + "]");

=A0 =A0=A0startState =3D desiredState.getValue();

=A0 =A0=A0endState =3D desiredState.getValue().concat("_");

}

=A0 =A0

Composite startComp =3D new Compo= site(start, startState);

Composite endComp =3D new Composi= te(end, endState);

query.setRange(startComp, endComp, true, count);


So far I'm not seeing any effect setting my "endState"= ; String value.


Anthony

--0015174c0e2c49b70c04abeb45c0--