Fixes #243 Tuples should no longer be squashed in the event store

I was pretty sure i was wrapping it with a new HashMap because of that.

On Wed, Nov 26, 2014 at 2:01 PM, eawagner <notifications@github.com> wrote:

> In
> commons/src/main/java/org/calrissian/accumulorecipes/commons/support/qfd/QfdHelper.java:
>
> >
> > -    public TypeRegistry<String> getTypeRegistry() {
> > -        return typeRegistry;
> > +  private static Function<Map<String,Object>, Map<String,Object>> removeVisFunction =
> > +      new Function<Map<String,Object>,Map<String,Object>>() {
> > +    @Override
> > +    public Map<String,Object> apply(Map<String,Object> stringObjectMap) {
> > +      stringObjectMap.remove(VISIBILITY);
>
> This would actually throw a UnsupportedOperationException if actually
> called. Tuple metadata returns an unmodifiable map to keep it immutable.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/calrissian/accumulo-recipes/pull/244/files#r20956152>.
>