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 4CC6D1047B for ; Tue, 1 Apr 2014 14:54:24 +0000 (UTC) Received: (qmail 96569 invoked by uid 500); 1 Apr 2014 14:54:18 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 96435 invoked by uid 500); 1 Apr 2014 14:54:12 -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 95875 invoked by uid 99); 1 Apr 2014 14:54:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 14:54:10 +0000 X-ASF-Spam-Status: No, hits=3.1 required=5.0 tests=HTML_MESSAGE,SPF_HELO_SOFTFAIL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [75.144.176.12] (HELO scmgateway.cabotresearch.com) (75.144.176.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2014 14:54:03 +0000 Received: from mail-ob0-f180.google.com (unknown [209.85.214.180]) by scmgateway.cabotresearch.com with smtp (TLS: TLSv1/SSLv3,128bits,RC4-SHA) id 2061_053e_222ec309_704a_4659_b405_e07e93c4dee1; Tue, 01 Apr 2014 10:45:31 -0400 Received: by mail-ob0-f180.google.com with SMTP id wn1so11174448obc.11 for ; Tue, 01 Apr 2014 07:53:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=tlnUyPTS40aYKIuUaaJ83RwYILDSpVR5XGZ4HUtdW8I=; b=D14kiFiEAZeWgQJ5qica8uRS4EF+Dgsk4qSkHJrwuJjbxPjlL07RlOKy8K3jcESFbG xktmrc5hLaRqgXut/oBSZ+cbjNM3U8P96Eswm9A6PpOQABlqsdUUZKvEUV3Ot+P0O9cK mn0JJP6/3/P0z4qnpTcZqJQlWkN1JTOHr0LhXTnLOvsck8CxIUKvtEJUZg6yuTZMi6vy UJP6NlOxA36ZZIw4bs7GxhclLntByBnss81ST/NLI6F+YzrCL8Pl4zwTYI+Le/vVsYmf 5biy2Ily2FJF8P9fi4fEUoj6shlZSwXXx2qAHjlzlqeti6KUog3P3NlAcSKq9/tSHPhs XrjQ== X-Gm-Message-State: ALoCoQnR4iVrg8QVBdA/Zl+tEdOsfcY8TYj94IFW/o8mESnR1aEO1EAslfhpt4tdnLEJKFaW/wIxVni/nc+s7F0jyt0G0hP126m8dv5dDzK1NNHzvjk4v60mqKcxT4Qa34hDrP/YlkSPqlRCY2gEUOv+xOmU7prOohLsr9Sx62Bshfj+7K87wOk= X-Received: by 10.60.54.228 with SMTP id m4mr28907810oep.29.1396364018796; Tue, 01 Apr 2014 07:53:38 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.54.228 with SMTP id m4mr28907800oep.29.1396364018657; Tue, 01 Apr 2014 07:53:38 -0700 (PDT) Received: by 10.76.187.3 with HTTP; Tue, 1 Apr 2014 07:53:38 -0700 (PDT) Date: Tue, 1 Apr 2014 10:53:38 -0400 Message-ID: Subject: Specifying startBefore with iterators with compositeKeys From: Brian Tarbox To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e0115ffc64f44b204f5fc5500 X-Virus-Checked: Checked by ClamAV on apache.org --089e0115ffc64f44b204f5fc5500 Content-Type: text/plain; charset=ISO-8859-1 I have a composite key consisting of: (integer, bytes) and I have rows like: (1,abc), (1,def), (2,abc), (2,def) and I want to find all rows with the integer part = 2. I need to create a startBeyondName using CompositeType.Builder class and am wondering if specifying (2, Bytes.Empty) will sort correctly? I think another way of saying this is: "does HeapByteBuffer with pos=,lim=0,cap=0 sort prior to any other possible HeapByteBuffer? Thanks. --089e0115ffc64f44b204f5fc5500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I have a composite key consisting of: (integer, bytes) and= I have rows like:
(1,abc), (1,def), (2,abc), (2,def) and I want to fin= d all rows with the integer part =3D 2.

I need to = create a startBeyondName using CompositeType.Builder class and am wondering= if specifying (2, Bytes.Empty) will sort correctly?

I think another way of saying this is: "does HeapB= yteBuffer with pos=3D,lim=3D0,cap=3D0 sort prior to any other possible Heap= ByteBuffer?

Thanks.
--089e0115ffc64f44b204f5fc5500--