Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 44739 invoked from network); 14 Oct 2010 20:09:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 20:09:13 -0000 Received: (qmail 88289 invoked by uid 500); 14 Oct 2010 20:09:11 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 88269 invoked by uid 500); 14 Oct 2010 20:09:11 -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 88260 invoked by uid 99); 14 Oct 2010 20:09:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 20:09:11 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 74.125.83.44 is neither permitted nor denied by domain of beto@yogadigital.net) Received: from [74.125.83.44] (HELO mail-gw0-f44.google.com) (74.125.83.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 20:09:05 +0000 Received: by gwaa12 with SMTP id a12so20151gwa.31 for ; Thu, 14 Oct 2010 13:08:44 -0700 (PDT) Received: by 10.151.43.5 with SMTP id v5mr374469ybj.280.1287086923966; Thu, 14 Oct 2010 13:08:43 -0700 (PDT) Received: from [192.168.0.105] ([190.26.117.85]) by mx.google.com with ESMTPS id m12sm9631580ybn.0.2010.10.14.13.08.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 14 Oct 2010 13:08:43 -0700 (PDT) From: Alberto Velandia Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/alternative; boundary=Apple-Mail-13--458521619 Subject: Re: 0.7 API Change? Date: Thu, 14 Oct 2010 14:58:43 -0500 In-Reply-To: To: user@cassandra.apache.org References: Message-Id: X-Mailer: Apple Mail (2.1081) --Apple-Mail-13--458521619 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 You have to call the Ghostbusters!!! On Oct 14, 2010, at 2:44 PM, Jesse McConnell wrote: > you have to call set_keyspace on the connection now >=20 > cheers, > jesse >=20 > -- > jesse mcconnell > jesse.mcconnell@gmail.com >=20 >=20 > On Thu, Oct 14, 2010 at 14:41, Brayton Thompson = wrote: > Was there a change to the API in 0.7? >=20 > example... > from the api wikki >=20 > insert >=20 > void insert(string keyspace, string key, ColumnPath column_path, = binary value, i64 timestamp, ConsistencyLevel consistency_level) >=20 >=20 > Now from the thrift generated perl library for the 0.7 beta 2 = download. >=20 > sub insert{ > my $self =3D shift; > my $key =3D shift; > my $column_parent =3D shift; > my $column =3D shift; > my $consistency_level =3D shift; >=20 > $self->send_insert($key, $column_parent, $column, = $consistency_level); > $self->recv_insert(); > } >=20 > For those of you who don't use perl...=20 > my $self =3D shift; > my $key =3D shift; > my $column_parent =3D shift; > my $column =3D shift; > my $consistency_level =3D shift; >=20 > these get the function arguments out in the order they are listed. The = first argument (in this example the thing stored into $self) is a = reference to the class object the method belongs to. So in our example = keyspace goes into $key, key goes into $column_parent ... etc. >=20 > This is not a huge issue, I can look at the module to determine the = new ordering of arguments. However how can I run an insert if the = keyspace is never supplied to the method? >=20 > Thank you for your time. >=20 =20 > Alberto Velandia > Director de proyectos > Calle 74 # 15-80 - Int 2. Oficina 202 > Osaka Trade Center > Bogot=E1, Colombia, Latam. > Tel: +571-345-1070 > Cel: +57301-466-3902 > Site en desarrollo: http://www.staging.yoga-digital.net/works > Messenger: beto@yogadigital.net > SkypeID: beto_velandia > =20 > La pureza de lo simple > Este mensaje se dirige exclusivamente a su destinatario y puede = contener informaci=F3n privilegiada o confidencial. Si no es usted el = destinatario indicado, queda notificado de que la lectura, utilizaci=F3n, = divulgaci=F3n y/o copia sin autorizaci=F3n est=E1 prohibida en virtud de = la legislaci=F3n vigente. Si ha recibido este mensaje por error, le = rogamos que nos lo comunique inmediatamente por esta misma v=EDa y = proceda a su destrucci=F3n. El correo electr=F3nico v=EDa Internet no = permite asegurar la confidencialidad de los mensajes que se transmiten = ni su integridad o correcta recepci=F3n. Yoga Digital S.A.S. no asume = ninguna responsabilidad por estas circunstancias. >=20 > This message is intended exclusively for its addressee and may contain = information that is CONFIDENTIAL and protected by a professional = privilege or whose disclosure is prohibited by law. If you are not the = intended recipient you are hereby notified that any read, dissemination, = copy or disclosure of this communication is strictly prohibited by law. = If this message has been received in error, please immediately notify us = via e-mail and delete it. Internet e-mail neither guarantees the = confidentiality nor the integrity or proper receipt of the messages = sent. Yoga Digital S.A.S. does not assume any liability for those = circumstances. >=20 --Apple-Mail-13--458521619 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 You = have to call the Ghostbusters!!!


On Oct = 14, 2010, at 2:44 PM, Jesse McConnell wrote:

you have = to call set_keyspace on the connection = now

cheers,
jesse

--
jesse mcconnell
jesse.mcconnell@gmail.com

On Thu, Oct 14, 2010 at 14:41, = Brayton Thompson <thompsbp@grnoc.iu.edu>= wrote:
Was there a change to the API in = 0.7?

example...
from the api = wikki

insert

  • void insert(string keyspac= e, string key, ColumnPath column_path, binary&nbs= p;value, i64 timestamp, ConsistencyLevel consistency_l= evel)


Now from the thrift generated perl library for the 0.7 beta 2 = download.

sub = insert{
  my $self =3D = shift;
  my $key =3D shift;
  my = $column_parent =3D shift;
  my $column =3D shift;
  my = $consistency_level =3D = shift;

  $self->send_insert($key, = $column_parent, $column, = $consistency_level);
  $self->recv_insert();
<= div>}

For those of you who don't use = perl... 
  my $self =3D = shift;
  my $key =3D shift;
  my = $column_parent =3D shift;
  my $column =3D = shift;
  my $consistency_level =3D shift;

these get the function arguments out in the = order they are listed. The first argument (in this example the thing = stored into $self) is a reference to the class object the method belongs = to.  So in our example keyspace goes into $key, key goes into = $column_parent ... etc.

This is not a huge issue, I can look at the module = to determine the new ordering of arguments. However how can I run an = insert if the keyspace is never supplied to the = method?

Thank you for your time.


Alberto = VelandiaDirector de = proyectos
Osaka Trade CenterBogot=E1, Colombia, Latam.
Tel: +571-345-1070
Cel: = +57301-466-3902
Site en = desarrollobeto@yogadigital.netSkypeID: = beto_velandia
La pureza de lo = simpleEste mensaje se dirige exclusivamente a su = destinatario y puede contener informaci=F3n privilegiada o confidencial. = Si no es usted el destinatario indicado, queda notificado de que la = lectura, utilizaci=F3n, divulgaci=F3n y/o copia sin autorizaci=F3n est=E1 = prohibida en virtud de la legislaci=F3n vigente. Si ha recibido este = mensaje por error, le rogamos que nos lo comunique inmediatamente por = esta misma v=EDa y proceda a su destrucci=F3n. El correo electr=F3nico = v=EDa Internet no permite asegurar la confidencialidad de los mensajes = que se transmiten ni su integridad o correcta recepci=F3n. Yoga Digital = S.A.S. no asume ninguna responsabilidad por estas = circunstancias.This message is intended exclusively for = its addressee and may contain information that is CONFIDENTIAL and = protected by a professional privilege or whose disclosure is prohibited = by law. If you are not the intended recipient you are hereby notified = that any read, dissemination, copy or disclosure of this communication = is strictly prohibited by law. If this message has been received in = error, please immediately notify us via e-mail and delete it.  = Internet e-mail neither guarantees the confidentiality nor the integrity = or proper receipt of the messages sent. Yoga Digital S.A.S. does not = assume any liability for those = circumstances.


= --Apple-Mail-13--458521619--