コード例 #1
0
 /**
  * @deprecated use {@link #getCollectionWithAuth(MongoClientURI, MongoClientURI)} instead
  * @param authURI the URI with which to authenticate
  * @param uri the MongoDB URI
  * @return the authenticated DBCollection
  */
 @Deprecated
 public static DBCollection getCollectionWithAuth(final MongoURI uri, final MongoURI authURI) {
   return getCollectionWithAuth(
       new MongoClientURI(uri.toString()), new MongoClientURI(authURI.toString()));
 }
コード例 #2
0
 /**
  * @deprecated use {@link #setMongoURI(Configuration, String, MongoClientURI)} instead
  * @param conf the Configuration
  * @param key the key for the setting
  * @param value the value for the setting
  */
 @Deprecated
 public static void setMongoURI(final Configuration conf, final String key, final MongoURI value) {
   conf.set(key, value.toString()); // todo - verify you can toString a
   // URI object
 }
コード例 #3
0
 /**
  * @deprecated use {@link #getCollection(MongoClientURI)}
  * @param uri the MongoDB URI
  * @return the DBCollection in the URI
  */
 @Deprecated
 public static DBCollection getCollection(final MongoURI uri) {
   return getCollection(new MongoClientURI(uri.toString()));
 }