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 244869FA9 for ; Thu, 23 Feb 2012 20:23:07 +0000 (UTC) Received: (qmail 59246 invoked by uid 500); 23 Feb 2012 20:23:07 -0000 Delivered-To: apmail-incubator-accumulo-user-archive@incubator.apache.org Received: (qmail 59224 invoked by uid 500); 23 Feb 2012 20:23:07 -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 59215 invoked by uid 99); 23 Feb 2012 20:23:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 20:23:07 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.medinets@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-pz0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2012 20:23:02 +0000 Received: by daln34 with SMTP id n34so1433727dal.6 for ; Thu, 23 Feb 2012 12:22:42 -0800 (PST) Received-SPF: pass (google.com: domain of david.medinets@gmail.com designates 10.68.239.71 as permitted sender) client-ip=10.68.239.71; Authentication-Results: mr.google.com; spf=pass (google.com: domain of david.medinets@gmail.com designates 10.68.239.71 as permitted sender) smtp.mail=david.medinets@gmail.com; dkim=pass header.i=david.medinets@gmail.com Received: from mr.google.com ([10.68.239.71]) by 10.68.239.71 with SMTP id vq7mr2143485pbc.128.1330028562454 (num_hops = 1); Thu, 23 Feb 2012 12:22:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=OsHRNhIVLIHikir45ckUlQ3rJERj+fIDthof1gQ9Y0E=; b=poYHHwfO9XN/iQsssKG6j7X/NF6xTZCQ5NkpuTwOUsP+K7Hd3V9K545BVvHGTxjOj/ eKROSnnOchcugxJ3hqyUaEQbQnVW4J6IWnp5knzBQsPG9z19xfJrW4fzJxLqx0qFrie5 r5BS+tZCimyoZp3Hr4b4EDKSK0tVdkGrODg28= MIME-Version: 1.0 Received: by 10.68.239.71 with SMTP id vq7mr1651892pbc.128.1330028562403; Thu, 23 Feb 2012 12:22:42 -0800 (PST) Received: by 10.68.203.169 with HTTP; Thu, 23 Feb 2012 12:22:42 -0800 (PST) In-Reply-To: References: Date: Thu, 23 Feb 2012 15:22:42 -0500 Message-ID: Subject: Re: Definition of Column Qualifier in User Manual From: David Medinets To: accumulo-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Please elaborate. What is a locality group? Why are they important? Please cite examples. On Thu, Feb 23, 2012 at 3:04 PM, Keith Turner wrote: > One thing to consider when deciding if you want to use a column family > or qualifier is locality groups. =A0Column 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 wro= te: >>> 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 = use >>> 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? >>> >>>