accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Elser <josh.el...@gmail.com>
Subject Re: Rapidly updating Accumulo Rows
Date Tue, 07 Oct 2014 22:37:53 GMT
Not off the top of my head, but something I have that I can run to test 
it out myself is a good start :)

Thanks for the snippet.

Jeff N wrote:
> 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<Key, Value>** 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.

Mime
View raw message