Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A4AE17577 for ; Tue, 7 Oct 2014 22:30:12 +0000 (UTC) Received: (qmail 3558 invoked by uid 500); 7 Oct 2014 22:30:11 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 3511 invoked by uid 500); 7 Oct 2014 22:30:11 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 3500 invoked by uid 99); 7 Oct 2014 22:30:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 22:30:11 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of mastergeek505@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 22:30:06 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XbdGM-00024w-4B for dev@accumulo.apache.org; Tue, 07 Oct 2014 15:29:46 -0700 Date: Tue, 7 Oct 2014 15:29:46 -0700 (PDT) From: Jeff N To: dev@accumulo.apache.org Message-ID: <1412720986113-11648.post@n5.nabble.com> In-Reply-To: References: <1412713640094-11646.post@n5.nabble.com> Subject: Re: Rapidly updating Accumulo Rows MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Roughly speaking: ConditionalMutation m = new ConditionalMutation(new Text("id")); m.put("fam".getBytes(), "qual".getBytes(), Timestamp, ColumnVis, serializeInt(0)); //condition is a regex that checks that the value isn't serializeInt(0); batch.addMutation(m); batch.flush(); for(int i = 1; i < 7; i++) { **scan to get ** deserialize the value and print m.put("fam".getBytes(), "qual".getBytes(), Timestamp, ColumnVis, serializeInt(i)); //update condition to make sure the value isn't serializeInt(i) batch.addMutation(m); batch.flush(); } And like I said, the scan pulls out the wrong value. Thoughts? Thanks, Jeff N. ----- -- View this message in context: http://apache-accumulo.1065345.n5.nabble.com/Rapidly-updating-Accumulo-Rows-tp11646p11648.html Sent from the Developers mailing list archive at Nabble.com.