Subject: [mongodb-user] Re: Is it possible to set a
projection with MongoConfigUtil in the same manner
of setting a query?



Is there a way to also set a projection on the query, so less data would have to be transferred over the net?

Hi Asaf,

It’s been a while since you posted this question, have you found the answer yet ?

You can try with com.mongodb.hadoop.util.MongoConfigUtil setFields() to specify a projection document for documents retrieved from MongoDB.

If this doesn’t answer your question, please provide:

  • The version of mongo-hadoop connector
  • Snippet code example that you use to define the query.

Regards,
Wan.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: https://docs.mongodb.com/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/...

group/mongodb-user
.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/cd61a412-39bc-437e-a397-9d9e4f84e32d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting