- call(DB, DBCollection, OutMessage, ServerAddress, DBDecoder) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a read operation on the database
- call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a read operation on the database
- call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a read operation on the database
- call(DB, DBCollection, OutMessage, ServerAddress, DBDecoder) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- callGetLastError() - Method in class com.mongodb.WriteConcern
-
Returns whether "getlasterror" should be called (w > 0)
- CENTER - Static variable in class com.mongodb.QueryOperators
-
- CENTER_SPHERE - Static variable in class com.mongodb.QueryOperators
-
- checkReadOnly(boolean) - Method in class com.mongodb.DBCollection
-
- ClassMap<T> - Class in org.bson.util
-
Maps Class objects to values.
- ClassMap() - Constructor for class org.bson.util.ClassMap
-
- clean() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
Removes any null objects from the bag.
- cleanCursors(boolean) - Method in class com.mongodb.DB
-
- cleanCursors(boolean) - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- cleanup(DBPort) - Method in class com.mongodb.DBPortPool
-
Deprecated.
- cleanup(T) - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Override this if you need to do any cleanup
- clear() - Method in class com.mongodb.util.FastStack
-
Deprecated.
- clear() - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- clear() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
Removes all object from the bag.
- clear() - Method in class org.bson.LazyBSONList
-
- clear() - Method in class org.bson.util.ClassMap
-
As per java.util.Map
, removes all of the mappings from this map (optional operation).
- clear() - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- clearAllHooks() - Static method in class org.bson.BSON
-
Remove all decoding and encoding hooks for all classes.
- clearDecodingHooks() - Static method in class org.bson.BSON
-
Clears all decoding hooks.
- clearEncodingHooks() - Static method in class org.bson.BSON
-
Clears all encoding hooks.
- clearStatus() - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- clearStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- CLI - Class in com.mongodb.gridfs
-
a simple CLI for Gridfs
- CLI() - Constructor for class com.mongodb.gridfs.CLI
-
- close() - Method in interface com.mongodb.Cursor
-
Terminates this cursor on the server.
- close() - Method in class com.mongodb.DBCursor
-
- close() - Method in class com.mongodb.DBPort
-
Deprecated.
closes the underlying connection and streams
- close() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- close() - Method in class com.mongodb.Mongo
-
Closes the underlying connector, which in turn closes all open connections.
- close() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Clears the pool of all objects.
- CODE - Static variable in class org.bson.BSON
-
- Code - Class in org.bson.types
-
For using the Code type.
- Code(String) - Constructor for class org.bson.types.Code
-
Construct a new instance with the given code.
- CODE_W_SCOPE - Static variable in class org.bson.BSON
-
- CodeWScope - Class in org.bson.types
-
A representation of the JavaScript Code with Scope BSON type.
- CodeWScope(String, BSONObject) - Constructor for class org.bson.types.CodeWScope
-
Construct an instance.
- collectionExists(String) - Method in class com.mongodb.DB
-
Checks to see if a collection with a given name exists on a server.
- com.mongodb - package com.mongodb
-
Main package with core files.
- com.mongodb.gridfs - package com.mongodb.gridfs
-
GridFS tools.
- com.mongodb.tools - package com.mongodb.tools
-
- com.mongodb.util - package com.mongodb.util
-
Package containing misc utils.
- command(DBObject) - Method in class com.mongodb.DB
-
Executes a database command.
- command(DBObject, DBEncoder) - Method in class com.mongodb.DB
-
Executes a database command.
- command(DBObject, int, DBEncoder) - Method in class com.mongodb.DB
-
- command(DBObject, int, ReadPreference) - Method in class com.mongodb.DB
-
- command(DBObject, int, ReadPreference, DBEncoder) - Method in class com.mongodb.DB
-
- command(DBObject, ReadPreference, DBEncoder) - Method in class com.mongodb.DB
-
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
- command(DBObject, int) - Method in class com.mongodb.DB
-
- command(DBObject, ReadPreference) - Method in class com.mongodb.DB
-
Executes the command against the database with the given read preference.
- command(String) - Method in class com.mongodb.DB
-
Executes a database command.
- command(String, int) - Method in class com.mongodb.DB
-
- command(String, ReadPreference) - Method in class com.mongodb.DB
-
Executes a database command.
- CommandFailureException - Exception in com.mongodb
-
- CommandFailureException(CommandResult) - Constructor for exception com.mongodb.CommandFailureException
-
- CommandResult - Class in com.mongodb
-
A simple wrapper to hold the result of a command.
- comment(String) - Method in class com.mongodb.DBCursor
-
Adds a comment to the query to identify queries in the database profiler output.
- COMMENT - Static variable in class com.mongodb.QueryOperators
-
- compareTo(BSONTimestamp) - Method in class org.bson.types.BSONTimestamp
-
- compareTo(ObjectId) - Method in class org.bson.types.ObjectId
-
- connect(DBAddress) - Static method in class com.mongodb.Mongo
-
- connect(MongoURI) - Method in class com.mongodb.Mongo.Holder
-
- connect(MongoClientURI) - Method in class com.mongodb.Mongo.Holder
-
Attempts to find an existing MongoClient instance matching that URI in the holder, and returns it if exists.
- connect() - Method in class com.mongodb.MongoURI
-
Creates a Mongo instance based on the URI.
- connectCollection(DB) - Method in class com.mongodb.MongoURI
-
Returns the URI's Collection from a given DB object.
- connectCollection(Mongo) - Method in class com.mongodb.MongoURI
-
Returns the URI's Collection from a given Mongo instance
- connectDB() - Method in class com.mongodb.MongoURI
-
Returns the DB object from a newly created Mongo instance based on this URI.
- connectDB(Mongo) - Method in class com.mongodb.MongoURI
-
Returns the URI's DB object from a given Mongo instance.
- ConnectionPoolStat - Class in com.mongodb.tools
-
- ConnectionPoolStat(MBeanServerConnection) - Constructor for class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
Use the given MBean server connection to access statistics for connection pools.
- ConnectionPoolStat() - Constructor for class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
Use the platform MBean server.
- ConnectionPoolStatisticsBean - Class in com.mongodb.util
-
- ConnectionPoolStatisticsBean(int, int, InUseConnectionBean[]) - Constructor for class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
- ConnectionPoolStatisticsMBean - Interface in com.mongodb
-
A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.
- connectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the maximum number of connections per host.
- connectionsPerHost - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The maximum number of connections allowed per host for this Mongo instance.
- connectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the connection timeout.
- connectTimeout - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The connection timeout in milliseconds.
- contains(T) - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- contains(T) - Method in class com.mongodb.util.WeakBag
-
Deprecated.
- contains(Object) - Method in class org.bson.LazyBSONList
-
- contains(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- contains(Object) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- containsAll(TagSet) - Method in class com.mongodb.TagSet
-
Returns true if this tag set contains all of the elements of the specified tag set.
- containsAll(Collection) - Method in class org.bson.LazyBSONList
-
- containsAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- containsAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- containsField(String) - Method in class com.mongodb.gridfs.GridFSFile
-
- containsField(String) - Method in class com.mongodb.LazyWriteableDBObject
-
Deprecated.
- containsField(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- containsField(String) - Method in class com.mongodb.ReflectionDBObject
-
- containsField(String) - Method in class org.bson.BasicBSONObject
-
Checks if this object contains a given field
- containsField(String) - Method in interface org.bson.BSONObject
-
Checks if this object contains a field with the given name.
- containsField(String) - Method in class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- containsField(String) - Method in class org.bson.LazyBSONObject
-
- containsField(String) - Method in class org.bson.types.BasicBSONList
-
- containsKey(String) - Method in class com.mongodb.gridfs.GridFSFile
-
Deprecated.
- containsKey(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- containsKey(String) - Method in class com.mongodb.ReflectionDBObject
-
Deprecated.
- containsKey(String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
Deprecated.
- containsKey(String) - Method in class org.bson.BasicBSONObject
-
Deprecated.
- containsKey(String) - Method in interface org.bson.BSONObject
-
- containsKey(String) - Method in class org.bson.LazyBSONObject
-
Deprecated.
- containsKey(String) - Method in class org.bson.types.BasicBSONList
-
Deprecated.
- continueOnError(boolean) - Method in class com.mongodb.InsertOptions
-
Set whether documents will continue to be inserted after a failure to insert one.
- continueOnError(boolean) - Method in class com.mongodb.WriteConcern
-
- continueOnErrorForInsert(boolean) - Method in class com.mongodb.WriteConcern
-
- copy() - Method in class com.mongodb.BasicDBList
-
Copies this instance into a new Object.
- copy() - Method in class com.mongodb.BasicDBObject
-
Creates a new instance which is a copy of this BasicDBObject.
- copy() - Method in class com.mongodb.DBCursor
-
Creates a copy of an existing database cursor.
- copy() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- count() - Method in class com.mongodb.DBCollection
-
Get the number of documents in the collection.
- count(DBObject) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- count(DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- count() - Method in class com.mongodb.DBCursor
-
Counts the number of objects matching the query.
- create(DBCollection) - Method in interface com.mongodb.DBCallbackFactory
-
Creates a DBCallback for the given collection.
- create() - Method in interface com.mongodb.DBDecoderFactory
-
Creates an instance.
- create() - Method in interface com.mongodb.DBEncoderFactory
-
Creates an instance.
- create() - Method in class com.mongodb.DefaultDBCallback
-
- create(boolean, List<String>) - Method in class com.mongodb.DefaultDBCallback
-
- create() - Method in class com.mongodb.util.JSONCallback
-
- create() - Method in class org.bson.BasicBSONCallback
-
Factory method for creating a new BSONObject.
- create(boolean, List<String>) - Method in class org.bson.BasicBSONCallback
-
Helper method to create either a BSON Object or a BSON List depending upon whether the array
parameter is true or not.
- createArray(byte[], int) - Method in class com.mongodb.LazyDBCallback
-
- createArray(byte[], int) - Method in class org.bson.LazyBSONCallback
-
Create a LazyBSONList
from the given bytes starting from the given offset.
- createBSONCallback() - Method in class org.bson.BasicBSONCallback
-
- createBSONCallback() - Method in interface org.bson.BSONCallback
-
Factory method for BSONCallbacks.
- createBSONCallback() - Method in class org.bson.EmptyBSONCallback
-
- createChunk(Object, int, byte[]) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Creates a new chunk of this file.
- createCollection(String, DBObject) - Method in class com.mongodb.DB
-
Creates a collection with a given name and options.
- createCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance with an unspecified mechanism.
- createDBRef(String, ObjectId) - Method in class com.mongodb.LazyDBCallback
-
- createDBRef(String, ObjectId) - Method in class org.bson.LazyBSONCallback
-
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).
- createFile(byte[]) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(File) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream, boolean) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream, String) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream, String, boolean) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(String) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile() - Method in class com.mongodb.gridfs.GridFS
-
- createFromLegacyFormat(int, int, int) - Static method in class org.bson.types.ObjectId
-
Creates an ObjectId using time, machine and inc values.
- createGSSAPICredential(String) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
- createIndex(String) - Method in class com.mongodb.DBCollection
-
Forces creation of an ascending index on a field with the default options.
- createIndex(DBObject) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields with the default options, if one does not already exist.
- createIndex(DBObject, DBObject) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields, if one does not already exist.
- createIndex(DBObject, String) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields, if one does not already exist.
- createIndex(DBObject, String, boolean) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields, if one does not already exist.
- createIndex(DBObject, DBObject, DBEncoder) - Method in class com.mongodb.DBCollection
-
- createList() - Method in class com.mongodb.util.JSONCallback
-
- createList() - Method in class org.bson.BasicBSONCallback
-
Factory method for creating a new BSON List.
- createMongoCRCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
- createMongoX509Credential(String) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the MongoDB X.509 protocol.
- createNew() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- createNew() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Creates a new object of this pool's type.
- createNew() - Method in class com.mongodb.util.StringBuilderPool
-
Deprecated.
Create a new string builder.
- createNew() - Method in class org.bson.util.SimplePool
-
Deprecated.
- createObject(byte[], int) - Method in class com.mongodb.LazyDBCallback
-
- createObject(byte[], int) - Method in class com.mongodb.LazyWriteableDBCallback
-
Deprecated.
- createObject(byte[], int) - Method in class org.bson.LazyBSONCallback
-
Create a LazyBSONObject
instance from the given bytes starting from the given offset.
- createPlainCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the PLAIN SASL mechanism.
- createScramSha1Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
- cur() - Method in class org.bson.BasicBSONCallback
-
Gets the current value
- curName() - Method in class org.bson.BasicBSONCallback
-
Gets the name of the current field
- curr() - Method in class com.mongodb.DBCursor
-
Returns the element the cursor is at.
- Cursor - Interface in com.mongodb
-
Interface for providing consistent behaviour between different Cursor implementations.
- cursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets whether cursor finalizers are enabled.
- cursorFinalizerEnabled - Variable in class com.mongodb.MongoOptions
-
Deprecated.
Sets whether there is a a finalize method created that cleans up instances of DBCursor that the client
does not close.
- CursorNotFound(long, ServerAddress) - Constructor for exception com.mongodb.MongoException.CursorNotFound
-
Deprecated.
- genIndexName(DBObject) - Static method in class com.mongodb.DBCollection
-
- get() - Method in class com.mongodb.BasicDBObjectBuilder
-
Gets the top level document.
- get() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- get(String) - Method in class com.mongodb.gridfs.GridFSFile
-
- get(String) - Method in class com.mongodb.LazyWriteableDBObject
-
Deprecated.
- get() - Method in class com.mongodb.QueryBuilder
-
Creates a DBObject
query to be used for the driver's find operations
- get(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- get(String) - Method in class com.mongodb.ReflectionDBObject
-
- get(ReflectionDBObject, String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
Gets the value for the given field from the given document.
- get(int) - Method in class com.mongodb.util.FastStack
-
Deprecated.
- get() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Gets an object from the pool - will block if none are available
- get(long) - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Gets an object from the pool - will block if none are available
- get() - Method in class org.bson.BasicBSONCallback
-
- get(String) - Method in class org.bson.BasicBSONObject
-
Gets a value from this object
- get() - Method in interface org.bson.BSONCallback
-
Returns the finished top-level Document.
- get(String) - Method in interface org.bson.BSONObject
-
Gets a field from this object by a given name.
- get() - Method in class org.bson.EmptyBSONCallback
-
- get(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- get(byte[], int, int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- get(byte[]) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- get(String) - Method in class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- get() - Method in class org.bson.LazyBSONCallback
-
- get(int) - Method in class org.bson.LazyBSONList
-
- get(String) - Method in class org.bson.LazyBSONObject
-
- get(String) - Method in class org.bson.types.BasicBSONList
-
Gets a value at an index.
- get() - Static method in class org.bson.types.ObjectId
-
Gets a new object id.
- get(Object) - Method in class org.bson.util.ClassMap
-
Gets the value associated with either this Class or a superclass of this class.
- get() - Method in class org.bson.util.SimplePool
-
Deprecated.
- get_id() - Method in class com.mongodb.ReflectionDBObject
-
Gets the _id
- getAcceptableLatencyDifference() - Method in class com.mongodb.MongoClientOptions
-
- getAddress() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getAddress() - Method in class com.mongodb.Mongo
-
Gets the address of the current master
- getAliases() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the aliases from the metadata.
- getAll() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
- getAllAddress() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Gets the list of seed server addresses
- getAllAddress() - Method in class com.mongodb.Mongo
-
Gets a list of all server addresses used when this Mongo was created
- getAllowDiskUse() - Method in class com.mongodb.AggregationOptions
-
If true, this enables external sort capabilities, otherwise $sort produces an error if the operation consumes 10 percent or more of
RAM.
- getAncestry(Class<T>) - Static method in class org.bson.util.ClassMap
-
Helper method that walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list.
- getAvailable() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getBatchSize() - Method in class com.mongodb.AggregationOptions
-
The size of batches to use when iterating over results.
- getBatchSize() - Method in class com.mongodb.DBCursor
-
Gets the batch size.
- getBatchSize() - Method in class com.mongodb.ParallelScanOptions
-
Gets the batch size to use for each cursor.
- getBoolean(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a boolean.
- getBoolean(String, boolean) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a boolean
- getBSONSize() - Method in class org.bson.LazyBSONObject
-
Gets the size in bytes of the BSON document.
- getBucketName() - Method in class com.mongodb.gridfs.GridFS
-
Gets the bucket name used in the collection's namespace.
- getBypassDocumentValidation() - Method in class com.mongodb.AggregationOptions
-
Gets whether to bypass document validation, or null if unspecified.
- getBypassDocumentValidation() - Method in class com.mongodb.BulkWriteOperation
-
Gets whether to bypass document validation, or null if unspecified.
- getBypassDocumentValidation() - Method in class com.mongodb.InsertOptions
-
Gets whether to bypass document validation, or null if unspecified.
- getBypassDocumentValidation() - Method in class com.mongodb.MapReduceCommand
-
Gets whether to bypass document validation, or null if unspecified.
- getBytes() - Method in class org.bson.LazyBSONObject
-
- getCachedLastError() - Method in class com.mongodb.WriteResult
-
- getCheckedOutCount() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the count of connections that are currently in use.
- getChunksCollection() - Method in class com.mongodb.gridfs.GridFS
-
Gets the
DBCollection
in which the binary chunks are stored.
- getChunkSize() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the size of a chunk.
- getCode() - Method in class com.mongodb.BulkWriteError
-
Gets the code associated with this error.
- getCode() - Method in exception com.mongodb.MongoException
-
Gets the exception code
- getCode() - Method in class com.mongodb.ServerError
-
Deprecated.
Gets the error code
- getCode() - Method in class com.mongodb.WriteConcernError
-
Gets the code associated with this error.
- getCode() - Method in class org.bson.types.Code
-
Get the Javascript code.
- getCollection(String) - Method in class com.mongodb.DB
-
Gets a collection with a given name.
- getCollection(String) - Method in class com.mongodb.DBCollection
-
Find a collection that is prefixed with this collection's name.
- getCollection() - Method in class com.mongodb.DBCursor
-
Gets the collection.
- getCollection() - Method in class com.mongodb.MongoClientURI
-
Gets the collection name
- getCollection() - Method in class com.mongodb.MongoURI
-
Gets the collection name.
- getCollectionFromString(String) - Method in class com.mongodb.DB
-
Returns a collection matching a given string.
- getCollectionName() - Method in class com.mongodb.DBRefBase
-
Deprecated.
Gets the name of the collection in which the referenced document is stored.
- getCollectionName() - Method in class com.mongodb.MapReduceOutput
-
Get the name of the collection that the results of the map reduce were saved into.
- getCollectionNames() - Method in class com.mongodb.DB
-
Returns a set containing the names of all collections in this database.
- getCollectionNames() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- getCommand() - Method in class com.mongodb.AggregationOutput
-
- getCommand() - Method in class com.mongodb.MapReduceOutput
-
Get the original command that was sent to the database.
- getCommand() - Method in class com.mongodb.WriteConcern
-
- getCommandResult() - Method in class com.mongodb.AggregationOutput
-
- getCommandResult() - Method in exception com.mongodb.CommandFailureException
-
- getCommandResult() - Method in class com.mongodb.MapReduceOutput
-
- getCommandResult() - Method in exception com.mongodb.WriteConcernException
-
- getConnectionsPerHost() - Method in class com.mongodb.MongoClientOptions
-
The maximum number of connections allowed per host for this MongoClient instance.
- getConnectionsPerHost() - Method in class com.mongodb.MongoOptions
-
Deprecated.
Gets the maximum number of connections allowed per host for this Mongo instance.
- getConnector() - Method in class com.mongodb.Mongo
-
- getConnectPoint() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getConnectPoint() - Method in class com.mongodb.Mongo
-
Gets a String
representation of current connection point, i.e.
- getConnectTimeout() - Method in class com.mongodb.MongoClientOptions
-
The connection timeout in milliseconds.
- getConnectTimeout() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getContentType() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the content type.
- getContinueOnError() - Method in class com.mongodb.WriteConcern
-
- getContinueOnErrorForInsert() - Method in class com.mongodb.WriteConcern
-
- getCount() - Method in class com.mongodb.DBCollection
-
Get the count of documents in a collection.
- getCount(ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in a collection.
- getCount(DBObject) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject, long, long) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject, long, long, ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCredentials() - Method in class com.mongodb.MongoClientURI
-
Gets the credentials.
- getCredentials() - Method in class com.mongodb.MongoURI
-
Gets the credentials.
- getCredentialsList() - Method in class com.mongodb.MongoClient
-
Gets the list of credentials that this client authenticates all connections with
- getCString(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getCurrentCounter() - Static method in class org.bson.types.ObjectId
-
Gets the current value of the auto-incrementing counter.
- getCurrentInc() - Static method in class org.bson.types.ObjectId
-
- getCursorId() - Method in interface com.mongodb.Cursor
-
Gets the server's identifier for this Cursor.
- getCursorId() - Method in class com.mongodb.DBCursor
-
- getCursorId() - Method in exception com.mongodb.MongoCursorNotFoundException
-
Get the cursor id that wasn't found.
- getData() - Method in class org.bson.types.Binary
-
Get a copy of the binary value.
- getDatabase() - Method in class com.mongodb.MongoClientURI
-
Gets the database name
- getDatabase() - Method in class com.mongodb.MongoURI
-
Gets the database name.
- getDatabaseName() - Method in class com.mongodb.MapReduceOutput
-
Get the name of the database that the results of the map reduce were saved into.
- getDatabaseNames() - Method in class com.mongodb.Mongo
-
Gets a list of the names of all databases on the connected server.
- getDate(String) - Method in class org.bson.BasicBSONObject
-
Returns the date or null if not set.
- getDate(String, Date) - Method in class org.bson.BasicBSONObject
-
Returns the date or def if not set.
- getDate() - Method in class org.bson.types.ObjectId
-
Gets the timestamp as a Date
instance.
- getDB() - Method in class com.mongodb.DBCollection
-
Returns the database this collection is a member of.
- getDB() - Method in class com.mongodb.DBRefBase
-
- getDB() - Method in class com.mongodb.gridfs.GridFS
-
Gets the database used.
- getDB(String) - Method in class com.mongodb.Mongo
-
Gets a database object from this MongoDB instance.
- getDBCallback(DBCollection) - Method in interface com.mongodb.DBDecoder
-
Get a callback for the given collection.
- getDBCallback(DBCollection) - Method in class com.mongodb.DefaultDBDecoder
-
- getDBCallback(DBCollection) - Method in class com.mongodb.LazyDBDecoder
-
- getDBCallback(DBCollection) - Method in class com.mongodb.LazyWriteableDBDecoder
-
Deprecated.
- getDBDecoderFactory() - Method in class com.mongodb.DBCollection
-
Get the decoder factory for this collection.
- getDbDecoderFactory() - Method in class com.mongodb.MongoClientOptions
-
Override the decoder factory.
- getDbDecoderFactory() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getDbEncoder() - Method in class com.mongodb.InsertOptions
-
The encoder to use for the documents.
- getDBEncoderFactory() - Method in class com.mongodb.DBCollection
-
Get the encoder factory for this collection.
- getDbEncoderFactory() - Method in class com.mongodb.MongoClientOptions
-
Override the encoder factory.
- getDbEncoderFactory() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getDBName() - Method in class com.mongodb.DBAddress
-
Gets the database name
- getDBPortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Gets the DBPortPool associated with a ServerAddress.
- getDecoderFactory() - Method in class com.mongodb.DBCursor
-
Gets the decoder factory that creates the decoder this cursor will use to decode objects from MongoDB.
- getDecodingHooks(Class) - Static method in class org.bson.BSON
-
Returns the decoding hook(s) associated with the specific class
- getDescription() - Method in class com.mongodb.MongoClientOptions
-
Gets the description for this MongoClient, which is used in various places like logging and JMX.
- getDescription() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getDetails() - Method in class com.mongodb.BulkWriteError
-
Gets the details associated with this error.
- getDetails() - Method in class com.mongodb.WriteConcernError
-
Gets the details associated with this error.
- getDouble(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a double
.
- getDouble(String, double) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an double
.
- getDuration() - Method in class com.mongodb.MapReduceOutput
-
Get the amount of time, in milliseconds, that it took to run this map reduce.
- getDurationMS() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getElementBSONSize(int) - Method in class org.bson.LazyBSONObject
-
- getElementType(int) - Method in class org.bson.LazyBSONObject
-
- getElementValue(LazyBSONObject.ElementRecord) - Method in class org.bson.LazyBSONObject
-
- getEmitCount() - Method in class com.mongodb.MapReduceOutput
-
Get the number of messages emitted from the provided map function.
- getEncodingHooks(Class<?>) - Static method in class org.bson.BSON
-
Returns the encoding hook(s) associated with the specified class.
- getError() - Method in class com.mongodb.ServerError
-
Deprecated.
Gets the error String
- getError() - Method in class com.mongodb.WriteResult
-
- getErrorCode() - Method in exception com.mongodb.MongoCommandException
-
Gets the error code associated with the command failure.
- getErrorCode() - Method in exception org.bson.BSONException
-
Returns the error code.
- getErrorMessage() - Method in class com.mongodb.CommandResult
-
Gets the error message associated with a failed command.
- getErrorMessage() - Method in exception com.mongodb.MongoCommandException
-
Gets the error message associated with the command failure.
- getErrorMessage() - Method in exception com.mongodb.WriteConcernException
-
Gets the error message associated with the write failure.
- getException() - Method in class com.mongodb.CommandResult
-
Utility method to create an exception from a failed command.
- getExtraOptions() - Method in class com.mongodb.MapReduceCommand
-
- getField(String) - Method in class com.mongodb.WriteResult
-
- getFileList() - Method in class com.mongodb.gridfs.GridFS
-
Gets the list of files stored in this gridfs, sorted by filename.
- getFileList(DBObject) - Method in class com.mongodb.gridfs.GridFS
-
Gets a filtered list of files stored in this gridfs, sorted by filename.
- getFileList(DBObject, DBObject) - Method in class com.mongodb.gridfs.GridFS
-
Gets a sorted, filtered list of files stored in this gridfs.
- getFilename() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the filename.
- getFilesCollection() - Method in class com.mongodb.gridfs.GridFS
-
Gets the
DBCollection
in which the file's metadata is stored.
- getFinalize() - Method in class com.mongodb.MapReduceCommand
-
Gets the Finalize JS Function
- getFsync() - Method in class com.mongodb.WriteConcern
-
Gets the fsync flag (fsync to disk on the server)
- getFullName() - Method in class com.mongodb.DBCollection
-
Get the full name of a collection, with the database name as a prefix.
- getGeneration() - Method in class com.mongodb.DBPort
-
Deprecated.
Gets the generation of this connection.
- getGenMachineId() - Static method in class org.bson.types.ObjectId
-
Deprecated.
- getGridFS() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the GridFS associated with this file
- getHeartbeatConnectRetryFrequency() - Method in class com.mongodb.MongoClientOptions
-
- getHeartbeatConnectTimeout() - Method in class com.mongodb.MongoClientOptions
-
Gets the connect timeout for connections used for the cluster heartbeat.
- getHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
-
Gets the heartbeat frequency.
- getHeartbeatSocketTimeout() - Method in class com.mongodb.MongoClientOptions
-
Gets the socket timeout for connections used for the cluster heartbeat.
- getHeartbeatThreadCount() - Method in class com.mongodb.MongoClientOptions
-
- getHintFields() - Method in class com.mongodb.DBCollection
-
Get hint fields for this collection (used to optimize queries).
- getHost() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the host that this connection pool is connecting to.
- getHost() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- getHost() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the host that this connection pool is connecting to.
- getHost() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the host that this connection pool is connecting to.
- getHost() - Method in class com.mongodb.ServerAddress
-
Gets the hostname
- getHosts() - Method in class com.mongodb.MongoClientURI
-
Gets the list of hosts
- getHosts() - Method in class com.mongodb.MongoURI
-
Gets the list of hosts.
- getId() - Method in class com.mongodb.BulkWriteUpsert
-
Gets the id of the upserted item.
- getId() - Method in class com.mongodb.DBPointer
-
Deprecated.
- getId() - Method in class com.mongodb.DBRefBase
-
Deprecated.
Gets the _id of the referenced document
- getId() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the id.
- getInc() - Method in class org.bson.types.BSONTimestamp
-
Gets the increment value.
- getInc() - Method in class org.bson.types.ObjectId
-
- getIndex() - Method in class com.mongodb.BulkWriteError
-
The index of the item in the bulk write operation with this error.
- getIndex() - Method in class com.mongodb.BulkWriteUpsert
-
Gets the index of the upserted item based on the order it was added to the bulk write operation.
- getIndexInfo() - Method in class com.mongodb.DBCollection
-
Return a list of the indexes for this collection.
- getInput() - Method in class com.mongodb.MapReduceCommand
-
Get the name of the collection the MapReduce will read from
- getInputCount() - Method in class com.mongodb.MapReduceOutput
-
Get the number of documents that were input into the map reduce operation
- getInputStream() - Method in class com.mongodb.gridfs.GridFSDBFile
-
Returns an InputStream from which data can be read.
- getInsertedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents inserted by the write operation.
- getInt(String, int) - Method in class com.mongodb.util.OptionMap
-
Deprecated.
- getInt(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an int
.
- getInt(String, int) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an int
.
- getInt(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
Gets a Little Endian Integer
- getIntBE(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getInternalClass(String) - Method in class com.mongodb.DBCollection
-
Gets the internal class for the given path in the document hierarchy
- getIntLE(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getInUse() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the number of pool members that are currently in use.
- getInUse() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
Gets the number of pool members that are currently in use.
- getInUse() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getInUseConnections() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
Gets an array of beans describing all the connections that are currently in use.
- getJ() - Method in class com.mongodb.WriteConcern
-
Gets the j parameter (journal syncing)
- getJsMode() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) JavaScript mode
- getKeysWanted() - Method in class com.mongodb.DBCursor
-
Gets the fields to be returned.
- getLastConcern() - Method in class com.mongodb.WriteResult
-
- getLastError() - Method in class com.mongodb.DB
-
- getLastError(WriteConcern) - Method in class com.mongodb.DB
-
- getLastError(int, int, boolean) - Method in class com.mongodb.DB
-
- getLastError() - Method in class com.mongodb.WriteResult
-
- getLastError(WriteConcern) - Method in class com.mongodb.WriteResult
-
- getLastUsedAt() - Method in class com.mongodb.DBPort
-
Deprecated.
Returns the time at which this connection was last used, or Long.MAX_VALUE
if it has not yet been used.
- getLegacy() - Static method in class com.mongodb.util.JSONSerializers
-
Returns an
ObjectSerializer
that mostly conforms to the strict JSON format defined in
extended JSON, but with a few differences to keep
compatibility with previous versions of the driver.
- getLength() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the file's length.
- getLimit() - Method in class com.mongodb.DBCursor
-
Gets the query limit.
- getLimit() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) limit on input
- getLocalPort() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getLocalThreshold() - Method in class com.mongodb.MongoClientOptions
-
Gets the local threshold.
- getLong(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a long
.
- getLong(String, long) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an long
.
- getLong(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getMachine() - Method in class org.bson.types.ObjectId
-
- getMajorVersion() - Static method in class com.mongodb.Mongo
-
- getMap() - Method in class com.mongodb.MapReduceCommand
-
Get the map function, as a JS String
- getMaster() - Method in class com.mongodb.ReplicaSetStatus
-
Gets the ServerAddress of the master server in this replica set.
- getMatchedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents matched by updates or replacements in the write operation.
- getMax() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoClientOptions
-
- getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoOptions
-
- getMaxBsonObjectSize() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Gets the maximum size for a BSON object supported by the current master server.
- getMaxBsonObjectSize() - Method in class com.mongodb.Mongo
-
Gets the maximum size for a BSON object supported by the current master server.
- getMaxBsonObjectSize() - Method in class com.mongodb.ReplicaSetStatus
-
Gets the maximum size for a BSON object supported by the current master server.
- getMaxConnectionIdleTime() - Method in class com.mongodb.MongoClientOptions
-
The maximum idle time of a pooled connection.
- getMaxConnectionLifeTime() - Method in class com.mongodb.MongoClientOptions
-
The maximum life time of a pooled connection.
- getMaxSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the maximum allowed size of the pool, including idle and in-use members.
- getMaxSize() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the maximum allowed size of the pool, including idle and in-use members.
- getMaxSize() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the maximum allowed size of the pool, including idle and in-use members.
- getMaxSize() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getMaxTime(TimeUnit) - Method in class com.mongodb.AggregationOptions
-
Gets the maximum execution time for the aggregation command.
- getMaxTime(TimeUnit) - Method in class com.mongodb.MapReduceCommand
-
Gets the max execution time for this command, in the given time unit.
- getMaxWaitTime() - Method in class com.mongodb.MongoClientOptions
-
The maximum wait time in milliseconds that a thread may wait for a connection to become available.
- getMaxWaitTime() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getMD5() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the observed MD5 during transfer
- getMechanism() - Method in class com.mongodb.MongoCredential
-
Gets the mechanism
- getMechanismProperty(String, T) - Method in class com.mongodb.MongoCredential
-
Get the value of the given key to a mechanism property, or defaultValue if there is no mapping.
- getMessage() - Method in class com.mongodb.BulkWriteError
-
Gets the message associated with this error.
- getMessage() - Method in exception com.mongodb.util.JSONParseException
-
- getMessage() - Method in class com.mongodb.WriteConcernError
-
Gets the message associated with this error.
- getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the file metadata.
- getMinConnectionsPerHost() - Method in class com.mongodb.MongoClientOptions
-
The minimum number of connections per host for this MongoClient instance.
- getMinHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
-
Gets the minimum heartbeat frequency.
- getMinorVersion() - Static method in class com.mongodb.Mongo
-
- getMinSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the minimum allowed size of the pool, including idle and in-use members.
- getModifiedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents modified by the write operation.
- getMongo() - Method in class com.mongodb.DB
-
Gets the Mongo instance
- getMongoClientOptions() - Method in class com.mongodb.MongoClient
-
- getMongoOptions() - Method in class com.mongodb.Mongo
-
- getN() - Method in class com.mongodb.WriteResult
-
Gets the "n" field, which contains the number of documents
affected in the write operation.
- getName() - Method in class com.mongodb.DB
-
Returns the name of this database.
- getName() - Method in class com.mongodb.DBCollection
-
Get the name of a collection.
- getName() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the name of the pool.
- getName() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the name of the pool.
- getName() - Method in class com.mongodb.ReadPreference
-
The name of this read preference.
- getName() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- getName() - Method in class com.mongodb.ReplicaSetStatus
-
Get the name of the replica set.
- getName() - Method in class com.mongodb.Tag
-
Gets the name of the replica set tag.
- getName() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getNamespace() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getNumCursors() - Method in class com.mongodb.ParallelScanOptions
-
Gets the number of cursors requested.
- getNumDocuments() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getObjectClass() - Method in class com.mongodb.DBCollection
-
Gets the default class for objects in the collection
- getObjectId(String) - Method in class org.bson.BasicBSONObject
-
Returns the object id or null if not set.
- getObjectId(String, ObjectId) - Method in class org.bson.BasicBSONObject
-
Returns the object id or def if not set.
- getOffset() - Method in class org.bson.LazyBSONObject
-
- getOpCode() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getOpenedAt() - Method in class com.mongodb.DBPort
-
Deprecated.
Returns the time at which this connection was opened, or Long.MAX_VALUE
if it has not yet been opened.
- getOption(String) - Method in class com.mongodb.util.Args
-
Deprecated.
- getOptions() - Method in class com.mongodb.DB
-
Gets the default query options
- getOptions() - Method in class com.mongodb.DBCollection
-
Gets the default query options
- getOptions() - Method in class com.mongodb.DBCursor
-
Gets the query options.
- getOptions() - Method in class com.mongodb.Mongo
-
Gets the default query options
- getOptions() - Method in class com.mongodb.MongoClientURI
-
Gets the options
- getOptions() - Method in class com.mongodb.MongoURI
-
Gets the options.
- getOutputBuffer() - Method in class org.bson.BasicBSONEncoder
-
Gets the buffer the BSON is being encoded into.
- getOutputCollection() - Method in class com.mongodb.MapReduceOutput
-
Gets the collection that holds the results (Will return null if results are Inline).
- getOutputCount() - Method in class com.mongodb.MapReduceOutput
-
Get the number of documents generated as a result of this map reduce
- getOutputDB() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) database name where the output collection should reside
- getOutputMode() - Method in class com.mongodb.AggregationOptions
-
The mode of output for this configuration.
- getOutputStream() - Method in class com.mongodb.gridfs.GridFSInputFile
-
After retrieving this
OutputStream
, this object will be capable of accepting successively written data to the output
stream.
- getOutputTarget() - Method in class com.mongodb.MapReduceCommand
-
Gets the output target (name of collection to save to) This value is nullable only if OutputType is set to INLINE
- getOutputType() - Method in class com.mongodb.MapReduceCommand
-
Gets the OutputType for this instance.
- getPassword() - Method in class com.mongodb.MongoClientURI
-
Gets the password
- getPassword() - Method in class com.mongodb.MongoCredential
-
Gets the password.
- getPassword() - Method in class com.mongodb.MongoURI
-
Gets the password.
- getPool() - Method in class com.mongodb.DBPort
-
Deprecated.
Gets the pool that this port belongs to.
- getPort() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the port that this connection pool is connecting to.
- getPort() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- getPort() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the port that this connection pool is connecting to.
- getPort() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the port that this connection pool is connecting to.
- getPort() - Method in class com.mongodb.ServerAddress
-
Gets the port number
- getPos() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- getPosition() - Method in class org.bson.io.BasicOutputBuffer
-
- getPosition() - Method in class org.bson.io.OutputBuffer
-
Gets the current position in the stream.
- getPosition() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- getPreviousError() - Method in class com.mongodb.DB
-
- getQuery() - Method in class com.mongodb.DBCursor
-
Gets the query.
- getQuery() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getQuery() - Method in class com.mongodb.MapReduceCommand
-
Gets the query to run for this MapReduce job
- getRaw() - Method in class com.mongodb.MapReduceOutput
-
- getReadPreference() - Method in class com.mongodb.DB
-
Gets the read preference for this database.
- getReadPreference() - Method in class com.mongodb.DBCollection
-
- getReadPreference() - Method in class com.mongodb.DBCursor
-
Gets the default read preference.
- getReadPreference() - Method in class com.mongodb.MapReduceCommand
-
Gets the read preference
- getReadPreference() - Method in class com.mongodb.Mongo
-
Gets the default read preference
- getReadPreference() - Method in class com.mongodb.MongoClientOptions
-
The read preference to use for queries, map-reduce, aggregation, and count.
- getReadPreference() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getReadPreference() - Method in class com.mongodb.ParallelScanOptions
-
Gets the read preference to use.
- getReduce() - Method in class com.mongodb.MapReduceCommand
-
Gets the reduce function, as a JS String
- getRef() - Method in class com.mongodb.DBRefBase
-
- getRemovedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents removed by the write operation.
- getReplicaSetStatus() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getReplicaSetStatus() - Method in class com.mongodb.Mongo
-
Get the status of the replica set cluster.
- getRequiredReplicaSetName() - Method in class com.mongodb.MongoClientOptions
-
Gets the required replica set name.
- getRequiredReplicaSetName() - Method in class com.mongodb.MongoOptions
-
Deprecated.
Gets the required replica set name that this client should be connecting to.
- getScope() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) JavaScript scope
- getScope() - Method in class org.bson.types.CodeWScope
-
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
- getServerAddress() - Method in exception com.mongodb.BulkWriteException
-
The address of the server which performed the bulk write operation.
- getServerAddress() - Method in interface com.mongodb.Cursor
-
Gets the address of the server that data is pulled from.
- getServerAddress() - Method in class com.mongodb.DBCursor
-
Gets the Server Address of the server that data is pulled from.
- getServerAddress() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- getServerAddress() - Method in exception com.mongodb.MongoCommandException
-
Gets the address of the server that this command failed on.
- getServerAddress() - Method in exception com.mongodb.MongoCursorNotFoundException
-
The server address where the cursor is.
- getServerAddress() - Method in exception com.mongodb.WriteConcernException
-
Gets the address of the server that the write executed on.
- getServerAddressList() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Gets the list of server addresses currently seen by the connector.
- getServerAddressList() - Method in class com.mongodb.Mongo
-
Gets the list of server addresses currently seen by this client.
- getServerUsed() - Method in class com.mongodb.AggregationOutput
-
- getServerUsed() - Method in class com.mongodb.CommandResult
-
- getServerUsed() - Method in class com.mongodb.MapReduceOutput
-
- getSister(String) - Method in class com.mongodb.DBAddress
-
Creates a DBAddress pointing to a different database on the same server.
- getSisterDB(String) - Method in class com.mongodb.DB
-
Gets another database on same server
- getSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the current size of the pool, including idle and and in-use members.
- getSizes() - Method in class com.mongodb.DBCursor
-
- getSocketAddress() - Method in class com.mongodb.ServerAddress
-
Gets the underlying socket address
- getSocketFactory() - Method in class com.mongodb.MongoClientOptions
-
The socket factory for creating sockets to the mongo server.
- getSocketFactory() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getSocketTimeout() - Method in class com.mongodb.MongoClientOptions
-
The socket timeout in milliseconds.
- getSocketTimeout() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getSort() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) sort specification object
- getSource() - Method in class com.mongodb.MongoCredential
-
Gets the source of the user name, typically the name of the database where the user is defined.
- getStatistics() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the statistics for this connection pool.
- getStats() - Method in class com.mongodb.DB
-
Helper method for calling a 'dbStats' command.
- getStats() - Method in class com.mongodb.DBCollection
-
The collStats command returns a variety of storage statistics for a given collection
- getStats() - Method in class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
Gets the statistics for all Mongo connection pools registered with the MBean server used
by this instance.
- getStatus() - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- getStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- getStrict() - Static method in class com.mongodb.util.JSONSerializers
-
Returns an
ObjectSerializer
that conforms to the strict JSON format defined in
extended JSON.
- getString(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a string
- getString(String, String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a string
- getSymbol() - Method in class org.bson.types.Symbol
-
Gets the symbol.
- getTags() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- getTagSetList() - Method in class com.mongodb.TaggableReadPreference
-
Gets the list of tag sets as a list of TagSet
instances.
- getTagSets() - Method in class com.mongodb.TaggableReadPreference
-
- getThreadName() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.MongoClientOptions
-
This multiplier, multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be waiting for a
connection to become available from the pool.
- getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.MongoOptions
-
Deprecated.
Gets the multiplier which, when multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be
waiting for a connection to become available from the pool.
- getTime() - Method in class org.bson.types.BSONTimestamp
-
Gets the time in seconds since epoch.
- getTime() - Method in class org.bson.types.ObjectId
-
- getTimeSecond() - Method in class org.bson.types.ObjectId
-
- getTimestamp() - Method in class org.bson.types.ObjectId
-
Gets the timestamp (number of seconds since the Unix epoch).
- getTotal() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the total number of pool members, including idle and and in-use members.
- getTotal() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
Gets the total number of pool members, including idle and and in-use members.
- getTotal() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getType(Object) - Static method in class com.mongodb.Bytes
-
Gets the type byte for a given object.
- getType() - Method in class org.bson.types.Binary
-
Get the binary sub type as a byte.
- getUploadDate() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the upload date.
- getUpsertedId() - Method in class com.mongodb.WriteResult
-
Gets the _id value of an upserted document that resulted from this write.
- getUpserts() - Method in class com.mongodb.BulkWriteResult
-
Gets an unmodifiable list of upserted items, or the empty list if there were none.
- getURI() - Method in class com.mongodb.MongoClientURI
-
Get the unparsed URI.
- getUsageCount() - Method in class com.mongodb.DBPort
-
Deprecated.
- getUsedDatabases() - Method in class com.mongodb.Mongo
-
Returns the list of databases used by the driver since this Mongo instance was created.
- getUsername() - Method in class com.mongodb.MongoClientURI
-
Gets the username
- getUserName() - Method in class com.mongodb.MongoCredential
-
Gets the user name
- getUsername() - Method in class com.mongodb.MongoURI
-
Gets the username.
- getUTF8String(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getValue() - Method in class com.mongodb.Tag
-
Gets the value of the replica set tag.
- getVersion() - Method in class com.mongodb.Mongo
-
- getW() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getW() - Method in class com.mongodb.WriteConcern
-
Gets the w parameter (the write strategy)
- getWaitQueueSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the size of the wait queue for a connection from this pool.
- getWObject() - Method in class com.mongodb.WriteConcern
-
Gets the w value (the write strategy)
- getWrapper(Class) - Static method in class com.mongodb.ReflectionDBObject
-
Returns an existing Wrapper instance associated with a class, or creates a new one.
- getWrapperIfReflectionObject(Class) - Static method in class com.mongodb.ReflectionDBObject
-
Returns the wrapper if this object can be assigned from this class.
- getWriteConcern() - Method in class com.mongodb.DB
-
Gets the write concern for this database.
- getWriteConcern() - Method in class com.mongodb.DBCollection
-
- getWriteConcern() - Method in class com.mongodb.InsertOptions
-
The write concern to use for the insertion.
- getWriteConcern() - Method in class com.mongodb.Mongo
-
Gets the default write concern
- getWriteConcern() - Method in class com.mongodb.MongoClientOptions
-
The write concern to use.
- getWriteConcern() - Method in class com.mongodb.MongoOptions
-
Deprecated.
Helper method to return the appropriate WriteConcern instance based on the current related options settings.
- getWriteConcernError() - Method in exception com.mongodb.BulkWriteException
-
The write concern error, which may be null (in which case the list of errors will not be empty).
- getWriteErrors() - Method in exception com.mongodb.BulkWriteException
-
The list of errors, which will not be null, but may be empty (if the write concern error is not null).
- getWriteResult() - Method in exception com.mongodb.BulkWriteException
-
The result of all successfully processed write operations.
- getWString() - Method in class com.mongodb.WriteConcern
-
Gets the w parameter (the write strategy) in String format
- getWtimeout() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getWtimeout() - Method in class com.mongodb.WriteConcern
-
Gets the write timeout (in milliseconds)
- gotBinary(String, byte, byte[]) - Method in class org.bson.BasicBSONCallback
-
- gotBinary(String, byte, byte[]) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a binary value.
- gotBinary(String, byte, byte[]) - Method in class org.bson.EmptyBSONCallback
-
- gotBinary(String, byte, byte[]) - Method in class org.bson.LazyBSONCallback
-
- gotBinaryArray(String, byte[]) - Method in class org.bson.BasicBSONCallback
-
Deprecated.
- gotBinaryArray(String, byte[]) - Method in interface org.bson.BSONCallback
-
Deprecated.
- gotBinaryArray(String, byte[]) - Method in class org.bson.EmptyBSONCallback
-
Deprecated.
- gotBoolean(String, boolean) - Method in class org.bson.BasicBSONCallback
-
- gotBoolean(String, boolean) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Boolean value.
- gotBoolean(String, boolean) - Method in class org.bson.EmptyBSONCallback
-
- gotCode(String, String) - Method in class org.bson.BasicBSONCallback
-
- gotCode(String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a JavaScript value.
- gotCode(String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotCodeWScope(String, String, Object) - Method in class org.bson.BasicBSONCallback
-
- gotCodeWScope(String, String, Object) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a JavaScript with Scope value.
- gotCodeWScope(String, String, Object) - Method in class org.bson.EmptyBSONCallback
-
- gotDate(String, long) - Method in class org.bson.BasicBSONCallback
-
- gotDate(String, long) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a DateTime value.
- gotDate(String, long) - Method in class org.bson.EmptyBSONCallback
-
- gotDBRef(String, String, ObjectId) - Method in class com.mongodb.DefaultDBCallback
-
- gotDBRef(String, String, ObjectId) - Method in class org.bson.BasicBSONCallback
-
- gotDBRef(String, String, ObjectId) - Method in interface org.bson.BSONCallback
-
Invoked when
BSONDecoder
encountered a DBPointer(0x0c) type field in a byte sequence.
- gotDBRef(String, String, ObjectId) - Method in class org.bson.EmptyBSONCallback
-
- gotDouble(String, double) - Method in class org.bson.BasicBSONCallback
-
- gotDouble(String, double) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Double value.
- gotDouble(String, double) - Method in class org.bson.EmptyBSONCallback
-
- gotInt(String, int) - Method in class org.bson.BasicBSONCallback
-
- gotInt(String, int) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an Int32 value.
- gotInt(String, int) - Method in class org.bson.EmptyBSONCallback
-
- gotLong(String, long) - Method in class org.bson.BasicBSONCallback
-
- gotLong(String, long) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an Int64 value.
- gotLong(String, long) - Method in class org.bson.EmptyBSONCallback
-
- gotMaxKey(String) - Method in class org.bson.BasicBSONCallback
-
- gotMaxKey(String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a MaxKey value.
- gotMaxKey(String) - Method in class org.bson.EmptyBSONCallback
-
- gotMinKey(String) - Method in class org.bson.BasicBSONCallback
-
- gotMinKey(String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a MinKey value.
- gotMinKey(String) - Method in class org.bson.EmptyBSONCallback
-
- gotNull(String) - Method in class org.bson.BasicBSONCallback
-
- gotNull(String) - Method in interface org.bson.BSONCallback
-
Called when reading a BSON field that exists but has a null value.
- gotNull(String) - Method in class org.bson.EmptyBSONCallback
-
- gotObjectId(String, ObjectId) - Method in class org.bson.BasicBSONCallback
-
- gotObjectId(String, ObjectId) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an ObjectID value.
- gotObjectId(String, ObjectId) - Method in class org.bson.EmptyBSONCallback
-
- gotRegex(String, String, String) - Method in class org.bson.BasicBSONCallback
-
- gotRegex(String, String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Regex value.
- gotRegex(String, String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotString(String, String) - Method in class org.bson.BasicBSONCallback
-
- gotString(String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a String value.
- gotString(String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotSymbol(String, String) - Method in class org.bson.BasicBSONCallback
-
- gotSymbol(String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Symbol value.
- gotSymbol(String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotTimestamp(String, int, int) - Method in class org.bson.BasicBSONCallback
-
- gotTimestamp(String, int, int) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Timestamp value.
- gotTimestamp(String, int, int) - Method in class org.bson.EmptyBSONCallback
-
- gotUndefined(String) - Method in class org.bson.BasicBSONCallback
-
- gotUndefined(String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an Undefined value.
- gotUndefined(String) - Method in class org.bson.EmptyBSONCallback
-
- gotUUID(String, long, long) - Method in class org.bson.BasicBSONCallback
-
- gotUUID(String, long, long) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a
UUID
value.
- gotUUID(String, long, long) - Method in class org.bson.EmptyBSONCallback
-
- greaterThan(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent to the $gt operator
- greaterThanEquals(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent to the $gte operator
- GridFS - Class in com.mongodb.gridfs
-
Implementation of GridFS - a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.
- GridFS(DB) - Constructor for class com.mongodb.gridfs.GridFS
-
Creates a GridFS instance for the default bucket "fs" in the given database.
- GridFS(DB, String) - Constructor for class com.mongodb.gridfs.GridFS
-
Creates a GridFS instance for the specified bucket in the given database.
- GridFSDBFile - Class in com.mongodb.gridfs
-
This class enables retrieving a GridFS file metadata and content.
- GridFSDBFile() - Constructor for class com.mongodb.gridfs.GridFSDBFile
-
- GridFSFile - Class in com.mongodb.gridfs
-
The abstract class representing a GridFS file.
- GridFSFile() - Constructor for class com.mongodb.gridfs.GridFSFile
-
- GridFSInputFile - Class in com.mongodb.gridfs
-
This class represents a GridFS file to be written to the database.
- GridFSInputFile(GridFS, InputStream, String, boolean) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
- GridFSInputFile(GridFS, InputStream, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
- GridFSInputFile(GridFS, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Constructor that only provides a file name, but does not rely on the presence of an
InputStream
.
- GridFSInputFile(GridFS) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Minimal constructor that does not rely on the presence of an
InputStream
.
- group(DBObject, DBObject, DBObject, String) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(DBObject, DBObject, DBObject, String, String) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(DBObject, DBObject, DBObject, String, String, ReadPreference) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(GroupCommand) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(GroupCommand, ReadPreference) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(DBObject) - Method in class com.mongodb.DBCollection
-
- GroupCommand - Class in com.mongodb
-
This class groups the argument for a group operation and can build the underlying command object
- GroupCommand(DBCollection, DBObject, DBObject, DBObject, String, String) - Constructor for class com.mongodb.GroupCommand
-
Creates a new group command.
- GroupCommand(DBCollection, String, DBObject, DBObject, String, String) - Constructor for class com.mongodb.GroupCommand
-
Creates a new group command.
- GSSAPI_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The GSSAPI mechanism.
- GT - Static variable in class com.mongodb.QueryOperators
-
- GTE - Static variable in class com.mongodb.QueryOperators
-
- main(String[]) - Static method in class com.mongodb.gridfs.CLI
-
- main(String[]) - Static method in class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
Command line interface for displaying connection pool stats.
- MAJOR_VERSION - Static variable in class com.mongodb.Mongo
-
- MAJORITY - Static variable in class com.mongodb.WriteConcern
-
Exceptions are raised for network issues, and server errors; waits on a majority of servers for the write operation.
- Majority() - Constructor for class com.mongodb.WriteConcern.Majority
-
Create a new Majority WriteConcern.
- Majority(int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern.Majority
-
Create a new WriteConcern with the given configuration.
- majorityWriteConcern(int, boolean, boolean) - Static method in class com.mongodb.WriteConcern
-
Create a Majority Write Concern that requires a majority of servers to acknowledge the write.
- mapReduce(String, String, String, DBObject) - Method in class com.mongodb.DBCollection
-
Allows you to run map-reduce aggregation operations over a collection.
- mapReduce(String, String, String, MapReduceCommand.OutputType, DBObject) - Method in class com.mongodb.DBCollection
-
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
- mapReduce(String, String, String, MapReduceCommand.OutputType, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
-
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
- mapReduce(MapReduceCommand) - Method in class com.mongodb.DBCollection
-
Allows you to run map-reduce aggregation operations over a collection and saves to a named collection.
- mapReduce(DBObject) - Method in class com.mongodb.DBCollection
-
- MapReduceCommand - Class in com.mongodb
-
This class groups the argument for a map/reduce operation and can build the underlying command object
- MapReduceCommand(DBCollection, String, String, String, MapReduceCommand.OutputType, DBObject) - Constructor for class com.mongodb.MapReduceCommand
-
Represents the command for a map reduce operation Runs the command in REPLACE output type to a named collection
- MapReduceCommand.OutputType - Enum in com.mongodb
-
Represents the different options available for outputting the results of a map-reduce operation.
- MapReduceOutput - Class in com.mongodb
-
Represents the result of a map/reduce operation.
- MapReduceOutput(DBCollection, DBObject, CommandResult) - Constructor for class com.mongodb.MapReduceOutput
-
- markAsPartialObject() - Method in class com.mongodb.BasicDBList
-
- markAsPartialObject() - Method in class com.mongodb.BasicDBObject
-
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
- markAsPartialObject() - Method in interface com.mongodb.DBObject
-
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
- markAsPartialObject() - Method in class com.mongodb.gridfs.GridFSFile
-
- markAsPartialObject() - Method in class com.mongodb.LazyDBObject
-
- markAsPartialObject() - Method in class com.mongodb.RawDBObject
-
Deprecated.
- markAsPartialObject() - Method in class com.mongodb.ReflectionDBObject
-
ReflectionDBObjects can't be partial.
- markAsPartialObject() - Method in class org.bson.LazyDBList
-
Deprecated.
- massageToObjectId(Object) - Static method in class org.bson.types.ObjectId
-
- max(DBObject) - Method in class com.mongodb.DBCursor
-
Specifies an exclusive upper limit for the index to use in a query.
- MAX - Static variable in class com.mongodb.QueryOperators
-
- MAX_CHUNKSIZE - Static variable in class com.mongodb.gridfs.GridFS
-
- MAX_DISTANCE - Static variable in class com.mongodb.QueryOperators
-
- MAX_SCAN - Static variable in class com.mongodb.QueryOperators
-
- maxAutoConnectRetryTime(long) - Method in class com.mongodb.MongoClientOptions.Builder
-
- maxAutoConnectRetryTime - Variable in class com.mongodb.MongoOptions
-
- maxConnectionIdleTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the maximum idle time for a pooled connection.
- maxConnectionLifeTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the maximum life time for a pooled connection.
- MAXKEY - Static variable in class org.bson.BSON
-
- MaxKey - Class in org.bson.types
-
Represent the maximum key value regardless of the key's type
- MaxKey() - Constructor for class org.bson.types.MaxKey
-
- maxScan(int) - Method in class com.mongodb.DBCursor
-
Limits the number of documents a cursor will return for a query.
- maxTime(long, TimeUnit) - Method in class com.mongodb.AggregationOptions.Builder
-
Sets the maximum execution time for the aggregation command.
- maxTime(long, TimeUnit) - Method in class com.mongodb.DBCursor
-
Set the maximum execution time for operations on this cursor.
- maxWaitTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the maximum time that a thread will block waiting for a connection.
- maxWaitTime - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The maximum wait time in milliseconds that a thread may wait for a connection to become available.
- md5() - Method in class org.bson.io.OutputBuffer
-
- memSize(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
-
Deprecated.
- min(DBObject) - Method in class com.mongodb.DBCursor
-
Specifies an inclusive lower limit for the index to use in a query.
- MIN - Static variable in class com.mongodb.QueryOperators
-
- minConnectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the minimum number of connections per host.
- minHeartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the minimum heartbeat frequency.
- MINKEY - Static variable in class org.bson.BSON
-
- MinKey - Class in org.bson.types
-
Represent the minimum key value regardless of the key's type
- MinKey() - Constructor for class org.bson.types.MinKey
-
- MINOR_VERSION - Static variable in class com.mongodb.Mongo
-
- mod(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $mod operand
- MOD - Static variable in class com.mongodb.QueryOperators
-
- Mongo - Class in com.mongodb
-
A database connection with internal connection pooling.
- Mongo() - Constructor for class com.mongodb.Mongo
-
- Mongo(String) - Constructor for class com.mongodb.Mongo
-
- Mongo(String, MongoOptions) - Constructor for class com.mongodb.Mongo
-
- Mongo(String, int) - Constructor for class com.mongodb.Mongo
-
- Mongo(ServerAddress) - Constructor for class com.mongodb.Mongo
-
- Mongo(ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
-
- Mongo(ServerAddress, ServerAddress) - Constructor for class com.mongodb.Mongo
-
Deprecated.
- Mongo(ServerAddress, ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
-
- Mongo(List<ServerAddress>) - Constructor for class com.mongodb.Mongo
-
- Mongo(List<ServerAddress>, MongoOptions) - Constructor for class com.mongodb.Mongo
-
- Mongo(MongoURI) - Constructor for class com.mongodb.Mongo
-
- Mongo.Holder - Class in com.mongodb
-
Mongo.Holder can be used as a static place to hold several instances of Mongo.
- MongoClient - Class in com.mongodb
-
A MongoDB client with internal connection pooling.
- MongoClient() - Constructor for class com.mongodb.MongoClient
-
Creates an instance based on a (single) mongodb node (localhost, default port).
- MongoClient(String) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo instance based on a (single) mongodb node.
- MongoClient(String, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo instance based on a (single) mongodb node (default port).
- MongoClient(String, int) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo instance based on a (single) mongodb node.
- MongoClient(ServerAddress) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo instance based on a (single) mongodb node
- MongoClient(ServerAddress, List<MongoCredential>) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo instance based on a (single) mongodb node and a list of credentials
- MongoClient(ServerAddress, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
- MongoClient(ServerAddress, List<MongoCredential>, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress and default options.
- MongoClient(List<ServerAddress>) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo based on a list of replica set members or a list of mongos.
- MongoClient(List<ServerAddress>, List<MongoCredential>) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo based on a list of replica set members or a list of mongos.
- MongoClient(List<ServerAddress>, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo based on a list of replica set members or a list of mongos.
- MongoClient(List<ServerAddress>, List<MongoCredential>, MongoClientOptions) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo based on a list of replica set members or a list of mongos.
- MongoClient(MongoClientURI) - Constructor for class com.mongodb.MongoClient
-
Creates a Mongo described by a URI.
- MongoClientException - Exception in com.mongodb
-
A base class for exceptions indicating a failure condition within the driver.
- MongoClientOptions - Class in com.mongodb
-
Various settings to control the behavior of a MongoClient
.
- MongoClientOptions.Builder - Class in com.mongodb
-
A builder for MongoClientOptions so that MongoClientOptions can be immutable, and to support easier construction through chaining.
- MongoClientURI - Class in com.mongodb
-
Represents a
URI
which can be used to create a MongoClient instance.
- MongoClientURI(String) - Constructor for class com.mongodb.MongoClientURI
-
Creates a MongoURI from the given string.
- MongoClientURI(String, MongoClientOptions.Builder) - Constructor for class com.mongodb.MongoClientURI
-
Creates a MongoURI from the given URI string, and MongoClientOptions.Builder.
- MongoCommandException - Exception in com.mongodb
-
An exception indicating that a command sent to a MongoDB server returned a failure.
- MongoCommandException(CommandResult) - Constructor for exception com.mongodb.MongoCommandException
-
- MongoConnectionPoolMXBean - Interface in com.mongodb
-
- MongoCredential - Class in com.mongodb
-
Represents credentials to authenticate to a mongo server, as well as the source of the credentials and
the authentication mechanism to use.
- MongoCursorNotFoundException - Exception in com.mongodb
-
- MONGODB_CR_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The MongoDB Challenge Response mechanism.
- MONGODB_PREFIX - Static variable in class com.mongodb.MongoURI
-
The prefix for mongodb URIs.
- MONGODB_X509_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The MongoDB X.509
- MongoException - Exception in com.mongodb
-
Top level Exception for all Exceptions, server-side or client-side, that come from the driver.
- MongoException(String) - Constructor for exception com.mongodb.MongoException
-
- MongoException(int, String) - Constructor for exception com.mongodb.MongoException
-
- MongoException(String, Throwable) - Constructor for exception com.mongodb.MongoException
-
- MongoException(int, String, Throwable) - Constructor for exception com.mongodb.MongoException
-
- MongoException(BSONObject) - Constructor for exception com.mongodb.MongoException
-
- MongoException.CursorNotFound - Exception in com.mongodb
-
- MongoException.DuplicateKey - Exception in com.mongodb
-
- MongoException.Network - Exception in com.mongodb
-
- MongoExecutionTimeoutException - Exception in com.mongodb
-
Exception indicating that the execution of the current operation timed outas a result of the maximum operation time being exceeded.
- MongoIncompatibleDriverException - Exception in com.mongodb
-
An exception indicating that this version of the driver is not compatible with at least one of the servers that it is currently
connected to.
- MongoInternalException - Exception in com.mongodb
-
A Mongo exception internal to the driver, not carrying any error code.
- MongoInternalException(String) - Constructor for exception com.mongodb.MongoInternalException
-
- MongoInternalException(String, Throwable) - Constructor for exception com.mongodb.MongoInternalException
-
- MongoInterruptedException - Exception in com.mongodb
-
A non-checked exception indicating that the driver has been interrupted by a call to Thread.interrupt.
- MongoInterruptedException(InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
-
Deprecated.
- MongoInterruptedException(String, InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
-
Deprecated.
- MongoOptions - Class in com.mongodb
-
- MongoOptions() - Constructor for class com.mongodb.MongoOptions
-
Deprecated.
- MongoOptions(MongoClientOptions) - Constructor for class com.mongodb.MongoOptions
-
- MongoServerSelectionException - Exception in com.mongodb
-
- MongoServerSelectionException(String) - Constructor for exception com.mongodb.MongoServerSelectionException
-
Deprecated.
- MongoSocketException - Exception in com.mongodb
-
- MongoTimeoutException - Exception in com.mongodb
-
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
- MongoURI - Class in com.mongodb
-
This class has been replaced by
MongoClientURI
, and the documentation has been moved to that class.
- MongoURI(String) - Constructor for class com.mongodb.MongoURI
-
- MongoURI(MongoClientURI) - Constructor for class com.mongodb.MongoURI
-
- MongoWaitQueueFullException - Exception in com.mongodb
-
An exception indicating that the queue for waiting for a pooled connection is full.
- MS_DAY - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- MS_HOUR - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- MS_MILLISECOND - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- MS_MINUTE - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- MS_MONTH - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- MS_SECOND - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- MS_WEEK - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- MS_YEAR - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- raiseNetworkErrors() - Method in class com.mongodb.WriteConcern
-
- RawDBObject - Class in com.mongodb
-
- read() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readCStr() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readDouble() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readFully(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
Reads bytes from the input stream and puts them into the given byte buffer.
- readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
-
Reads bytes from the input stream and puts them into the given byte buffer.
- readFully(InputStream, byte[], int, int) - Static method in class org.bson.io.Bits
-
Reads bytes from the input stream and puts them into the given byte buffer.
- readInt() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readInt(InputStream) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the input stream.
- readInt(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the input stream.
- readInt(byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the buffer.
- readInt(byte[], int) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the buffer.
- readIntBE() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readIntBE(byte[], int) - Static method in class org.bson.io.Bits
-
Reads and returns a single big-endian integer value
- readLong() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readLong(InputStream) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the input stream.
- readLong(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the input stream.
- readLong(byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the buffer.
- readLong(byte[], int) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the buffer.
- readObject(byte[]) - Method in class org.bson.BasicBSONDecoder
-
- readObject(InputStream) - Method in class org.bson.BasicBSONDecoder
-
- readObject(byte[]) - Method in interface org.bson.BSONDecoder
-
Read a single BSON object from the given bytes.
- readObject(InputStream) - Method in interface org.bson.BSONDecoder
-
Read a single BSON object from the given input stream.
- readObject(byte[]) - Method in class org.bson.LazyBSONDecoder
-
- readObject(InputStream) - Method in class org.bson.LazyBSONDecoder
-
- readObject(byte[]) - Method in class org.bson.NewBSONDecoder
-
Deprecated.
- readObject(InputStream) - Method in class org.bson.NewBSONDecoder
-
Deprecated.
- readPreference(ReadPreference) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the read preference.
- readPreference - Variable in class com.mongodb.MongoOptions
-
Deprecated.
Specifies the read preference.
- readPreference(ReadPreference) - Method in class com.mongodb.ParallelScanOptions.Builder
-
The read preference to use.
- ReadPreference - Class in com.mongodb
-
An abstract class that represents preferred replica set members to which a query or command can be sent.
- ReadPreference.TaggedReadPreference - Class in com.mongodb
-
- readUTF8String() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- REF - Static variable in class org.bson.BSON
-
- ReflectionDBObject - Class in com.mongodb
-
This class enables to map simple Class fields to a BSON object fields
- ReflectionDBObject() - Constructor for class com.mongodb.ReflectionDBObject
-
- ReflectionDBObject.JavaWrapper - Class in com.mongodb
-
Represents a wrapper around the DBObject to interface with the Class fields
- regex(Pattern) - Method in class com.mongodb.QueryBuilder
-
Passes a regular expression for a query
- REGEX - Static variable in class org.bson.BSON
-
- regexFlag(char) - Static method in class org.bson.BSON
-
Converts a regular expression modifier from the database into Java regular expression flags.
- regexFlags(String) - Static method in class org.bson.BSON
-
Converts a sequence of regular expression modifiers from the database into Java regular expression flags.
- regexFlags(int) - Static method in class org.bson.BSON
-
Converts Java regular expression flags into regular expression modifiers from the database.
- remove() - Method in class com.mongodb.BulkWriteRequestBuilder
-
Adds a request to remove all documents in the collection that match the query with which this builder was created.
- remove(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
-
Remove documents from a collection.
- remove(DBObject, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
-
Remove documents from a collection.
- remove(DBObject) - Method in class com.mongodb.DBCollection
-
Remove documents from a collection.
- remove() - Method in class com.mongodb.DBCursor
-
Not implemented.
- remove(ObjectId) - Method in class com.mongodb.gridfs.GridFS
-
Removes the file matching the given id.
- remove(String) - Method in class com.mongodb.gridfs.GridFS
-
Removes all files matching the given filename.
- remove(DBObject) - Method in class com.mongodb.gridfs.GridFS
-
Removes all files matching the given query.
- remove(T) - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- remove(T) - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- remove(T) - Method in class com.mongodb.util.WeakBag
-
Deprecated.
- remove() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
-
- remove(Object) - Method in class org.bson.LazyBSONList
-
- remove(int) - Method in class org.bson.LazyBSONList
-
- remove(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- remove(Object) - Method in class org.bson.util.ClassMap
-
As per java.util.Map
, removes the mapping for a key from this map if it is present
- remove(Object) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- removeall(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- removeAll(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- removeAll(Collection) - Method in class org.bson.LazyBSONList
-
- removeAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- removeDecodingHook(Class, Transformer) - Static method in class org.bson.BSON
-
Remove a specific encoding hook for a specific class.
- removeDecodingHooks(Class) - Static method in class org.bson.BSON
-
Remove all decoding hooks for a specific class.
- removeEncodingHook(Class, Transformer) - Static method in class org.bson.BSON
-
Remove a specific encoding hook for a specific class.
- removeEncodingHooks(Class) - Static method in class org.bson.BSON
-
Remove all encoding hooks for a specific class.
- removeField(String) - Method in class com.mongodb.gridfs.GridFSFile
-
- removeField(String) - Method in class com.mongodb.LazyWriteableDBObject
-
Deprecated.
- removeField(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
Always throws UnsupportedOperationException
.
- removeField(String) - Method in class com.mongodb.ReflectionDBObject
-
This operation is not supported.
- removeField(String) - Method in class org.bson.BasicBSONObject
-
Deletes a field from this object.
- removeField(String) - Method in interface org.bson.BSONObject
-
Removes a field with a given name from this object.
- removeField(String) - Method in class org.bson.LazyBSONObject
-
Always throws UnsupportedOperationException
.
- removeField(String) - Method in class org.bson.types.BasicBSONList
-
- removeOne() - Method in class com.mongodb.BulkWriteRequestBuilder
-
Adds a request to remove one document in the collection that matches the query with which this builder was created.
- removeUser(String) - Method in class com.mongodb.DB
-
- removeUser(String) - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- rename(String) - Method in class com.mongodb.DBCollection
-
- rename(String, boolean) - Method in class com.mongodb.DBCollection
-
Renames of this collection to newName
- replaceOne(DBObject) - Method in class com.mongodb.BulkUpdateRequestBuilder
-
Adds a request to replace one document in the collection that matches the query with which this builder was created.
- replaceOne(DBObject) - Method in class com.mongodb.BulkWriteRequestBuilder
-
Adds a request to replace one document in the collection that matches the query with which this builder was created.
- REPLICA_ACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
-
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation.
- REPLICAS_SAFE - Static variable in class com.mongodb.WriteConcern
-
Exceptions are raised for network issues, and server errors; waits for at least 2 servers for the write operation.
- ReplicaSetStatus - Class in com.mongodb
-
Keeps replica set status.
- requestDone() - Method in class com.mongodb.DB
-
- requestDone() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- requestDone() - Method in interface com.mongodb.DBConnector
-
Deprecated.
terminates the "consistent request".
- requestDone() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
End the current "request", if this thread is in one.
- requestEnsureConnection() - Method in class com.mongodb.DB
-
- requestEnsureConnection() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- requestEnsureConnection() - Method in interface com.mongodb.DBConnector
-
Deprecated.
Ensures that a connection exists for the "consistent request"
- requestEnsureConnection() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- requestStart() - Method in class com.mongodb.DB
-
- requestStart() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- requestStart() - Method in interface com.mongodb.DBConnector
-
Deprecated.
initiates a "consistent request" on the thread.
- requestStart() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Start a "request".
- requiredReplicaSetName(String) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the required replica set name for the cluster.
- reset() - Method in class com.mongodb.DefaultDBCallback
-
- reset() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- reset() - Method in class org.bson.BasicBSONCallback
-
- reset() - Method in interface org.bson.BSONCallback
-
Resets the callback, clearing all state.
- reset() - Method in class org.bson.EmptyBSONCallback
-
- reset() - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- reset() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- reset() - Method in class org.bson.LazyBSONCallback
-
- resetError() - Method in class com.mongodb.DB
-
- resetIndexCache() - Method in class com.mongodb.DBCollection
-
- resetOptions() - Method in class com.mongodb.DB
-
Resets the query options.
- resetOptions() - Method in class com.mongodb.DBCollection
-
Resets the default query options
- resetOptions() - Method in class com.mongodb.DBCursor
-
Resets the query options.
- resetOptions() - Method in class com.mongodb.Mongo
-
Reset the default query options
- RESULTFLAG_AWAITCAPABLE - Static variable in class com.mongodb.Bytes
-
Set when the server supports the AwaitData Query option.
- RESULTFLAG_CURSORNOTFOUND - Static variable in class com.mongodb.Bytes
-
Set when getMore is called but the cursor id is not valid at the server.
- RESULTFLAG_ERRSET - Static variable in class com.mongodb.Bytes
-
Set when query failed.
- RESULTFLAG_SHARDCONFIGSTALE - Static variable in class com.mongodb.Bytes
-
Drivers should ignore this.
- results() - Method in class com.mongodb.AggregationOutput
-
Returns an iterator to the results of the aggregation
- results() - Method in class com.mongodb.MapReduceOutput
-
Returns an iterable containing the results of the operation.
- retainAll(Collection) - Method in class org.bson.LazyBSONList
-
- retainAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- RETURN_KEY - Static variable in class com.mongodb.QueryOperators
-
- returnKey() - Method in class com.mongodb.DBCursor
-
Forces the cursor to only return fields included in the index.
- S_DAY - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- S_HOUR - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- S_MINUTE - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- S_MONTH - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- S_SECOND - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- S_WEEK - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- S_YEAR - Static variable in class com.mongodb.util.TimeConstants
-
Deprecated.
- safe - Variable in class com.mongodb.MongoOptions
-
Deprecated.
If true the driver will use a WriteConcern of WriteConcern.SAFE for all operations.
- SAFE - Static variable in class com.mongodb.WriteConcern
-
Write operations that use this write concern will wait for acknowledgement from the primary server before returning.
- sameHost(String) - Method in class com.mongodb.ServerAddress
-
Determines whether this address is the same as a given host.
- save(DBObject) - Method in class com.mongodb.DBCollection
-
Update an existing document or insert a document depending on the parameter.
- save(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
-
Update an existing document or insert a document depending on the parameter.
- save() - Method in class com.mongodb.gridfs.GridFSFile
-
Saves the file entry to the files collection
- save() - Method in class com.mongodb.gridfs.GridFSInputFile
-
- save(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
This method first calls saveChunks(long) if the file data has not been saved yet.
- saveChunks() - Method in class com.mongodb.gridfs.GridFSInputFile
-
Saves all data into chunks from configured
InputStream
input stream to GridFS.
- saveChunks(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Saves all data into chunks from configured
InputStream
input stream to GridFS.
- say(DB, OutMessage, WriteConcern) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a write operation
- say(DB, OutMessage, WriteConcern, ServerAddress) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a write operation
- say(DB, OutMessage, WriteConcern) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- say(DB, OutMessage, WriteConcern, ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- SCRAM_SHA_1_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The SCRAM-SHA-1 mechanism.
- SEARCH - Static variable in class com.mongodb.QueryOperators
-
- SECONDARY - Static variable in class com.mongodb.ReadPreference
-
- secondary() - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary.
- secondary(TagSet) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with the given set of tags.
- secondary(List<TagSet>) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
- secondary(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- secondaryPreferred() - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
- secondaryPreferred(TagSet) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
- secondaryPreferred(List<TagSet>) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
- secondaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- seekEnd() - Method in class org.bson.io.BasicOutputBuffer
-
- seekEnd() - Method in class org.bson.io.OutputBuffer
-
- seekEnd() - Method in class org.bson.io.PoolOutputBuffer
-
- seekStart() - Method in class org.bson.io.BasicOutputBuffer
-
- seekStart() - Method in class org.bson.io.OutputBuffer
-
- seekStart() - Method in class org.bson.io.PoolOutputBuffer
-
- serialize(Object) - Static method in class com.mongodb.util.JSON
-
Serializes an object into its JSON form.
- serialize(Object, StringBuilder) - Static method in class com.mongodb.util.JSON
-
Serializes an object into its JSON form.
- serialize(Object, StringBuilder) - Method in interface com.mongodb.util.ObjectSerializer
-
Serializes obj
into buf
.
- serialize(Object) - Method in interface com.mongodb.util.ObjectSerializer
-
Serializes obj
.
- serverAddress() - Method in class com.mongodb.DBPort
-
Deprecated.
- ServerAddress - Class in com.mongodb
-
Represents the location of a Mongo server - i.e.
- ServerAddress() - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress with default host and port
- ServerAddress(String) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress with default port
- ServerAddress(String, int) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress
- ServerAddress(InetAddress) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress with default port
- ServerAddress(InetAddress, int) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress
- ServerAddress(InetSocketAddress) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress
- ServerError - Class in com.mongodb
-
- set(ReflectionDBObject, String, Object) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
Adds or sets the given field to the given value on the document.
- set(OutputBuffer) - Method in class org.bson.BasicBSONEncoder
-
- set(OutputBuffer) - Method in interface org.bson.BSONEncoder
-
Sets the buffer to wrich the result of encoding will be written.
- set(int, Object) - Method in class org.bson.LazyBSONList
-
- set_id(Object) - Method in class com.mongodb.ReflectionDBObject
-
Sets the _id
- setAlwaysUseMBeans(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setAutoConnectRetry(boolean) - Method in class com.mongodb.MongoOptions
-
- setBypassDocumentValidation(Boolean) - Method in class com.mongodb.BulkWriteOperation
-
Sets whether to bypass document validation.
- setBypassDocumentValidation(Boolean) - Method in class com.mongodb.MapReduceCommand
-
Sets whether to bypass document validation.
- setChunkSize(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Set the chunk size.
- setConnectionsPerHost(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
Sets the maximum number of connections allowed per host for this Mongo instance.
- setConnectTimeout(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setContentType(String) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Sets the content type (MIME type) on the GridFS entry.
- setCursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setDBDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCollection
-
Set a customer decoder factory for this collection.
- setDbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setDBEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.DBCollection
-
Set a customer encoder factory for this collection.
- setDbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCursor
-
Sets the factory that will be used create a DBDecoder
that will be used to decode BSON documents into DBObject instances.
- setDescription(String) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setFilename(String) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Sets the file name on the GridFS entry.
- setFinalize(String) - Method in class com.mongodb.MapReduceCommand
-
Sets the Finalize JS Function
- setFsync(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setGridFS(GridFS) - Method in class com.mongodb.gridfs.GridFSFile
-
Sets the GridFS associated with this file.
- setHintFields(List<DBObject>) - Method in class com.mongodb.DBCollection
-
Override MongoDB's default index selection and query optimization process.
- setId(Object) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Sets the ID of this GridFS file.
- setInternalClass(String, Class) - Method in class com.mongodb.DBCollection
-
Sets the internal class for the given path in the document hierarchy
- setJ(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setJsMode(Boolean) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) JavaScript Mode
- setLimit(int) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) limit on input
- setMax(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- setMaxAutoConnectRetryTime(long) - Method in class com.mongodb.MongoOptions
-
- setMaxTime(long, TimeUnit) - Method in class com.mongodb.MapReduceCommand
-
Sets the max execution time for this command, in the given time unit.
- setMaxWaitTime(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setMetaData(DBObject) - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the file metadata.
- setObjectClass(Class) - Method in class com.mongodb.DBCollection
-
Sets a default class for objects in this collection; null resets the class to nothing.
- setOptions(int) - Method in class com.mongodb.DB
-
Sets the default query options, overwriting previous value.
- setOptions(int) - Method in class com.mongodb.DBCollection
-
Sets the default query options, overwriting previous value.
- setOptions(int) - Method in class com.mongodb.DBCursor
-
Sets the query option - see Bytes.QUERYOPTION_* for list.
- setOptions(int) - Method in class com.mongodb.Mongo
-
Set the default query options.
- setOutputDB(String) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) database name where the output collection should reside
- setPosition(int) - Method in class org.bson.io.BasicOutputBuffer
-
- setPosition(int) - Method in class org.bson.io.OutputBuffer
-
- setPosition(int) - Method in class org.bson.io.PoolOutputBuffer
-
- setReadOnly(Boolean) - Method in class com.mongodb.DB
-
- setReadPreference(ReadPreference) - Method in class com.mongodb.DB
-
Sets the read preference for this database.
- setReadPreference(ReadPreference) - Method in class com.mongodb.DBCollection
-
- setReadPreference(ReadPreference) - Method in class com.mongodb.DBCursor
-
Sets the read preference for this cursor.
- setReadPreference(ReadPreference) - Method in class com.mongodb.MapReduceCommand
-
Sets the read preference for this command.
- setReadPreference(ReadPreference) - Method in class com.mongodb.Mongo
-
Sets the read preference for this database.
- setReadPreference(ReadPreference) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setRoot(Object) - Method in class org.bson.BasicBSONCallback
-
Sets the root document for this position
- setRootObject(Object) - Method in class org.bson.LazyBSONCallback
-
- setSafe(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setScope(Map<String, Object>) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) JavaScript scope
- setSocketFactory(SocketFactory) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setSocketKeepAlive(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setSocketTimeout(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setSort(DBObject) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) sort specification object
- setThreadsAllowedToBlockForConnectionMultiplier(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
Sets the multiplier which, when multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be
waiting for a connection to become available from the pool.
- setVerbose(Boolean) - Method in class com.mongodb.MapReduceCommand
-
Sets the verbosity of the MapReduce job,
defaults to 'true'
- setW(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setWObject(Object) - Method in class com.mongodb.WriteConcern
-
- setWriteConcern(WriteConcern) - Method in class com.mongodb.DB
-
Sets the write concern for this database.
- setWriteConcern(WriteConcern) - Method in class com.mongodb.DBCollection
-
- setWriteConcern(WriteConcern) - Method in class com.mongodb.Mongo
-
Sets the write concern for this database.
- setWriteConcern(WriteConcern) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setWtimeout(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- SHOW_DISK_LOC - Static variable in class com.mongodb.QueryOperators
-
- showDiskLoc() - Method in class com.mongodb.DBCursor
-
Modifies the documents returned to include references to the on-disk location of each document.
- SimplePool<T> - Class in com.mongodb.util
-
- SimplePool(String, int) - Constructor for class com.mongodb.util.SimplePool
-
Deprecated.
Initializes a new pool of objects.
- SimplePool<T> - Class in org.bson.util
-
- SimplePool(int) - Constructor for class org.bson.util.SimplePool
-
Deprecated.
- SimplePool() - Constructor for class org.bson.util.SimplePool
-
Deprecated.
- singleton() - Static method in class com.mongodb.Mongo.Holder
-
- size() - Method in class com.mongodb.DBCursor
-
Counts the number of objects matching the query this does take limit/skip into consideration
- size(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $size operand
- SIZE - Static variable in class com.mongodb.QueryOperators
-
- size() - Method in class com.mongodb.util.FastStack
-
Deprecated.
- size() - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- size() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
Returns the size of the bag.
- size() - Method in class org.bson.io.BasicOutputBuffer
-
- size() - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- size() - Method in class org.bson.io.OutputBuffer
-
Gets the output size in bytes.
- size() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- size() - Method in class org.bson.LazyBSONList
-
- size() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
This method runs in time linear to the total size of all keys in the document.
- size() - Method in class org.bson.util.ClassMap
-
As per java.util.Map
, returns the number of key-value mappings in this map.
- size() - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- sizeCString(int) - Method in class org.bson.LazyBSONObject
-
- skip(int) - Method in class com.mongodb.DBCursor
-
Discards a given number of elements at the beginning of the cursor.
- slaveOk() - Method in class com.mongodb.DB
-
- slaveOk() - Method in class com.mongodb.DBCollection
-
- slaveOk() - Method in class com.mongodb.DBCursor
-
- slaveOk() - Method in class com.mongodb.Mongo
-
- slaveOk - Variable in class com.mongodb.MongoOptions
-
- sleep(long) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
Pauses for a given number of milliseconds
- snapshot() - Method in class com.mongodb.DBCursor
-
Use snapshot mode for the query.
- SNAPSHOT - Static variable in class com.mongodb.QueryOperators
-
- socketFactory(SocketFactory) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the socket factory.
- socketFactory - Variable in class com.mongodb.MongoOptions
-
Deprecated.
sets the socket factory for creating sockets to mongod
Default is SocketFactory.getDefault()
- socketKeepAlive(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets whether socket keep alive is enabled.
- socketKeepAlive - Variable in class com.mongodb.MongoOptions
-
Deprecated.
This flag controls the socket keep alive feature that keeps a connection alive through firewalls
Socket.setKeepAlive(boolean)
Default is false.
- socketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the socket timeout.
- socketTimeout - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The socket timeout in milliseconds
It is used for I/O socket read and write operations
Socket.setSoTimeout(int)
Default is 0 and means no timeout.
- sort(DBObject) - Method in class com.mongodb.DBCursor
-
Sorts this cursor's elements.
- start() - Static method in class com.mongodb.BasicDBObjectBuilder
-
Creates a builder intialized with an empty document.
- start(String, Object) - Static method in class com.mongodb.BasicDBObjectBuilder
-
Creates a builder initialized with the given key/value.
- start(Map) - Static method in class com.mongodb.BasicDBObjectBuilder
-
Creates an object builder from an existing map of key value pairs.
- start() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- start() - Static method in class com.mongodb.QueryBuilder
-
Returns a new QueryBuilder.
- start(String) - Static method in class com.mongodb.QueryBuilder
-
Creates a new query with a document key
- STRING - Static variable in class org.bson.BSON
-
- StringBuilderPool - Class in com.mongodb.util
-
- StringBuilderPool(String, int) - Constructor for class com.mongodb.util.StringBuilderPool
-
Deprecated.
Initializes a pool of a given number of StringBuilders, each of a certain size.
- StringParseUtil - Class in com.mongodb.util
-
- StringParseUtil() - Constructor for class com.mongodb.util.StringParseUtil
-
Deprecated.
- StringRangeSet - Class in org.bson.util
-
- StringRangeSet(int) - Constructor for class org.bson.util.StringRangeSet
-
Deprecated.
- subList(int, int) - Method in class org.bson.LazyBSONList
-
- SYMBOL - Static variable in class org.bson.BSON
-
- Symbol - Class in org.bson.types
-
Class to hold an instance of the BSON symbol type.
- Symbol(String) - Constructor for class org.bson.types.Symbol
-
Construct a new instance with the given symbol.