Return-Path: X-Original-To: apmail-incubator-accumulo-user-archive@minotaur.apache.org Delivered-To: apmail-incubator-accumulo-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 436F19761 for ; Thu, 23 Feb 2012 20:04:54 +0000 (UTC) Received: (qmail 3288 invoked by uid 500); 23 Feb 2012 20:04:54 -0000 Delivered-To: apmail-incubator-accumulo-user-archive@incubator.apache.org Received: (qmail 3260 invoked by uid 500); 23 Feb 2012 20:04:54 -0000 Mailing-List: contact accumulo-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: accumulo-user@incubator.apache.org Delivered-To: mailing list accumulo-user@incubator.apache.org Received: (qmail 3252 invoked by uid 99); 23 Feb 2012 20:04:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 20:04:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.175] (HELO mail-qy0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 20:04:48 +0000 Received: by qcso7 with SMTP id o7so83055qcs.6 for ; Thu, 23 Feb 2012 12:04:26 -0800 (PST) Received-SPF: pass (google.com: domain of keith@deenlo.com designates 10.229.102.148 as permitted sender) client-ip=10.229.102.148; Authentication-Results: mr.google.com; spf=pass (google.com: domain of keith@deenlo.com designates 10.229.102.148 as permitted sender) smtp.mail=keith@deenlo.com Received: from mr.google.com ([10.229.102.148]) by 10.229.102.148 with SMTP id g20mr1967548qco.124.1330027466448 (num_hops = 1); Thu, 23 Feb 2012 12:04:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.102.148 with SMTP id g20mr1689150qco.124.1330027466296; Thu, 23 Feb 2012 12:04:26 -0800 (PST) Received: by 10.229.145.3 with HTTP; Thu, 23 Feb 2012 12:04:26 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Feb 2012 15:04:26 -0500 Message-ID: Subject: Re: Definition of Column Qualifier in User Manual From: Keith Turner To: accumulo-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmhe/4l6AZEL+haKGDetBE/mFjxL6wAdlcXaDfmNjKYgFLOOs48ntP4JdJY4UTbcSPtbUU1 X-Virus-Checked: Checked by ClamAV on apache.org One thing to consider when deciding if you want to use a column family or qualifier is locality groups. Column families can be placed in locality groups. On Thu, Feb 23, 2012 at 2:37 PM, David Medinets wrote: > In this kind of situation, I've seen marker classes used so the intent > of the parameter is clear. Marker classes also make it feasible to > overload method signatures to allow for missing parameters. > > While you have explained using the empty string as a column qualifier, > you haven't explained the column qualifier itself. I won't be > misdirected so easily :) > > On Thu, Feb 23, 2012 at 11:55 AM, Adam Fuchs wrot= e: >> When we don't have an entry for an element of the key or the value we >> typically use the empty string (or zero-length byte array). This is >> technically different from null, but it seems to work well for all the u= se >> cases we've encountered so far. Here are some examples: >> >> =A0 =A0 Mutation m =3D new Mutation("david"); >> =A0 =A0 m.put("age","","23, no, really"); >> >> =A0 =A0 Mutation m =3D new Mutation("david"); >> =A0 =A0 m.put("age","23, honest", ""); >> >> =A0 =A0 byte[] empty =3D new byte[0]; >> =A0 =A0 Mutation m =3D new Mutation(new Text("david")); >> =A0 =A0 m.put("age","23, honest",new Value(empty)); >> >> The first example uses a zero-length column qualifier and populates the >> value. The second and third examples result in exactly the same entries = in >> Accumulo, with a populated column qualifier and a zero-length value. >> >> Cheers, >> Adam >> >> >> On Wed, Feb 22, 2012 at 10:17 PM, David Medinets >> wrote: >>> >>> Perhaps I've overlooked it, but I don't see a definition of Column >>> Qualifier in the User Manual. Is there a best practice recommendation >>> when the data is simply row,column,value (i.e., david,age,23). Can the >>> qualifier or value be null? >> >>