You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2017/12/14 09:06:00 UTC

[jira] [Assigned] (BEAM-3346) Add projections to MongoDb IO

     [ https://issues.apache.org/jira/browse/BEAM-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré reassigned BEAM-3346:
------------------------------------------

    Assignee: Jean-Baptiste Onofré  (was: Reuven Lax)

> Add projections to MongoDb IO
> -----------------------------
>
>                 Key: BEAM-3346
>                 URL: https://issues.apache.org/jira/browse/BEAM-3346
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-extensions
>    Affects Versions: 2.3.0
>            Reporter: Michael Kosten
>            Assignee: Jean-Baptiste Onofré
>              Labels: I/O, Java, MongoDB
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> 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)).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)