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 D39C57A29 for ; Wed, 23 Nov 2011 18:12:59 +0000 (UTC) Received: (qmail 72037 invoked by uid 500); 23 Nov 2011 18:12:59 -0000 Delivered-To: apmail-incubator-accumulo-user-archive@incubator.apache.org Received: (qmail 71994 invoked by uid 500); 23 Nov 2011 18:12:59 -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 71986 invoked by uid 99); 23 Nov 2011 18:12:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 18:12:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 18:12:51 +0000 Received: by iahk25 with SMTP id k25so1954778iah.6 for ; Wed, 23 Nov 2011 10:12:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.8.205 with SMTP id i13mr6513590ibi.34.1322071950805; Wed, 23 Nov 2011 10:12:30 -0800 (PST) Received: by 10.50.185.193 with HTTP; Wed, 23 Nov 2011 10:12:30 -0800 (PST) Date: Wed, 23 Nov 2011 13:12:30 -0500 Message-ID: Subject: Scan for keyword From: Joey Daughtery To: accumulo-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0015176f051afecac604b26adcf1 X-Virus-Checked: Checked by ClamAV on apache.org --0015176f051afecac604b26adcf1 Content-Type: text/plain; charset=ISO-8859-1 All I am new to Accumulo. I have figured out how to store the data, load all based on scanning with new Range(), and loading a specific row based on new Range(id). However, if I want to locate a row that has a specific value, I am not sure how to approach this programmatically. Can someone give me some insight on how to do such a scan? Also, I have seen several examples of how to populate the Mutation object. Specifically, I see: mut.put(new Text("column"), new Text("NAME"), timestamp, new Value("John"); OR mut.put(new Text("NAME"), new Text("John"), timestamp, new Value("John); Could someone indicate which is the correct way to store the data or indicate why one would use one approach over the other? Thanks Joe --0015176f051afecac604b26adcf1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable All
I am new to Accumulo.=A0 I have figured out how to store the data,= =20 load all based on scanning with new Range(), and loading a specific row=20 based on new Range(id).=A0 However, if I want to locate a row that has a=20 specific value, I am not sure how to approach this programmatically.=A0=20 Can someone give me some insight on how to do such a scan?

Also, I have seen several examples of how to populate the Mutation obje= ct.=A0 Specifically, I see:
mut.put(new Text("column"), new Te= xt("NAME"), timestamp, new Value("John");

OR
mut.put(new Text("NAME"), new Text("John"), timestamp, = new Value("John);

Could someone indicate which is the correct w= ay to store the data or indicate why one would use one approach over the ot= her?

Thanks

Joe --0015176f051afecac604b26adcf1--