accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <>
Subject [jira] [Resolved] (ACCUMULO-4376) Introduce a Builders for "data" classes
Date Thu, 08 Sep 2016 02:26:20 GMT


Josh Elser resolved ACCUMULO-4376.
    Resolution: Fixed

Thanks for the pull-request, [~melrief]. This was a lot of great effort on your part; it's
greatly appreciated. This is a great API addition for users.

> Introduce a Builders for "data" classes
> ---------------------------------------
>                 Key: ACCUMULO-4376
>                 URL:
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: client
>            Reporter: Josh Elser
>            Assignee: Mario Pastorelli
>             Fix For: 2.0.0
>          Time Spent: 13h 50m
>  Remaining Estimate: 0h
> In looking at ACCUMULO-4375, I was a little frustrated at how we have 3x constructors
than Key really provides just to support {{byte[]}}, {{Text}}, and {{CharSequence}} arguments.
Additionally, the {{copy}} argument forces the user to use the most specific (most arguments)
constructor if they want to avoid the copy. This makes constructing a Key from just a row
while avoiding a copy very pedantic.
> I think a KeyBuilder (or KeyFactory) class would be a big usability benefit and reduce
the amount of code that clients have to write to most efficiently construct Keys.

This message was sent by Atlassian JIRA

View raw message