Examples of dropIndexes()


Examples of com.mongodb.DBCollection.dropIndexes()

                String className = classIter.next();
                AbstractClassMetaData cmd = getMetaDataManager().getMetaDataForClass(className, clr);
                if (cmd != null)
                {
                    DBCollection collection = db.getCollection(MongoDBUtils.getCollectionName(cmd));
                    collection.dropIndexes();
                    collection.drop();
                }
            }
        }
        finally
View Full Code Here

Examples of com.mongodb.DBCollection.dropIndexes()

          if (types.contains(Struct.COLLECTION)) {
            collection.drop();
            LOGGER.debug("Dropping collection '{}' for DB '{}'. ", collectionName, db.getName());
          } else if (types.contains(Struct.INDEX)) {
            collection.dropIndexes();
            LOGGER.debug("Dropping indexes in collection '{}' for DB '{}'. ", collectionName, db.getName());
          }
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.