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

Lexicoder decode(byte[], offset, length) into public API

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: client
    • Labels:
      None

      Description

      I'm interested in calling decodeUnchecked(byte[], off, len) as public API, since it removes the need to copy a subarray out from a larger array. Currently the method sits in the AbstractEncoder class and is protected.

      There was a discussion on ACCUULO-2817 to make decodeUnchecked public and add it to the Lexicoder interface. The discussion involved a debate on binary compatibility and semvar. I can't tell what the resolution was.

      One option is to create a new interface extending Lexicoder with the new method decodeUnchecked. It would maintain binary compatibility, at the cost of adding another interface that exists only for binary compatibility reasons. A few other options were suggested.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                shutchis Shana Hutchison
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: