Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 5974 invoked from network); 24 Sep 2010 15:57:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Sep 2010 15:57:27 -0000 Received: (qmail 85797 invoked by uid 500); 24 Sep 2010 15:57:25 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 85646 invoked by uid 500); 24 Sep 2010 15:57:22 -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 85638 invoked by uid 99); 24 Sep 2010 15:57:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 15:57:22 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of decker.christian@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Sep 2010 15:57:15 +0000 Received: by qwc9 with SMTP id 9so2190285qwc.31 for ; Fri, 24 Sep 2010 08:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=zi2vkYPgJ6Gp5zJCUHHNAz6Quiroc9Fs7e8dBp3dGFI=; b=nAHchj4yv7RmhjM3B0HG9MVuuH6R4WkN9GkChVOPy8p5pPBZMbq3gn1EF7AXeaNC25 eEEzT1FqV/dZPKyGi1ndzPEUhc5MUeTgDChCXk9AKOTHqEjrb6YS5xcMC5c+BB2nG2si B6AqjAfUSYrOXPKxg+cQ9NMyf2p+OsY6JWEJE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=oHSGUi+5Upd3rNkbxavc49yZx1R5p+JY+hT+vVQoIDxkrRkI62DUCUbOOopZu0cxZq dwVM20Y2wVkRn0LitZIQ8JpXsJYEAERy4wUvFgO5jR95jjZz5MxDxtyF0pS5sXqM05ka R101ANhjRSlNw+RX7ZZ/Aw1zJeQMiu/hg1a98= Received: by 10.229.215.8 with SMTP id hc8mr2765419qcb.23.1285343814942; Fri, 24 Sep 2010 08:56:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.181.85 with HTTP; Fri, 24 Sep 2010 08:56:17 -0700 (PDT) From: Christian Decker Date: Fri, 24 Sep 2010 17:56:17 +0200 Message-ID: Subject: LongType from user input To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e65dc4ee8100cb0491036d6e --0016e65dc4ee8100cb0491036d6e Content-Type: text/plain; charset=ISO-8859-1 Hi all, I'm having quite a dilemma with the CompareWith attribute. The Problem is that I have numeric IDs that I'd like to use as row keys, only that I also have to offer a possibility to let users input them from std input. Since I cannot ask my users to input an 8byte sequence representing the ID they'd like, I was about to turn to UTF8, when I remembered that they are compared lexicographically, so that 100 actually comes before 2, which kills key slices. Also I cannot just code a converter in since this is supposed to be a used with multiple columnfamilies, so just converting an integer read into 8bytes isn't going to work either. Any tricks for this one? Regards, Chris --0016e65dc4ee8100cb0491036d6e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

I'm having quite a dilemma with the CompareW= ith attribute. The Problem is that I have numeric IDs that I'd like to = use as row keys, only that I also have to offer a possibility to let users = input them from std input. Since I cannot ask my users to input an 8byte se= quence representing the ID they'd like, I was about to turn to UTF8, wh= en I remembered that they are compared lexicographically, so that 100 actua= lly comes before 2, which kills key slices. Also I cannot just code a conve= rter in since this is supposed to be a used with multiple columnfamilies, s= o just converting an integer read into 8bytes isn't going to work eithe= r.
Any tricks for this one?

Regards,
=
Chris
--0016e65dc4ee8100cb0491036d6e--