Example usage for com.mongodb DBCollection getCollection

List of usage examples for com.mongodb DBCollection getCollection

Introduction

In this page you can find the example usage for com.mongodb DBCollection getCollection.

Prototype

public DBCollection getCollection(final String name) 

Source Link

Document

Find a collection that is prefixed with this collection's name.

Usage

From source file:v7db.files.mongodb.Vermongo.java

License:Open Source License

/**
 * @return the shadow collection wherein the old versions of documents are
 *         stored/*from  w  w  w.  j a va 2  s.  c om*/
 */
static DBCollection getShadowCollection(DBCollection c) {
    return c.getCollection("vermongo");
}