accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Turner <ke...@deenlo.com>
Subject Re: Rapidly updating Accumulo Rows
Date Wed, 08 Oct 2014 00:36:38 GMT
are you adding conditional mutations to a batch writer?

On Tue, Oct 7, 2014 at 6:29 PM, Jeff N <mastergeek505@gmail.com> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message