Package | Description |
---|---|
com.mongodb |
The core mongodb package
|
com.mongodb.gridfs |
Contains the classes for supporting MongoDB's specification for storing very large files, GridFS.
|
Modifier and Type | Field and Description |
---|---|
private DBCollection |
MapReduceOutput.collection |
private DBCollection |
DBDecoderAdapter.collection |
private DBCollection |
DBCursor.collection |
private DBCollection |
BulkWriteOperation.collection |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentHashMap<java.lang.String,DBCollection> |
DB.collectionCache |
Modifier and Type | Method and Description |
---|---|
DBCollection |
MongoURI.connectCollection(DB db)
Deprecated.
Returns the URI's Collection from a given DB object.
|
DBCollection |
MongoURI.connectCollection(Mongo mongo)
Deprecated.
Returns the URI's Collection from a given Mongo instance
|
DBCollection |
DB.createCollection(java.lang.String collectionName,
DBObject options)
Creates a collection with a given name and options.
|
DBCollection |
DB.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends DBObject> pipeline)
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
|
DBCollection |
DB.createView(java.lang.String viewName,
java.lang.String viewOn,
java.util.List<? extends DBObject> pipeline,
DBCreateViewOptions options)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
|
protected DBCollection |
DB.doGetCollection(java.lang.String name)
Gets a collection with a given name.
|
DBCollection |
DBCursor.getCollection()
Gets the collection.
|
DBCollection |
DBCollection.getCollection(java.lang.String name)
Find a collection that is prefixed with this collection's name.
|
DBCollection |
DB.getCollection(java.lang.String name)
Gets a collection with a given name.
|
DBCollection |
DB.getCollectionFromString(java.lang.String collectionName)
Returns a collection matching a given string.
|
private DBCollection |
DBCollection.getMapReduceOutputCollection(MapReduceCommand command) |
DBCollection |
MapReduceOutput.getOutputCollection()
Gets the collection that holds the results (Will return null if results are Inline).
|
DBCollection |
DBCollection.rename(java.lang.String newName)
Change the name of an existing collection.
|
DBCollection |
DBCollection.rename(java.lang.String newName,
boolean dropTarget)
Change the name of an existing collection.
|
Modifier and Type | Method and Description |
---|---|
DBCallback |
DBCallbackFactory.create(DBCollection collection)
Creates a DBCallback for the given collection.
|
DBObject |
LazyDBDecoder.decode(byte[] bytes,
DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(byte[] bytes,
DBCollection collection) |
DBObject |
DBDecoder.decode(byte[] bytes,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given array of bytes.
|
DBObject |
LazyDBDecoder.decode(java.io.InputStream input,
DBCollection collection) |
DBObject |
DefaultDBDecoder.decode(java.io.InputStream input,
DBCollection collection) |
DBObject |
DBDecoder.decode(java.io.InputStream input,
DBCollection collection)
Decode a single DBObject belonging to the given collection from the given input stream.
|
DBCallback |
LazyDBDecoder.getDBCallback(DBCollection collection) |
DBCallback |
DefaultDBDecoder.getDBCallback(DBCollection collection) |
DBCallback |
DBDecoder.getDBCallback(DBCollection collection)
Get a callback for the given collection.
|
Constructor and Description |
---|
BulkWriteOperation(boolean ordered,
DBCollection collection) |
DBCursor(DBCollection collection,
DBObject filter,
DBCollectionFindOptions findOptions) |
DBCursor(DBCollection collection,
DBObject filter,
DBCollectionFindOptions findOptions,
OperationExecutor executor,
DBDecoderFactory decoderFactory,
Decoder<DBObject> decoder) |
DBCursor(DBCollection collection,
DBObject query,
DBObject fields,
ReadPreference readPreference)
Initializes a new database cursor.
|
DBDecoderAdapter(DBDecoder decoder,
DBCollection collection,
BufferProvider bufferProvider) |
DefaultDBCallback(DBCollection collection)
Creates a new DefaultDBCallback.
|
GroupCommand(DBCollection collection,
DBObject keys,
DBObject condition,
DBObject initial,
java.lang.String reduce,
java.lang.String finalize)
Creates a new group command.
|
GroupCommand(DBCollection collection,
DBObject keys,
DBObject condition,
DBObject initial,
java.lang.String reduce,
java.lang.String finalize,
Collation collation)
Creates a new group command.
|
GroupCommand(DBCollection collection,
java.lang.String keyf,
DBObject condition,
DBObject initial,
java.lang.String reduce,
java.lang.String finalize)
Creates a new group command.
|
GroupCommand(DBCollection collection,
java.lang.String keyf,
DBObject condition,
DBObject initial,
java.lang.String reduce,
java.lang.String finalize,
Collation collation)
Creates a new group command.
|
LazyDBCallback(DBCollection collection)
Construct an instance.
|
MapReduceCommand(DBCollection inputCollection,
java.lang.String map,
java.lang.String reduce,
java.lang.String outputCollection,
MapReduceCommand.OutputType type,
DBObject query)
Represents the command for a map reduce operation Runs the command in REPLACE output type to a named collection
|
MapReduceOutput(DBObject command,
DBCursor resultsFromCollection,
MapReduceStatistics mapReduceStatistics,
DBCollection outputCollection)
Constructor for use when the map reduce output was put into a collection
|
Modifier and Type | Field and Description |
---|---|
private DBCollection |
GridFS.chunksCollection |
private DBCollection |
GridFS.filesCollection |
Modifier and Type | Method and Description |
---|---|
protected DBCollection |
GridFS.getChunksCollection()
Gets the
DBCollection in which the binary chunks are stored. |
protected DBCollection |
GridFS.getFilesCollection()
Gets the
DBCollection in which the file's metadata is stored. |