From user-return-25244-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Mon Apr 2 12:17:23 2012 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 056389DA1 for ; Mon, 2 Apr 2012 12:17:23 +0000 (UTC) Received: (qmail 76417 invoked by uid 500); 2 Apr 2012 12:17:20 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 76399 invoked by uid 500); 2 Apr 2012 12:17:20 -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 76391 invoked by uid 99); 2 Apr 2012 12:17:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 12:17:20 +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 jakers@gmail.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 12:17:14 +0000 Received: by qafi31 with SMTP id i31so2051617qaf.8 for ; Mon, 02 Apr 2012 05:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=661d5q+23MZaHs+4e1IFbsF5tymNHII+FiEG8Um64vM=; b=HXA3ur/Lf3uq+CtaMLvEkbOeYpa/lGppZopsZlbLiAf8DP8tHOkTwVPKuMzQS/ZqkL Y7Grfkbk9Ttu1bAA+D6cVl402Z3X3UblzbPxE17Kyf2SKXvAbvnah1VfwpLZUR1s5a0E JRHQ8TMpi4eHMYjMohiY0/wq/fnR1Wv/5UBD478RGh54dVUTwvMoYl1TPQWmptpuLREn 0l+IY3woStkkNon0B+M1s2G2wvurfvvWFVfL/imU9LiFzvSMSt5BQA0OK11M5Mo7k+Yl PmuG9nDApnuMYODYLFITuZT8J5qDdX4bGeURp/RVA3mGsg5erc8gGQk7kfXCIysghBhN 31mQ== Received: by 10.224.179.77 with SMTP id bp13mr4476663qab.85.1333369013729; Mon, 02 Apr 2012 05:16:53 -0700 (PDT) Received: from [10.3.32.165] (mobile-198-228-192-068.mycingular.net. [198.228.192.68]) by mx.google.com with ESMTPS id f12sm34339771qan.1.2012.04.02.05.16.52 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Apr 2012 05:16:52 -0700 (PDT) Subject: Re: Row iteration using RandomPartitioner References: From: Jake Luciani Content-Type: multipart/alternative; boundary=Apple-Mail-8E7CF5B1-2FF8-4FC3-9575-27D89F6A3270 X-Mailer: iPhone Mail (9B176) In-Reply-To: Message-Id: <061FE7B2-93C3-46D2-954A-D65A02E35710@gmail.com> Date: Mon, 2 Apr 2012 08:16:44 -0400 To: "user@cassandra.apache.org" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-8E7CF5B1-2FF8-4FC3-9575-27D89F6A3270 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Correct. Random partitioner order is md5 token order. If you make no changes= you will get the same order =20 On Apr 2, 2012, at 7:53 AM, wrote: > Hi, >=20 > Bit of a silly question, is row iteration using the RandomPartitioner dete= rministic? I don't particularly care what the order is relative to the row k= eys (obviously there isn't one, it's the RandomPartitioner), but if I run a f= ull iteration over all rows in a CF twice, assuming no underlying changes to= the CF in the meantime, will the rows be returned in the same order both ti= mes? >=20 > I assume so, as I don=E2=80=99t see how one could use get_range_slices to d= o this otherwise, but I wanted to check. >=20 > Visit our website at http://www.ubs.com=20 >=20 > This message contains confidential information and is intended only=20 > for the individual named. If you are not the named addressee you=20 > should not disseminate, distribute or copy this e-mail. Please=20 > notify the sender immediately by e-mail if you have received this=20 > e-mail by mistake and delete this e-mail from your system.=20 >=20 > E-mails are not encrypted and cannot be guaranteed to be secure or=20 > error-free as information could be intercepted, corrupted, lost,=20 > destroyed, arrive late or incomplete, or contain viruses. The sender=20 > therefore does not accept liability for any errors or omissions in the=20 > contents of this message which arise as a result of e-mail transmission.=20= > If verification is required please request a hard-copy version. This=20 > message is provided for informational purposes and should not be=20 > construed as a solicitation or offer to buy or sell any securities=20 > or related financial instruments.=20 >=20 > UBS Limited is a company limited by shares incorporated in the United=20 > Kingdom registered in England and Wales with number 2035362.=20 > Registered office: 1 Finsbury Avenue, London EC2M 2PP. UBS Limited=20 > is authorised and regulated by the Financial Services Authority.=20 >=20 > UBS AG is a public company incorporated with limited liability in=20 > Switzerland domiciled in the Canton of Basel-City and the Canton of=20 > Zurich respectively registered at the Commercial Registry offices in=20 > those Cantons with Identification No: CH-270.3.004.646-4 and having=20 > respective head offices at Aeschenvorstadt 1, 4051 Basel and=20 > Bahnhofstrasse 45, 8001 Zurich, Switzerland. Registered in the=20 > United Kingdom as a foreign company with No: FC021146 and having a=20 > UK Establishment registered at Companies House, Cardiff, with No: =20 > BR 004507. The principal office of UK Establishment: 1 Finsbury Avenue,=20= > London EC2M 2PP. In the United Kingdom, UBS AG is authorised and=20 > regulated by the Financial Services Authority. >=20 > UBS reserves the right to retain all messages. Messages are protected=20 > and accessed only in legally justified cases. --Apple-Mail-8E7CF5B1-2FF8-4FC3-9575-27D89F6A3270 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Correct. Random partitione= r order is md5 token order. If you make no changes you will get the same ord= er

 

