[
https://issues.apache.org/jira/browse/BEAM-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ismaël Mejía resolved BEAM-3346.
--------------------------------
Resolution: Duplicate
Assignee: (was: Jean-Baptiste Onofré)
Fix Version/s: 2.10.0
> Add projections to MongoDb IO
> -----------------------------
>
> Key: BEAM-3346
> URL: https://issues.apache.org/jira/browse/BEAM-3346
> Project: Beam
> Issue Type: New Feature
> Components: io-java-mongodb
> Affects Versions: 2.3.0
> Reporter: Michael Kosten
> Priority: Major
> Labels: I/O, Java, MongoDB
> Fix For: 2.10.0
>
> 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
(v7.6.3#76005)