Re: [mongodb-user] MongoURI - collection?

92 views
Skip to first unread message

Scott Hernandez

unread,
Jul 24, 2012, 8:57:21 AM7/24/12
to mongod...@googlegroups.com
The Uri is for connecting to a server and is used to return a Mongo
instance. From there you need to get the DB and Collection normally
through the Mongo instance.

Those collection related methods are going to be deprecated and are
not part of the (mongo) URI connection string.

On Tue, Jul 24, 2012 at 5:29 AM, Jonas <jo8...@gmail.com> wrote:
> Hello.
>
> I am using the Java driver and the MongoURI class. I am confused, it seems
> to me that there is a method to get the collection name. But there is no way
> to choose the collection in the URI string? If there is, could someone give
> me an example.
>
> http://api.mongodb.org/java/2.8.0/com/mongodb/MongoURI.html#getCollection()
>
> Thank you!
> /Jonas
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb

Jonas

unread,
Jul 24, 2012, 9:07:53 AM7/24/12
to mongod...@googlegroups.com
Thank you for the speedy response!

Bryan Absher

unread,
Aug 13, 2012, 4:24:58 PM8/13/12
to mongod...@googlegroups.com
On what time frame are they going to be deprecated? Are they going to be replaced with something else?

Scott Hernandez

unread,
Aug 13, 2012, 4:37:20 PM8/13/12
to mongod...@googlegroups.com
Are you asking because of hadoop, or for some other reason? It will
probably be another version or so; so not too soon.

We need to add this support in the hadoop adapter or some up with a
new config schema there.
Reply all
Reply to author
Forward
0 new messages