Accumulo
  1. Accumulo
  2. ACCUMULO-2589 Create new client API
  3. ACCUMULO-2445

API should use collection-of-bytes representation instead of Text

    Details

    • Type: Sub-task Sub-task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.1, 1.6.0
    • Fix Version/s: 2.0.0
    • Component/s: client
    • Labels:
      None

      Description

      Right now we use Text as a container for bytes rather than as a UTF8 representation of a string. This results in some gymnastics when people wish to use byte sequences that are not valid UTF8 (see ACCUMULO-2437).

      We should use some representation of plain bytes (ideally byte[] or ByteBuffer) and deprecate the use of Text so we can remove it later.

        Activity

        Christopher Tubbs made changes -
        Assignee Christopher Tubbs [ ctubbsii ]
        Hide
        Christopher Tubbs added a comment -

        After using ByteBuffer a bit, I think it is extremely unfriendly to work with. I'm leaning towards something a bit simpler, more like our current ByteSequence. Of course, making it easily convertible to/from ByteBuffer would be helpful, so I'd want to do that. What do you guys think?

        Show
        Christopher Tubbs added a comment - After using ByteBuffer a bit, I think it is extremely unfriendly to work with. I'm leaning towards something a bit simpler, more like our current ByteSequence. Of course, making it easily convertible to/from ByteBuffer would be helpful, so I'd want to do that. What do you guys think?
        Christopher Tubbs made changes -
        Fix Version/s 2.0.0 [ 12328852 ]
        Fix Version/s 1.8.0 [ 12329879 ]
        Josh Elser made changes -
        Fix Version/s 1.8.0 [ 12329879 ]
        Fix Version/s 1.7.0 [ 12324607 ]
        Hide
        John Vines added a comment -

        +1 ByteBuffer

        Show
        John Vines added a comment - +1 ByteBuffer
        Hide
        Sean Busbey added a comment -

        Strong preference given for ByteBuffer

        Show
        Sean Busbey added a comment - Strong preference given for ByteBuffer
        Christopher Tubbs made changes -
        Field Original Value New Value
        Parent ACCUMULO-2589 [ 12704353 ]
        Issue Type Improvement [ 4 ] Sub-task [ 7 ]
        Sean Busbey created issue -

          People

          • Assignee:
            Christopher Tubbs
            Reporter:
            Sean Busbey
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development