accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-4062) Change MutationSet.mutations to use HashSet
Date Thu, 19 Nov 2015 20:48:11 GMT


Josh Elser commented on ACCUMULO-4062:

As far as I understand it, I believe that's the case. Would be easy to check.

I'd imagine that'd be the common case we run into (inadvertently sending equivalent mutations,
than purely "equal" mutations). Maybe there's sort of trick we could play with Mutation to
make it efficient and smarter in terms of equivalence? I haven't thought about this at all,
but it would be a very neat algorithm. I wonder if HBase or Cassandra have anything like that.

> Change MutationSet.mutations to use HashSet
> -------------------------------------------
>                 Key: ACCUMULO-4062
>                 URL:
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>            Reporter: Dave Marion
> Change TabletServerBatchWriter.MutationSet.mutations from a
> {code}
>   HashMap<String,List<Mutation>>
> {code}
> to
> {code}
>   HashMap<String,HashSet<Mutation>>
> {code}
> so that duplicate mutations added by a client are not sent to the server.

This message was sent by Atlassian JIRA

View raw message