Example usage for com.mongodb DBCursor getCollection

List of usage examples for com.mongodb DBCursor getCollection

Introduction

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

Prototype

public DBCollection getCollection() 

Source Link

Document

Gets the collection.

Usage

From source file:com.effektif.mongo.LoggingCursor.java

License:Apache License

public LoggingCursor(MongoCollection mongoCollection, DBCursor cursor) {
    super(cursor.getCollection(), cursor.getQuery(), cursor.getKeysWanted(), cursor.getReadPreference());
    this.mongoCollection = mongoCollection;
    this.cursor = cursor;
}