On Apr 2, 2012, at 7:53 AM, <christopher-t.ng@ubs.com> wrote:
= = Row iteration using RandomPartitioner

Hi,

Bit of a silly question, is row iteration= using the RandomPartitioner deterministic?  I don't particularly care w= hat the order is relative to the row keys (obviously there isn't one, it's t= he RandomPartitioner), but if I run a full iteration over all rows in a CF t= wice, assuming no underlying changes to the CF in the meantime, will the row= s be returned in the same order both times?

I assume so, as I don=E2=80=99t see how o= ne could use get_range_slices to do this otherwise, but I wanted to check.

Visit our website at= http://www.ubs.com

This message contains confidential information and is intended o= nly
for the individual named. If you are not the named addr= essee you
should not disseminate, distribute or copy this e= -mail. Please
notify the sender immediately by e-mail if yo= u have received this
e-mail by mistake and delete this e-ma= il from your system.

E-mails are not encry= pted and cannot be guaranteed to be secure or
error-free as= information could be intercepted, corrupted, lost,
destroy= ed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail tr= ansmission.
If verification is required please request a ha= rd-copy version. This
message is provided for informational= purposes and should not be
construed as a solicitation or o= ffer to buy or sell any securities
or related financial ins= truments.

UBS Limited is a company limited= by shares incorporated in the United
Kingdom registered in= England and Wales with number 2035362.
Registered office: 1= Finsbury Avenue, London EC2M 2PP.  UBS Limited
is aut= horised and regulated by the Financial Services Authority.
=
UBS AG is a public company incorporated with limited liabil= ity in
Switzerland domiciled in the Canton of Basel-City an= d the Canton of
Zurich respectively registered at the Comme= rcial Registry offices in
those Cantons with Identification= No: CH-270.3.004.646-4 and having
respective head offices a= t Aeschenvorstadt 1, 4051 Basel and
Bahnhofstrasse 45, 8001= Zurich, Switzerland.  Registered in the
United Kingdo= m as a foreign company with No: FC021146 and having a
UK Es= tablishment registered at Companies House, Cardiff, with No:  BR 004507.  The principal office of UK Establishment: 1 Finsbur= y Avenue,
London EC2M 2PP.  In the United Kingdom, UBS= AG is authorised and
regulated by the Financial Services A= uthority.

UBS reserves the right to retain a= ll messages. Messages are protected
and accessed only in le= gally justified cases.
= --Apple-Mail-8E7CF5B1-2FF8-4FC3-9575-27D89F6A3270--