Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4376

Introduce a Builders for "data" classes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: client
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                melrief Mario Pastorelli
                Reporter:
                elserj Josh Elser
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 21h 50m
                  21h 50m