beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Kosten (JIRA)" <>
Subject [jira] [Created] (BEAM-3346) Add projections to MongoDb IO
Date Wed, 13 Dec 2017 22:48:00 GMT
Michael Kosten created BEAM-3346:

             Summary: Add projections to MongoDb IO
                 Key: BEAM-3346
             Project: Beam
          Issue Type: New Feature
          Components: sdk-java-extensions
    Affects Versions: 2.3.0
            Reporter: Michael Kosten
            Assignee: Reuven Lax

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

This message was sent by Atlassian JIRA

View raw message