Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-3346

Add projections to MongoDb IO

Details

    Description

      The db.collection.find operation for MongoDb allows for the filter parameter, but not for the projection parameter. This would be extremely helpful for retrieving only a portion of fat documents. Looking over the current java code for MongoDbIO, this looks pretty straightforward.

      I think the best approach would be to add a String withProjection method to the builder, similar to the withFilter method, then parse this to Bson and then append it to the find method with .projection(fields(projectionBson)).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              makosten@me.com Michael Kosten
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified