Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3794

Allow to access BinData binary value from MR

    XMLWordPrintable

    Details

      Description

      Synopsis: please add BinData.getBytes() to be able to deal with BinData value easily from MR

      Currently the only way to access the value from a BinData object in your javascript map/reduce job seems to call base64() and decode the value using a custom js function. This is especially inconvenient in cases where you have certain fields packed in your _id (such as customerId, year, month, day in my case) and want to mask out parts of the _id to derive a new key for MR. This would be really easy to do if there was a BinData.getBytes() function returning an array of numbers.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-platform Backlog - Platform Team
              Reporter:
              s.podkowinski Stefan Podkowinski
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated: