getLength() - Method in class com.mongodb.gridfs.GridFSFile
Gets the file's length
getLimit() - Method in class com.mongodb.MapReduceCommand
Gets the (optional) limit on input
getLocalPort() - Method in class com.mongodb.InUseConnectionBean
Deprecated.
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
getMachine() - Method in class org.bson.types.ObjectId
Deprecated.
Please use #toByteArray()
instead.
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
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
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoOptions
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
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.
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 updates or replacements in the write operation.
getMongo() - Method in class com.mongodb.DB
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
Returns the name of this 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
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 this encoder is writing to.
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
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
getPosition() - Method in class org.bson.io.PoolOutputBuffer
Deprecated.
getPreviousError() - Method in class com.mongodb.DB
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
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
Deprecated.
It is not recommended to access the raw document returned by the server as the format can change between releases. This
has been replaced with a series of specific getters for the values on the result (getCollectionName, getDatabaseName, getDuration,
getEmitCount, getOutputCount, getInputCount). The method results()
will continue to return an Iterable<DBObjects>
,
that should be used to obtain the results of the map-reduce. This method will be removed in 3.0.
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
Gets the object's namespace (collection name)
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
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
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.MongoCursorNotFoundException
The server address where the cursor is.
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
Deprecated.
there is no replacement for this method
getServerUsed() - Method in class com.mongodb.CommandResult
getServerUsed() - Method in class com.mongodb.MapReduceOutput
Get the server that the map reduce command was run on.
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
Deprecated.
there is no replacement for this method
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
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
getTags() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
Deprecated.
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.
getTime() - Method in class org.bson.types.BSONTimestamp
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
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
getVersion() - Method in class com.mongodb.Mongo
gets this driver version
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.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
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
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
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
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
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
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
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
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
gotMaxKey(String) - Method in class org.bson.EmptyBSONCallback
gotMinKey(String) - Method in class org.bson.BasicBSONCallback
gotMinKey(String) - Method in interface org.bson.BSONCallback
gotMinKey(String) - Method in class org.bson.EmptyBSONCallback
gotNull(String) - Method in class org.bson.BasicBSONCallback
gotNull(String) - Method in interface org.bson.BSONCallback
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
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
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
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
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
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
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
subtype 3
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
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 to retrieve 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
Operations include:
- writing data obtained from an InputStream
- getting an OutputStream to stream the data out
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
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
H
- handle(T) - Method in class com.mongodb.util.ThreadPool
-
Deprecated.
Handles a given object.
- handleError(T, Exception) - Method in class com.mongodb.util.ThreadPool
-
Deprecated.
Handles a given object and exception.
- handleSpecialObjects(String, BSONObject) - Method in class org.bson.BasicBSONEncoder
-
- hasDecodeHooks() - Static method in class org.bson.BSON
-
- hasErrorCode() - Method in exception org.bson.BSONException
-
Returns true if the error code is set (i.e., not null).
- Hash - Class in com.mongodb.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- Hash() - Constructor for class com.mongodb.util.Hash
-
Deprecated.
- hashBackward(String) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Creates a hash for a string.
- hashBackwardLong(String) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Creates a long hash for a string.
- hashCode() - Method in class com.mongodb.BulkWriteError
-
- hashCode() - Method in exception com.mongodb.BulkWriteException
-
- hashCode() - Method in class com.mongodb.BulkWriteUpsert
-
- hashCode() - Method in class com.mongodb.DBAddress
-
- hashCode() - Method in class com.mongodb.DBCollection
-
- hashCode() - Method in class com.mongodb.DBPort
-
Deprecated.
- hashCode() - Method in class com.mongodb.DBRefBase
-
- hashCode() - Method in class com.mongodb.MongoClientOptions
-
- hashCode() - Method in class com.mongodb.MongoCredential
-
- hashCode() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- hashCode() - Method in class com.mongodb.ServerAddress
-
- hashCode() - Method in class com.mongodb.TaggableReadPreference
-
- hashCode(CharSequence, int, int) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Creates a hash code of a string from [start-end)
- hashCode(String...) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Calculate the hashcode for a series of strings combined as one.
- hashCode() - Method in class com.mongodb.WriteConcern
-
- hashCode() - Method in class com.mongodb.WriteConcernError
-
- hashCode() - Method in class org.bson.BasicBSONObject
-
- hashCode() - Method in class org.bson.io.BSONByteBuffer
-
- hashCode() - Method in class org.bson.LazyBSONObject
-
- hashCode() - Method in class org.bson.types.Binary
-
- hashCode() - Method in class org.bson.types.BSONTimestamp
-
- hashCode() - Method in class org.bson.types.Code
-
- hashCode() - Method in class org.bson.types.CodeWScope
-
- hashCode() - Method in class org.bson.types.MaxKey
-
- hashCode() - Method in class org.bson.types.MinKey
-
- hashCode() - Method in class org.bson.types.ObjectId
-
- hashCode() - Method in class org.bson.types.Symbol
-
- hasNext() - Method in class com.mongodb.DBCursor
-
Checks if there is another object available
- hasNext() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
-
- heartbeatConnectRetryFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the heartbeat connect retry frequency.
- heartbeatConnectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the heartbeat connect timeout.
- heartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the heartbeat frequency.
- heartbeatSocketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the heartbeat connect socket timeout.
- heartbeatThreadCount(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the heartbeat thread count.
- hex() - Method in class org.bson.io.OutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- hexMD5(byte[]) - Static method in class com.mongodb.util.Util
-
Produce hex representation of the MD5 digest of a byte array
- hexMD5(ByteBuffer, int, int) - Static method in class com.mongodb.util.Util
-
- hint(DBObject) - Method in class com.mongodb.DBCursor
-
Informs the database of indexed fields of the collection in order to improve performance.
- hint(String) - Method in class com.mongodb.DBCursor
-
Informs the database of an indexed field of the collection in order to improve performance.
- HINT - Static variable in class com.mongodb.QueryOperators
-
- host() - Method in class com.mongodb.DBPort
-
Deprecated.
returns a String representation of the target host
I
- IdentitySet<T> - Class in com.mongodb.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- IdentitySet() - Constructor for class com.mongodb.util.IdentitySet
-
Deprecated.
- IdentitySet(Iterable<T>) - Constructor for class com.mongodb.util.IdentitySet
-
Deprecated.
- in(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $in operand
- IN - Static variable in class com.mongodb.QueryOperators
-
- indexOf(Object) - Method in class org.bson.LazyBSONList
-
- initializeOrderedBulkOperation() - Method in class com.mongodb.DBCollection
-
Creates a builder for an ordered bulk write operation, consisting of an ordered collection of write requests,
which can be any combination of inserts, updates, replaces, or removes.
- initializeUnorderedBulkOperation() - Method in class com.mongodb.DBCollection
-
Creates a builder for an unordered bulk operation, consisting of an unordered collection of write requests,
which can be any combination of inserts, updates, replaces, or removes.
- inProgress() - Method in class com.mongodb.util.ThreadPool
-
Deprecated.
- insert(DBObject) - Method in class com.mongodb.BulkWriteOperation
-
Add an insert request to the bulk operation
- insert(DBObject[], WriteConcern) - Method in class com.mongodb.DBCollection
-
Insert documents into a collection.
- insert(DBObject[], WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
-
Insert documents into a collection.
- insert(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
-
Insert a document into a collection.
- insert(DBObject...) - Method in class com.mongodb.DBCollection
-
Insert documents into a collection.
- insert(WriteConcern, DBObject...) - Method in class com.mongodb.DBCollection
-
Insert documents into a collection.
- insert(List<DBObject>) - Method in class com.mongodb.DBCollection
-
Insert documents into a collection.
- insert(List<DBObject>, WriteConcern) - Method in class com.mongodb.DBCollection
-
Insert documents into a collection.
- insert(List<DBObject>, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
-
Insert documents into a collection.
- InUseConnectionBean - Class in com.mongodb
-
Deprecated.
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
- is(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the find({key:value})
- isAcknowledged() - Method in class com.mongodb.BulkWriteResult
-
Returns true if the write was acknowledged.
- isAlwaysUseMBeans() - Method in class com.mongodb.MongoClientOptions
-
Gets whether JMX beans registered by the driver should always be MBeans, regardless of whether the VM is
Java 6 or greater.
- isAlwaysUseMBeans() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- isAuthenticated() - Method in class com.mongodb.DB
-
- isAutoConnectRetry() - Method in class com.mongodb.MongoClientOptions
-
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
- isAutoConnectRetry() - Method in class com.mongodb.MongoOptions
-
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
- isCapped() - Method in class com.mongodb.DBCollection
-
Checks whether this collection is capped
- isClosed() - Method in class com.mongodb.DBPort
-
Deprecated.
- isCursorFinalizerEnabled() - Method in class com.mongodb.MongoClientOptions
-
Gets whether there is a a finalize method created that cleans up instances of DBCursor that the client
does not close.
- isCursorFinalizerEnabled() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- isElementEmpty(int) - Method in class org.bson.LazyBSONObject
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- isEmpty() - Method in class com.mongodb.BasicDBObjectBuilder
-
returns true if no key/value was inserted into base object
- isEmpty() - Method in class com.mongodb.LazyWriteableDBObject
-
- isEmpty() - Method in class org.bson.LazyBSONObject
-
- isEmpty() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- isEmpty() - Method in class org.bson.util.ClassMap
-
- isEmpty() - Method in class org.bson.util.StringRangeSet
-
- isFsync() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- isJ() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- isLazy() - Method in class com.mongodb.WriteResult
-
Deprecated.
Call WriteResult.getLastConcern().isAcknowledged()
instead
- isLocked() - Method in class com.mongodb.Mongo
-
Returns true if the database is locked (read-only), false otherwise.
- isMaster(ServerAddress) - Method in class com.mongodb.ReplicaSetStatus
-
- isModifiedCountAvailable() - Method in class com.mongodb.BulkWriteResult
-
Returns true if the server was able to provide a count of modified documents.
- isNew() - Method in class org.bson.types.ObjectId
-
Deprecated.
'new' flag breaks the immutability of the ObjectId
class
and will be dropped in 3.x versions of the driver
- isNotMasterError() - Method in class com.mongodb.ServerError
-
returns true if the error is "not master", which usually happens when doing operation on slave
- isOpen() - Method in interface com.mongodb.DBConnector
-
Deprecated.
returns true if the connector is in a usable state
- isOpen() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- isOrdered() - Method in class com.mongodb.BulkWriteOperation
-
Returns true if this is building an ordered bulk write request.
- isPartialObject() - Method in class com.mongodb.BasicDBList
-
- isPartialObject() - Method in class com.mongodb.BasicDBObject
-
- isPartialObject() - Method in interface com.mongodb.DBObject
-
whether markAsPartialObject was ever called
only matters if you are going to upsert and do not want to risk losing fields
- isPartialObject() - Method in class com.mongodb.gridfs.GridFSFile
-
- isPartialObject() - Method in class com.mongodb.LazyDBObject
-
- isPartialObject() - Method in class com.mongodb.RawDBObject
-
Deprecated.
- isPartialObject() - Method in class com.mongodb.ReflectionDBObject
-
- isPartialObject() - Method in class org.bson.LazyDBList
-
Deprecated.
- isSafe() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- isSlaveOk() - Method in class com.mongodb.ReadPreference
-
- isSlaveOk() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- isSlaveOk() - Method in class com.mongodb.TaggableReadPreference
-
- isSocketKeepAlive() - Method in class com.mongodb.MongoClientOptions
-
This flag controls the socket keep alive feature that keeps a connection alive through firewalls
Socket.setKeepAlive(boolean)
* Default is false.
- isSocketKeepAlive() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- isStackEmpty() - Method in class org.bson.BasicBSONCallback
-
- isTrue(String, boolean) - Static method in class org.bson.util.Assertions
-
Deprecated.
- isTrueArgument(String, boolean) - Static method in class org.bson.util.Assertions
-
Deprecated.
- isUpdateOfExisting() - Method in class com.mongodb.WriteResult
-
Returns true if this write resulted in an update of an existing document.
- isValid(String) - Static method in class org.bson.types.ObjectId
-
Checks if a string could be an ObjectId
.
- isVerbose() - Method in class com.mongodb.MapReduceCommand
-
Gets the verbosity of the MapReduce job.
- itcount() - Method in class com.mongodb.DBCursor
-
for testing only!
Iterates cursor and counts objects
- iterator() - Method in class com.mongodb.DBCursor
-
creates a copy of this cursor object that can be iterated.
- iterator() - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- iterator() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
- iterator() - Method in class org.bson.LazyBSONList
-
- iterator() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- iterator() - Method in class org.bson.util.StringRangeSet
-
J
- j - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The "j" value of the global WriteConcern.
- Java5MongoConnectionPoolMBean - Interface in com.mongodb
-
Deprecated.
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
- JOURNAL_SAFE - Static variable in class com.mongodb.WriteConcern
-
Exceptions are raised for network issues, and server errors; the write operation waits for the server to
group commit to the journal file on disk.
- JOURNALED - Static variable in class com.mongodb.WriteConcern
-
Exceptions are raised for network issues, and server errors; the write operation waits for the server to
group commit to the journal file on disk.
- JSON - Class in com.mongodb.util
-
Helper methods for JSON serialization and de-serialization
- JSON() - Constructor for class com.mongodb.util.JSON
-
- JSONCallback - Class in com.mongodb.util
-
- JSONCallback() - Constructor for class com.mongodb.util.JSONCallback
-
- JSONParseException - Exception in com.mongodb.util
-
Exception that is thrown when invalid JSON is encountered by the parser.
- JSONParseException(String, int) - Constructor for exception com.mongodb.util.JSONParseException
-
- JSONParseException(String, int, Throwable) - Constructor for exception com.mongodb.util.JSONParseException
-
- JSONSerializers - Class in com.mongodb.util
-
Defines static methods for getting ObjectSerializer
instances that produce various flavors of
JSON.
K
- KeyCachingLazyBSONObject - Class in org.bson
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- KeyCachingLazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- KeyCachingLazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- KeyCachingLazyBSONObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- KeyCachingLazyBSONObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- keySet() - Method in class com.mongodb.gridfs.GridFSFile
-
- keySet() - Method in class com.mongodb.LazyWriteableDBObject
-
- keySet() - Method in class com.mongodb.RawDBObject
-
Deprecated.
- keySet() - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
- keySet() - Method in class com.mongodb.ReflectionDBObject
-
- keySet() - Method in interface org.bson.BSONObject
-
Returns this object's fields' names
- keySet() - Method in class org.bson.LazyBSONObject
-
- keySet() - Method in class org.bson.types.BasicBSONList
-
L
- LANGUAGE - Static variable in class com.mongodb.QueryOperators
-
- lastIndexOf(Object) - Method in class org.bson.LazyBSONList
-
- LazyBSONCallback - Class in org.bson
-
- LazyBSONCallback() - Constructor for class org.bson.LazyBSONCallback
-
- LazyBSONDecoder - Class in org.bson
-
implementation of BSONDecoder that creates LazyBSONObject instances
- LazyBSONDecoder() - Constructor for class org.bson.LazyBSONDecoder
-
- LazyBSONList - Class in org.bson
-
- LazyBSONList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
-
- LazyBSONList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
-
- LazyBSONList(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
-
- LazyBSONList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONList
-
- LazyBSONList.LazyBSONListIterator - Class in org.bson
-
- LazyBSONList.LazyBSONListIterator() - Constructor for class org.bson.LazyBSONList.LazyBSONListIterator
-
- LazyBSONObject - Class in org.bson
-
- LazyBSONObject(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
-
- LazyBSONObject(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
-
- LazyBSONObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
-
- LazyBSONObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyBSONObject
-
- LazyBSONObject.LazyBSONKeySet - Class in org.bson
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- LazyBSONObject.LazyBSONKeySet() - Constructor for class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- LazyDBCallback - Class in com.mongodb
-
- LazyDBCallback(DBCollection) - Constructor for class com.mongodb.LazyDBCallback
-
- LazyDBDecoder - Class in com.mongodb
-
- LazyDBDecoder() - Constructor for class com.mongodb.LazyDBDecoder
-
- LazyDBEncoder - Class in com.mongodb
-
Encoder that only knows how to encode BSONObject instances of type LazyDBObject.
- LazyDBEncoder() - Constructor for class com.mongodb.LazyDBEncoder
-
- LazyDBList - Class in com.mongodb
-
- LazyDBList(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
-
- LazyDBList(byte[], int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
-
- LazyDBList(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
-
- LazyDBList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBList
-
- LazyDBList - Class in org.bson
-
- LazyDBList(byte[], LazyBSONCallback) - Constructor for class org.bson.LazyDBList
-
Deprecated.
- LazyDBList(byte[], int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
-
Deprecated.
- LazyDBList(BSONByteBuffer, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
-
Deprecated.
- LazyDBList(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class org.bson.LazyDBList
-
Deprecated.
- LazyDBObject - Class in com.mongodb
-
- LazyDBObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
-
- LazyDBObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
-
- LazyDBObject(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
-
- LazyDBObject(byte[], int, LazyBSONCallback) - Constructor for class com.mongodb.LazyDBObject
-
- LazyWriteableDBCallback - Class in com.mongodb
-
- LazyWriteableDBCallback(DBCollection) - Constructor for class com.mongodb.LazyWriteableDBCallback
-
- LazyWriteableDBDecoder - Class in com.mongodb
-
- LazyWriteableDBDecoder() - Constructor for class com.mongodb.LazyWriteableDBDecoder
-
- LazyWriteableDBObject - Class in com.mongodb
-
- LazyWriteableDBObject(BSONByteBuffer, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
-
- LazyWriteableDBObject(BSONByteBuffer, int, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
-
- LazyWriteableDBObject(byte[], LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
-
- LazyWriteableDBObject(byte[], int, LazyBSONCallback) - Constructor for class com.mongodb.LazyWriteableDBObject
-
- legacyDefaults() - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets defaults to be what they are in MongoOptions
.
- length() - Method in class com.mongodb.DBCursor
-
pulls back all items into an array and returns the number of objects.
- length() - Method in class org.bson.types.Binary
-
- lessThan(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent to the $lt operand
- lessThanEquals(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent to the $lte operand
- limit(int) - Method in class com.mongodb.DBCursor
-
Limits the number of elements returned.
- listIterator(int) - Method in class org.bson.LazyBSONList
-
- listIterator() - Method in class org.bson.LazyBSONList
-
- longHash(String) - Static method in class com.mongodb.util.Hash
-
Deprecated.
64-bit hash, using longs, in stead of ints, for less collisions, for when it matters.
- longHash(String, int, int) - Static method in class com.mongodb.util.Hash
-
Deprecated.
64-bit hash using longs, starting on index 'start' and including everything before 'end'.
- longHashAppend(long, char) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Adds a character to an existing hash code.
- longLowerHash(String) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Same as longHash(String), using only lower-case values of letters.
- longLowerHash(String, int, int) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Long (64-bit) hash, lower-cased, from [start-end)
- longLowerHash(String, int, int, long) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Long (64-bit) hash, lower-cased, from [start-end)
- longLowerHashAppend(long, char) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Adds the lower-case equivalent of a character to an existing hash code.
- lowerCaseHash(String) - Static method in class com.mongodb.util.Hash
-
Deprecated.
This is an exact copy of the String hashCode()
function, aside from the lowercasing.
- lowerCaseHash(String, int, int) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Creates a hash code of a lowercase string from [start-end)
- lowerCaseSpaceTrimHash(String) - Static method in class com.mongodb.util.Hash
-
Deprecated.
This is an exact copy of the String hashCode()
function, aside from the lowercasing.
- lowerCaseSpaceTrimHash(String, int, int) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Creates a hash code of a lowercase string from [start-end) ignoring whitespace
- LT - Static variable in class com.mongodb.QueryOperators
-
- LTE - Static variable in class com.mongodb.QueryOperators
-
M
- 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
-
Deprecated.
Replaced by Mongo.getMajorVersion()
- 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.
- 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
-
Deprecated.
In the 3.0 version of the driver, this will be constructed only by the driver, and will therefore not have a public
constructor.
- markAsPartialObject() - Method in class com.mongodb.BasicDBList
-
- markAsPartialObject() - Method in class com.mongodb.BasicDBObject
-
- 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
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- 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
-
Deprecated.
You can calculate max chunkSize with
a similar formula Mongo.getMaxBsonObjectSize()
- 500*1000.
Please ensure that you left enough space for metadata (500kb is enough).
- 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
-
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
- maxAutoConnectRetryTime - Variable in class com.mongodb.MongoOptions
-
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
- 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
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- 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.
- 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
-
Deprecated.
Replaced by Mongo.getMinorVersion()
- 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.
- Mongo.Holder() - Constructor for class com.mongodb.Mongo.Holder
-
- 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.
- MongoClientOptions.Builder() - Constructor for class com.mongodb.MongoClientOptions.Builder
-
- 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.
- MongoConnectionPoolMXBean - Interface in com.mongodb
-
Deprecated.
This class will be removed in 3.x versions of the driver,
so please remove it from your compile time dependencies.
- 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
-
A general exception raised in Mongo
- 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
-
Creates a MongoException from a BSON object representing an error
- MongoException.CursorNotFound - Exception in com.mongodb
-
- MongoException.CursorNotFound(long, ServerAddress) - Constructor for exception com.mongodb.MongoException.CursorNotFound
-
Deprecated.
- MongoException.DuplicateKey - Exception in com.mongodb
-
- MongoException.DuplicateKey(CommandResult) - Constructor for exception com.mongodb.MongoException.DuplicateKey
-
Deprecated.
- MongoException.Network - Exception in com.mongodb
-
- MongoException.Network(String, IOException) - Constructor for exception com.mongodb.MongoException.Network
-
Deprecated.
- MongoException.Network(IOException) - Constructor for exception com.mongodb.MongoException.Network
-
Deprecated.
- 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
-
An 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
-
- MongoInterruptedException(String, InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
-
- 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
-
- MongoSocketException - Exception in com.mongodb
-
- MongoTimeoutException - Exception in com.mongodb
-
- MongoURI - Class in com.mongodb
-
Represents a
URI
which can be used to create a Mongo instance.
- MongoURI(String) - Constructor for class com.mongodb.MongoURI
-
- MongoURI(MongoClientURI) - Constructor for class com.mongodb.MongoURI
-
Deprecated.
- MongoWaitQueueFullException - Exception in com.mongodb
-
- 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.
N
- NE - Static variable in class com.mongodb.QueryOperators
-
- near(double, double) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $near operand
- near(double, double, double) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $near operand
- NEAR - Static variable in class com.mongodb.QueryOperators
-
- NEAR_SPHERE - Static variable in class com.mongodb.QueryOperators
-
- nearest() - Static method in class com.mongodb.ReadPreference
-
- nearest(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- nearSphere(double, double) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $nearSphere operand
- nearSphere(double, double, double) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $nearSphere operand
- NewBSONDecoder - Class in org.bson
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- NewBSONDecoder() - Constructor for class org.bson.NewBSONDecoder
-
Deprecated.
- next() - Method in class com.mongodb.DBCursor
-
Returns the object the cursor is at and moves the cursor ahead by one.
- next() - Method in class org.bson.LazyBSONList.LazyBSONListIterator
-
- NIN - Static variable in class com.mongodb.QueryOperators
-
- NONE - Static variable in class com.mongodb.WriteConcern
-
Deprecated.
- NOR - Static variable in class com.mongodb.QueryOperators
-
- NORMAL - Static variable in class com.mongodb.WriteConcern
-
Write operations that use this write concern will return as soon as the message is written to the socket.
- nospaceLowerHash(String, int, int) - Static method in class com.mongodb.util.Hash
-
Deprecated.
Creates a hash code of a lowercase string with whitespace removed from [start-end)
- not() - Method in class com.mongodb.QueryBuilder
-
Equivalent to $not meta operator.
- NOT - Static variable in class com.mongodb.QueryOperators
-
- notEquals(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $ne operand
- notIn(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $nin operand
- notNew() - Method in class org.bson.types.ObjectId
-
Deprecated.
'new' flag breaks the immutability of the ObjectId
class
and will be dropped in 3.x versions of the driver
- notNull(String, T) - Static method in class org.bson.util.Assertions
-
Deprecated.
- NULL - Static variable in class org.bson.BSON
-
- NUMBER - Static variable in class org.bson.BSON
-
- NUMBER_INT - Static variable in class org.bson.BSON
-
- NUMBER_LONG - Static variable in class org.bson.BSON
-
- numChunks() - Method in class com.mongodb.gridfs.GridFSFile
-
Returns the number of chunks that store the file data
- numCursors(int) - Method in class com.mongodb.ParallelScanOptions.Builder
-
Set the requested number of cursors to iterate in parallel.
- numGetMores() - Method in class com.mongodb.DBCursor
-
Deprecated.
there is no replacement for this method
- numRead() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- numSeen() - Method in class com.mongodb.DBCursor
-
Returns the number of objects through which the cursor has iterated.
- numThreads() - Method in class com.mongodb.util.ThreadPool
-
Deprecated.
O
- OBJECT - Static variable in class org.bson.BSON
-
- objectDone() - Method in class com.mongodb.DefaultDBCallback
-
- objectDone() - Method in class com.mongodb.util.JSONCallback
-
- objectDone() - Method in class org.bson.BasicBSONCallback
-
- objectDone() - Method in interface org.bson.BSONCallback
-
- objectDone() - Method in class org.bson.EmptyBSONCallback
-
- objectDone() - Method in class org.bson.LazyBSONCallback
-
- ObjectId - Class in org.bson.types
-
A globally unique identifier for objects.
- ObjectId(Date) - Constructor for class org.bson.types.ObjectId
-
- ObjectId(Date, int) - Constructor for class org.bson.types.ObjectId
-
- ObjectId(Date, int, int) - Constructor for class org.bson.types.ObjectId
-
- ObjectId(String) - Constructor for class org.bson.types.ObjectId
-
Creates a new instance from a string.
- ObjectId(String, boolean) - Constructor for class org.bson.types.ObjectId
-
- ObjectId(byte[]) - Constructor for class org.bson.types.ObjectId
-
Constructs an ObjectId given its 12-byte binary representation.
- ObjectId(int, int, int) - Constructor for class org.bson.types.ObjectId
-
- ObjectId() - Constructor for class org.bson.types.ObjectId
-
Create a new object id.
- ObjectSerializer - Interface in com.mongodb.util
-
Interface describing methods for serializing an object to a string.
- objectStart(boolean, String) - Method in class com.mongodb.DefaultDBCallback
-
- objectStart(boolean, String) - Method in class com.mongodb.util.JSONCallback
-
- objectStart() - Method in class org.bson.BasicBSONCallback
-
- objectStart(boolean) - Method in class org.bson.BasicBSONCallback
-
- objectStart(String) - Method in class org.bson.BasicBSONCallback
-
- objectStart(boolean, String) - Method in class org.bson.BasicBSONCallback
-
- objectStart() - Method in interface org.bson.BSONCallback
-
- objectStart(String) - Method in interface org.bson.BSONCallback
-
- objectStart(boolean) - Method in interface org.bson.BSONCallback
-
- objectStart() - Method in class org.bson.EmptyBSONCallback
-
- objectStart(String) - Method in class org.bson.EmptyBSONCallback
-
- objectStart(boolean) - Method in class org.bson.EmptyBSONCallback
-
- objectStart() - Method in class org.bson.LazyBSONCallback
-
- objectStart(String) - Method in class org.bson.LazyBSONCallback
-
- objectStart(boolean) - Method in class org.bson.LazyBSONCallback
-
- offer(T) - Method in class com.mongodb.util.ThreadPool
-
Deprecated.
Adds a new object to the pool, if possible.
- OID - Static variable in class org.bson.BSON
-
- ok() - Method in class com.mongodb.CommandResult
-
gets the "ok" field which is the result of the command
- ok(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
-
Deprecated.
Checks that the given string builder is within the size limit.
- ok(T) - Method in class org.bson.util.SimplePool
-
Deprecated.
- one() - Method in class com.mongodb.DBCursor
-
- OptionMap - Class in com.mongodb.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- OptionMap() - Constructor for class com.mongodb.util.OptionMap
-
Deprecated.
- or(DBObject...) - Method in class com.mongodb.QueryBuilder
-
Equivalent to an $or operand
- OR - Static variable in class com.mongodb.QueryOperators
-
- ORDER - Static variable in class com.mongodb.Bytes
-
Little-endian
- ORDER_BY - Static variable in class com.mongodb.QueryOperators
-
- org.bson - package org.bson
-
Contains the base BSON classes and Encoder/Decoder.
- org.bson.io - package org.bson.io
-
Contains classes implementing I/O operations used by BSON objects.
- org.bson.types - package org.bson.types
-
Contains classes implementing various BSON types.
- org.bson.util - package org.bson.util
-
Misc utils used by BSON.
- OutputBuffer - Class in org.bson.io
-
- OutputBuffer() - Constructor for class org.bson.io.OutputBuffer
-
- outputMode(AggregationOptions.OutputMode) - Method in class com.mongodb.AggregationOptions.Builder
-
The mode of output for this configuration.
P
- parallelScan(ParallelScanOptions) - Method in class com.mongodb.DBCollection
-
Return a list of cursors over the collection that can be used to scan it in parallel.
- ParallelScanOptions - Class in com.mongodb
-
The options to use for a parallel collection scan.
- ParallelScanOptions.Builder - Class in com.mongodb
-
A builder for the options
- ParallelScanOptions.Builder() - Constructor for class com.mongodb.ParallelScanOptions.Builder
-
- parse(String) - Static method in class com.mongodb.util.JSON
-
Parses a JSON string and returns a corresponding Java object.
- parse(String, BSONCallback) - Static method in class com.mongodb.util.JSON
-
Parses a JSON string and constructs a corresponding Java object by calling
the methods of a
BSONCallback
during parsing.
- parseBoolean(String, boolean) - Static method in class com.mongodb.util.StringParseUtil
-
Deprecated.
Turns a string into a boolean value and returns a default value if unsuccessful.
- parseIfInt(String, int) - Static method in class com.mongodb.util.StringParseUtil
-
Deprecated.
- parseInt(String, int) - Static method in class com.mongodb.util.StringParseUtil
-
Deprecated.
Turns a string into an int and returns a default value if unsuccessful.
- parseInt(String, int, int[], boolean) - Static method in class com.mongodb.util.StringParseUtil
-
Deprecated.
Turns a string into an int and returns a default value if unsuccessful.
- parseIntRadix(String, int) - Static method in class com.mongodb.util.StringParseUtil
-
Deprecated.
Turns a string into an int using a given radix.
- parseNumber(String, Number) - Static method in class com.mongodb.util.StringParseUtil
-
Deprecated.
Turns a string into a Number and returns a default value if unsuccessful.
- parseStrict(String) - Static method in class com.mongodb.util.StringParseUtil
-
Deprecated.
Use Java's "strict parsing" methods Integer.parseInt and Double.parseDouble to parse s "strictly".
- peek() - Method in class com.mongodb.util.FastStack
-
Deprecated.
- pick(int, boolean) - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Pick a member of _avail
.
- pipe(OutputStream) - Method in class org.bson.io.BasicOutputBuffer
-
- pipe(DataOutput) - Method in class org.bson.io.BasicOutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- pipe(OutputStream) - Method in class org.bson.io.OutputBuffer
-
- pipe(OutputStream) - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- pipe(OutputStream) - Method in class org.bson.LazyBSONObject
-
- PLAIN_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The PLAIN mechanism.
- POLYGON - Static variable in class com.mongodb.QueryOperators
-
- PoolOutputBuffer - Class in org.bson.io
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- PoolOutputBuffer() - Constructor for class org.bson.io.PoolOutputBuffer
-
Deprecated.
- pop() - Method in class com.mongodb.BasicDBObjectBuilder
-
pops the active object, which means that the parent object becomes active
- pop() - Method in class com.mongodb.util.FastStack
-
Deprecated.
- PORT - Static variable in class com.mongodb.DBPort
-
Deprecated.
the default port
- position(int) - Method in class org.bson.io.BSONByteBuffer
-
- PRIMARY - Static variable in class com.mongodb.ReadPreference
-
Deprecated.
As of release 2.9.0, replaced by ReadPreference.primary()
- primary() - Static method in class com.mongodb.ReadPreference
-
- primaryPreferred() - Static method in class com.mongodb.ReadPreference
-
- primaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- printStackTrace() - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
Creates an prints a stack trace
- push(String) - Method in class com.mongodb.BasicDBObjectBuilder
-
creates an new empty object and inserts it into the current object with the given key.
- push(T) - Method in class com.mongodb.util.FastStack
-
Deprecated.
- pushStatus(String) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- pushStatus(Thread, String) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- put(String, Object) - Method in class com.mongodb.gridfs.GridFSFile
-
- put(String, Object) - Method in class com.mongodb.LazyWriteableDBObject
-
- put(String) - Method in class com.mongodb.QueryBuilder
-
Adds a new key to the query if not present yet.
- put(String, Object) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- put(String, Object) - Method in class com.mongodb.ReflectionDBObject
-
- put(String, Object) - Method in class org.bson.BasicBSONObject
-
Add a key/value pair to this object
- put(String, Object) - Method in interface org.bson.BSONObject
-
Sets a name/value pair in this object.
- put(String, Object) - Method in class org.bson.LazyBSONObject
-
- put(String, Object) - Method in class org.bson.types.BasicBSONList
-
Puts a value at an index.
- put(int, Object) - Method in class org.bson.types.BasicBSONList
-
Puts a value at an index.
- put(Class<?>, T) - Method in class org.bson.util.ClassMap
-
- putAll(BSONObject) - Method in class com.mongodb.gridfs.GridFSFile
-
- putAll(Map) - Method in class com.mongodb.gridfs.GridFSFile
-
- putAll(BSONObject) - Method in class com.mongodb.LazyWriteableDBObject
-
- putAll(Map) - Method in class com.mongodb.LazyWriteableDBObject
-
- putAll(BSONObject) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- putAll(Map) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- putAll(Map) - Method in class com.mongodb.ReflectionDBObject
-
- putAll(BSONObject) - Method in class com.mongodb.ReflectionDBObject
-
- putAll(Map) - Method in class org.bson.BasicBSONObject
-
- putAll(BSONObject) - Method in class org.bson.BasicBSONObject
-
- putAll(BSONObject) - Method in interface org.bson.BSONObject
-
Sets all key/value pairs from an object into this object
- putAll(Map) - Method in interface org.bson.BSONObject
-
Sets all key/value pairs from a map into this object
- putAll(BSONObject) - Method in class org.bson.LazyBSONObject
-
- putAll(Map) - Method in class org.bson.LazyBSONObject
-
- putAll(Map) - Method in class org.bson.types.BasicBSONList
-
- putAll(BSONObject) - Method in class org.bson.types.BasicBSONList
-
- putBinary(String, byte[]) - Method in class org.bson.BasicBSONEncoder
-
- putBinary(String, Binary) - Method in class org.bson.BasicBSONEncoder
-
- putBoolean(String, Boolean) - Method in class org.bson.BasicBSONEncoder
-
- putCode(String, Code) - Method in class org.bson.BasicBSONEncoder
-
- putCodeWScope(String, CodeWScope) - Method in class org.bson.BasicBSONEncoder
-
- putDate(String, Date) - Method in class org.bson.BasicBSONEncoder
-
- putDBPointer(String, String, ObjectId) - Method in class com.mongodb.DefaultDBEncoder
-
- putDBRef(String, DBRefBase) - Method in class com.mongodb.DefaultDBEncoder
-
- putNull(String) - Method in class org.bson.BasicBSONEncoder
-
- putNumber(String, Number) - Method in class org.bson.BasicBSONEncoder
-
- putObject(BSONObject) - Method in class org.bson.BasicBSONEncoder
-
Encodes a BSONObject
.
- putObject(String, BSONObject) - Method in class org.bson.BasicBSONEncoder
-
this is really for embedded objects
- putObject(BSONObject) - Method in interface org.bson.BSONEncoder
-
- putObjectId(String, ObjectId) - Method in class org.bson.BasicBSONEncoder
-
- putSpecial(String, Object) - Method in class com.mongodb.DefaultDBEncoder
-
- putSpecial(String, Object) - Method in class org.bson.BasicBSONEncoder
-
- putString(String, String) - Method in class org.bson.BasicBSONEncoder
-
- putSymbol(String, Symbol) - Method in class org.bson.BasicBSONEncoder
-
- putTimestamp(String, BSONTimestamp) - Method in class org.bson.BasicBSONEncoder
-
- putUndefined(String) - Method in class org.bson.BasicBSONEncoder
-
- putUUID(String, UUID) - Method in class org.bson.BasicBSONEncoder
-
Q
- QueryBuilder - Class in com.mongodb
-
Utility for creating DBObject queries
- QueryBuilder() - Constructor for class com.mongodb.QueryBuilder
-
Creates a builder with an empty query
- QueryOperators - Class in com.mongodb
-
MongoDB keywords for various query operations
- QueryOperators() - Constructor for class com.mongodb.QueryOperators
-
Deprecated.
Utility classes should not have a public or default constructor.
- QUERYOPTION_AWAITDATA - Static variable in class com.mongodb.Bytes
-
Use with TailableCursor.
- QUERYOPTION_EXHAUST - Static variable in class com.mongodb.Bytes
-
Stream the data down full blast in multiple "more" packages, on the assumption that the client will fully read all data queried.
- QUERYOPTION_NOTIMEOUT - Static variable in class com.mongodb.Bytes
-
The server normally times out idle cursors after an inactivity period (10 minutes) to prevent excess memory use.
- QUERYOPTION_OPLOGREPLAY - Static variable in class com.mongodb.Bytes
-
Internal replication use only - driver should not set
- QUERYOPTION_PARTIAL - Static variable in class com.mongodb.Bytes
-
Use with sharding (mongos).
- QUERYOPTION_SLAVEOK - Static variable in class com.mongodb.Bytes
-
When turned on, read queries will be directed to slave servers instead of the primary server.
- QUERYOPTION_TAILABLE - Static variable in class com.mongodb.Bytes
-
Tailable means cursor is not closed when the last data is retrieved.
- queueSize() - Method in class com.mongodb.util.ThreadPool
-
Deprecated.
Returns the size of the pool's queue.
R
- raiseNetworkErrors() - Method in class com.mongodb.WriteConcern
-
Deprecated.
There is no replacement for this method.
- RawDBObject - Class in com.mongodb
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- 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
-
- readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
-
- readFully(InputStream, byte[], int, int) - Static method in class org.bson.io.Bits
-
- readInt() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readInt(InputStream) - Static method in class org.bson.io.Bits
-
- readInt(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
- readInt(byte[]) - Static method in class org.bson.io.Bits
-
- readInt(byte[], int) - Static method in class org.bson.io.Bits
-
- readIntBE() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readIntBE(byte[], int) - Static method in class org.bson.io.Bits
-
- readLong() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readLong(InputStream) - Static method in class org.bson.io.Bits
-
- readLong(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
- readLong(byte[]) - Static method in class org.bson.io.Bits
-
- readLong(byte[], int) - Static method in class org.bson.io.Bits
-
- readObject(byte[]) - Method in class org.bson.BasicBSONDecoder
-
- readObject(InputStream) - Method in class org.bson.BasicBSONDecoder
-
- readObject(byte[]) - Method in interface org.bson.BSONDecoder
-
- readObject(InputStream) - Method in interface org.bson.BSONDecoder
-
- 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
-
Deprecated.
As of release 2.9, replaced by
ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets)
- ReadPreference.TaggedReadPreference(Map<String, String>) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- ReadPreference.TaggedReadPreference(DBObject) - Constructor for class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- 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
-
- regexFlags(String) - Static method in class org.bson.BSON
-
Converts a string of regular expression flags from the database in Java regular
expression flags.
- regexFlags(int) - Static method in class org.bson.BSON
-
Converts Java regular expression flags into a string of flags for 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
-
- remove(Object) - Method in class org.bson.util.StringRangeSet
-
- 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
-
- 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
-
- removeField(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- removeField(String) - Method in class com.mongodb.ReflectionDBObject
-
can't remove from a ReflectionDBObject
- 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
-
- 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
-
Deprecated.
Use DB.command
to call the dropUser command
- 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
-
Ends the current 'consistent request'.
- 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
-
Ensure that a connection is assigned to the current 'consistent request'
(from primary pool, if connected to a replica set)
- 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
-
Starts a new 'consistent request'.
- 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
-
- reset() - Method in class org.bson.EmptyBSONCallback
-
- reset() - Method in class org.bson.io.BSONByteBuffer
-
- reset() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- reset() - Method in class org.bson.LazyBSONCallback
-
- resetError() - Method in class com.mongodb.DB
-
Deprecated.
The getlasterror command will not be supported in future versions of MongoDB. Use acknowledged writes instead.
- resetIndexCache() - Method in class com.mongodb.DBCollection
-
Deprecated.
This will be removed in 3.0
- 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
-
- 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
- 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
-
- 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.
- SEARCH - Static variable in class com.mongodb.QueryOperators
-
- SECONDARY - Static variable in class com.mongodb.ReadPreference
-
Deprecated.
As of release 2.9.0, replaced by ReadPreference.secondaryPreferred()
- secondary() - Static method in class com.mongodb.ReadPreference
-
- secondary(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- secondaryPreferred() - Static method in class com.mongodb.ReadPreference
-
- secondaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- seekEnd() - Method in class org.bson.io.BasicOutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- seekEnd() - Method in class org.bson.io.OutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- seekEnd() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- seekStart() - Method in class org.bson.io.BasicOutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- seekStart() - Method in class org.bson.io.OutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- seekStart() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- 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
-
mongo server address
- 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
-
Represents a server error
- set(ReflectionDBObject, String, Object) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
- set(OutputBuffer) - Method in class org.bson.BasicBSONEncoder
-
- set(OutputBuffer) - Method in interface org.bson.BSONEncoder
-
- 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
-
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
- setChunkSize(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Set the chunk size.
- setConnectionsPerHost(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- 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
-
- 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
-
Set hint fields for this collection (to optimize queries).
- setId(Object) - Method in class com.mongodb.gridfs.GridFSInputFile
-
- 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.
- 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
-
Deprecated.
There is no replacement for this method. Use the connectTimeout property to control connection timeout.
- 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 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
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- setPosition(int) - Method in class org.bson.io.OutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- setPosition(int) - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- setReadOnly(Boolean) - Method in class com.mongodb.DB
-
Deprecated.
Avoid making database read-only via this method.
Connect with a user credentials that has a read-only access to a server instead.
- setReadPreference(ReadPreference) - Method in class com.mongodb.DB
-
Sets the read preference for this database.
- setReadPreference(ReadPreference) - Method in class com.mongodb.DBCollection
-
Sets the read preference for this collection.
- 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
-
- setRootObject(Object) - Method in class org.bson.LazyBSONCallback
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- 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.
- 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
-
Deprecated.
construct a new instance instead. This method will be removed in a future major release, as instances of this class
should really be immutable.
- setWriteConcern(WriteConcern) - Method in class com.mongodb.DB
-
Sets the write concern for this database.
- setWriteConcern(WriteConcern) - Method in class com.mongodb.DBCollection
-
Set the write concern for this collection.
- 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
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- SimplePool(String, int) - Constructor for class com.mongodb.util.SimplePool
-
Deprecated.
Initializes a new pool of objects.
- SimplePool<T> - Class in org.bson.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- 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
-
- size() - Method in class org.bson.io.OutputBuffer
-
- 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
-
- size() - Method in class org.bson.util.StringRangeSet
-
- sizeCString(int) - Method in class org.bson.LazyBSONObject
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- 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
-
Deprecated.
Replaced with ReadPreference.secondaryPreferred()
- slaveOk() - Method in class com.mongodb.DBCollection
-
- slaveOk() - Method in class com.mongodb.DBCursor
-
Deprecated.
Replaced with ReadPreference.secondaryPreferred()
- slaveOk() - Method in class com.mongodb.Mongo
-
Deprecated.
Replaced with ReadPreference.secondaryPreferred()
- slaveOk - Variable in class com.mongodb.MongoOptions
-
Deprecated.
Replaced with ReadPreference.secondaryPreferred()
- 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 an empty object
- start(String, Object) - Static method in class com.mongodb.BasicDBObjectBuilder
-
creates an object with the given key/value
- start(Map) - Static method in class com.mongodb.BasicDBObjectBuilder
-
Creates an object builder from an existing map.
- 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
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- 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
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- StringParseUtil() - Constructor for class com.mongodb.util.StringParseUtil
-
Deprecated.
- StringRangeSet - Class in org.bson.util
-
- StringRangeSet(int) - Constructor for class org.bson.util.StringRangeSet
-
- 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 a BSON symbol object, which is an interned string in Ruby
- Symbol(String) - Constructor for class org.bson.types.Symbol
-
T
- TaggableReadPreference - Class in com.mongodb
-
Abstract base class for all preference which can be combined with tags
- text(String) - Method in class com.mongodb.QueryBuilder
-
Equivalent to a $text operand.
- text(String, String) - Method in class com.mongodb.QueryBuilder
-
Equivalent to a $text operand.
- TEXT - Static variable in class com.mongodb.QueryOperators
-
- ThreadPool<T> - Class in com.mongodb.util
-
Deprecated.
This class is no longer in use and should not have been public. It may be removed in a future release.
- ThreadPool(String, int) - Constructor for class com.mongodb.util.ThreadPool
-
Deprecated.
Initializes a new thread pool with a given name and number of threads.
- ThreadPool(String, int, int) - Constructor for class com.mongodb.util.ThreadPool
-
Deprecated.
Initializes a new thread pool with a given name, number of threads, and queue size.
- threadsAllowedToBlockForConnectionMultiplier(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the multiplier for number of threads allowed to block waiting for a connection.
- threadsAllowedToBlockForConnectionMultiplier - Variable in class com.mongodb.MongoOptions
-
Deprecated.
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.
- ThreadUtil - Class in com.mongodb.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- ThreadUtil() - Constructor for class com.mongodb.util.ThreadUtil
-
Deprecated.
- throwOnError() - Method in class com.mongodb.CommandResult
-
throws an exception containing the cmd name, in case the command failed, or the "err/code" information
- TimeConstants - Class in com.mongodb.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- TimeConstants() - Constructor for class com.mongodb.util.TimeConstants
-
Deprecated.
- TIMESTAMP - Static variable in class org.bson.BSON
-
- toArray() - Method in class com.mongodb.DBCursor
-
Converts this cursor to an array.
- toArray(int) - Method in class com.mongodb.DBCursor
-
Converts this cursor to an array.
- toArray() - Method in class org.bson.LazyBSONList
-
- toArray(Object[]) - Method in class org.bson.LazyBSONList
-
- toArray() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- toArray(T[]) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- toArray() - Method in class org.bson.util.StringRangeSet
-
- toArray(T[]) - Method in class org.bson.util.StringRangeSet
-
- toByteArray() - Method in class org.bson.io.OutputBuffer
-
mostly for testing
- toByteArray() - Method in class org.bson.types.ObjectId
-
- toDBObject() - Method in class com.mongodb.GroupCommand
-
- toDBObject() - Method in class com.mongodb.MapReduceCommand
-
- toDBObject() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- toDBObject() - Method in class com.mongodb.ReadPreference
-
- toDBObject() - Method in class com.mongodb.TaggableReadPreference
-
- toHex(byte[]) - Static method in class com.mongodb.util.Util
-
- toHexString() - Method in class org.bson.types.ObjectId
-
Converts this instance into a 24-byte hexadecimal string representation.
- toInt(Object) - Static method in class org.bson.BSON
-
- toMap() - Method in class com.mongodb.gridfs.GridFSFile
-
- toMap() - Method in class com.mongodb.RawDBObject
-
Deprecated.
- toMap() - Method in class com.mongodb.ReflectionDBObject
-
- toMap() - Method in class org.bson.BasicBSONObject
-
Converts a DBObject to a map.
- toMap() - Method in interface org.bson.BSONObject
-
Returns a map representing this BSONObject.
- toMap() - Method in class org.bson.LazyBSONObject
-
- toMap() - Method in class org.bson.types.BasicBSONList
-
- toString() - Method in class com.mongodb.AggregationOptions
-
- toString() - Method in class com.mongodb.BasicDBList
-
Returns a JSON serialization of this object
- toString() - Method in class com.mongodb.BasicDBObject
-
Returns a JSON serialization of this object
- toString() - Method in class com.mongodb.BulkWriteError
-
- toString() - Method in class com.mongodb.BulkWriteUpsert
-
- toString() - Method in class com.mongodb.DB
-
Returns the name of this database.
- toString() - Method in class com.mongodb.DBAddress
-
gets a String representation of address as host:port/dbname.
- toString() - Method in class com.mongodb.DBCollection
-
- toString() - Method in class com.mongodb.DBCursor
-
- toString() - Method in class com.mongodb.DBPointer
-
Deprecated.
- toString() - Method in class com.mongodb.DBPort
-
Deprecated.
- toString() - Method in class com.mongodb.DBRefBase
-
- toString() - Method in class com.mongodb.DefaultDBDecoder
-
- toString() - Method in class com.mongodb.DefaultDBEncoder
-
- toString() - Method in class com.mongodb.gridfs.GridFSFile
-
- toString() - Method in class com.mongodb.MapReduceCommand
-
- toString() - Method in class com.mongodb.MapReduceOutput
-
- toString() - Method in class com.mongodb.Mongo
-
- toString() - Method in class com.mongodb.MongoClientOptions
-
- toString() - Method in class com.mongodb.MongoClientURI
-
- toString() - Method in class com.mongodb.MongoCredential
-
- toString() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- toString() - Method in class com.mongodb.MongoURI
-
- toString() - Method in class com.mongodb.RawDBObject
-
Deprecated.
- toString() - Method in class com.mongodb.ReplicaSetStatus
-
- toString() - Method in class com.mongodb.ServerAddress
-
- toString() - Method in class com.mongodb.ServerError
-
- toString() - Method in class com.mongodb.TaggableReadPreference
-
- toString() - Method in class com.mongodb.util.Args
-
Deprecated.
- toString() - Method in class com.mongodb.util.FastStack
-
Deprecated.
- toString() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- toString() - Method in class com.mongodb.WriteConcern.Majority
-
- toString() - Method in class com.mongodb.WriteConcern
-
- toString() - Method in class com.mongodb.WriteConcernError
-
- toString() - Method in class com.mongodb.WriteResult
-
- toString() - Method in class org.bson.BasicBSONObject
-
Returns a JSON serialization of this object
- toString() - Method in class org.bson.io.BSONByteBuffer
-
- toString() - Method in class org.bson.io.OutputBuffer
-
- toString() - Method in class org.bson.LazyBSONObject
-
Returns a JSON serialization of this object
- toString() - Method in class org.bson.LazyDBList
-
Deprecated.
Returns a JSON serialization of this object
- toString() - Method in class org.bson.types.BSONTimestamp
-
- toString() - Method in class org.bson.types.Code
-
- toString() - Method in class org.bson.types.MaxKey
-
- toString() - Method in class org.bson.types.MinKey
-
- toString() - Method in class org.bson.types.ObjectId
-
- toString() - Method in class org.bson.types.Symbol
-
- toStringBabble() - Method in class org.bson.types.ObjectId
-
- toStringMongod() - Method in class org.bson.types.ObjectId
-
- transform(Object) - Method in interface org.bson.Transformer
-
- Transformer - Interface in org.bson
-
- truncateToPosition(int) - Method in class org.bson.io.OutputBuffer
-
Truncates the buffer to the given new position, which must be greater than or equal to zero and less than or equal to the current
size of this buffer.
- truncateToPosition(int) - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- TYPE - Static variable in class com.mongodb.QueryOperators
-
U
- UNACKNOWLEDGED - Static variable in class com.mongodb.WriteConcern
-
Write operations that use this write concern will return as soon as the message is written to the socket.
- UnacknowledgedWriteException - Exception in com.mongodb
-
This exception is thrown if the application attempts to get information about the result of an unacknowledged write.
- UNDEFINED - Static variable in class org.bson.BSON
-
- UNIQUE_DOCS - Static variable in class com.mongodb.QueryOperators
-
- UniqueList<T> - Class in com.mongodb.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- UniqueList() - Constructor for class com.mongodb.util.UniqueList
-
Deprecated.
- unlock() - Method in class com.mongodb.Mongo
-
Unlocks the database, allowing the write operations to go through.
- update(DBObject) - Method in class com.mongodb.BulkUpdateRequestBuilder
-
Adds a request to update all documents in the collection that match the query with which this builder was created.
- update(DBObject) - Method in class com.mongodb.BulkWriteRequestBuilder
-
Adds a request to update all documents in the collection that match the query with which this builder was created.
- update(DBObject, DBObject, boolean, boolean, WriteConcern) - Method in class com.mongodb.DBCollection
-
Modify an existing document or documents in collection.
- update(DBObject, DBObject, boolean, boolean, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollection
-
Modify an existing document or documents in collection.
- update(DBObject, DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
-
Modify an existing document or documents in collection.
- update(DBObject, DBObject) - Method in class com.mongodb.DBCollection
-
Modify an existing document or documents in collection.
- updateMulti(DBObject, DBObject) - Method in class com.mongodb.DBCollection
-
Modify an existing document or documents in collection.
- updateOne(DBObject) - Method in class com.mongodb.BulkUpdateRequestBuilder
-
Adds a request to update one document in the collection that matches the query with which this builder was created.
- updateOne(DBObject) - Method in class com.mongodb.BulkWriteRequestBuilder
-
Adds a request to update one document in the collection that matches the query with which this builder was created.
- updatePortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Assigns a new DBPortPool for a given ServerAddress.
- upsert() - Method in class com.mongodb.BulkWriteRequestBuilder
-
Specifies that the request being built should be an upsert.
- Util - Class in com.mongodb.util
-
Misc utility helpers.
- Util() - Constructor for class com.mongodb.util.Util
-
V
- validate() - Method in class com.mongodb.gridfs.GridFSFile
-
Verifies that the MD5 matches between the database and the local file.
- valueOf(String) - Static method in enum com.mongodb.AggregationOptions.OutputMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.mongodb.MapReduceCommand.OutputType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in class com.mongodb.ReadPreference
-
- valueOf(String, DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- valueOf(String) - Static method in class com.mongodb.WriteConcern
-
Gets the WriteConcern constants by name: NONE, NORMAL, SAFE, FSYNC_SAFE,
REPLICA_SAFE.
- values() - Static method in enum com.mongodb.AggregationOptions.OutputMode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.mongodb.MapReduceCommand.OutputType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
W
- w - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The "w" value, (number of writes), of the global WriteConcern.
- WeakBag<T> - Class in com.mongodb.util
-
Deprecated.
This class is NOT a part of public API and will be dropped in 3.x versions.
- WeakBag() - Constructor for class com.mongodb.util.WeakBag
-
Deprecated.
Initializes a new weak bag.
- WHERE - Static variable in class com.mongodb.QueryOperators
-
- WITHIN - Static variable in class com.mongodb.QueryOperators
-
- withinBox(double, double, double, double) - Method in class com.mongodb.QueryBuilder
-
Equivalent to a $within operand, based on a bounding box using represented by two corners
- withinCenter(double, double, double) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $within operand, used for geospatial operation
- withinCenterSphere(double, double, double) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $centerSphere operand
mostly intended for queries up to a few hundred miles or km.
- withinPolygon(List<Double[]>) - Method in class com.mongodb.QueryBuilder
-
Equivalent to a $within operand, based on a bounding polygon represented by an array of points
- withMechanismProperty(String, T) - Method in class com.mongodb.MongoCredential
-
Creates a new MongoCredential as a copy of this instance, with the specified mechanism property added.
- withTags(Map<String, String>) - Static method in class com.mongodb.ReadPreference
-
Deprecated.
As of release 2.9.0, replaced by
ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets)
- withTags(DBObject) - Static method in class com.mongodb.ReadPreference
-
Deprecated.
As of release 2.9.0, replaced by
ReadPreference.secondaryPreferred(DBObject firstTagSet, DBObject... remainingTagSets)
- wrap(byte[], int, int) - Static method in class org.bson.io.BSONByteBuffer
-
- wrap(byte[]) - Static method in class org.bson.io.BSONByteBuffer
-
- write(byte[]) - Method in class org.bson.io.BasicOutputBuffer
-
- write(byte[], int, int) - Method in class org.bson.io.BasicOutputBuffer
-
- write(int) - Method in class org.bson.io.BasicOutputBuffer
-
- write(byte[]) - Method in class org.bson.io.OutputBuffer
-
- write(byte[], int, int) - Method in class org.bson.io.OutputBuffer
-
- write(int) - Method in class org.bson.io.OutputBuffer
-
- write(byte[]) - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- write(byte[], int, int) - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- write(int) - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- writeConcern(WriteConcern) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the write concern.
- writeConcern - Variable in class com.mongodb.MongoOptions
-
Deprecated.
Sets the write concern.
- WriteConcern - Class in com.mongodb
-
Controls the acknowledgment of write operations with various options.
- WriteConcern() - Constructor for class com.mongodb.WriteConcern
-
Default constructor keeping all options as default.
- WriteConcern(int) - Constructor for class com.mongodb.WriteConcern
-
- WriteConcern(String) - Constructor for class com.mongodb.WriteConcern
-
Tag based Write Concern with wtimeout=0, fsync=false, and j=false
- WriteConcern(int, int) - Constructor for class com.mongodb.WriteConcern
-
- WriteConcern(boolean) - Constructor for class com.mongodb.WriteConcern
-
- WriteConcern(int, int, boolean) - Constructor for class com.mongodb.WriteConcern
-
Creates a WriteConcern object.
- WriteConcern(int, int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
-
Creates a WriteConcern object.
- WriteConcern(int, int, boolean, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
-
Creates a WriteConcern object.
- WriteConcern(String, int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
-
Creates a WriteConcern object.
- WriteConcern(String, int, boolean, boolean, boolean) - Constructor for class com.mongodb.WriteConcern
-
Creates a WriteConcern object.
- WriteConcern.Majority - Class in com.mongodb
-
- WriteConcern.Majority() - Constructor for class com.mongodb.WriteConcern.Majority
-
- WriteConcern.Majority(int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern.Majority
-
- WriteConcernError - Class in com.mongodb
-
An error representing a failure by the server to apply the requested write concern to the bulk operation.
- WriteConcernError(int, String, DBObject) - Constructor for class com.mongodb.WriteConcernError
-
Constructs a new instance.
- WriteConcernException - Exception in com.mongodb
-
An exception representing an error reported due to a write failure.
- WriteConcernException(CommandResult) - Constructor for exception com.mongodb.WriteConcernException
-
Construct a new instance with the CommandResult from getlasterror command
- writeCString(String) - Method in class org.bson.BasicBSONEncoder
-
Deprecated.
Replaced by getOutputBuffer().writeCString(String)
.
- writeCString(String) - Method in class org.bson.io.OutputBuffer
-
Writes C string (null-terminated string) to underlying buffer.
- writeDouble(double) - Method in class org.bson.io.OutputBuffer
-
- writeInt(int) - Method in class org.bson.BasicBSONEncoder
-
Deprecated.
Replaced by getOutputBuffer().writeInt(int)
.
- writeInt(int) - Method in class org.bson.io.OutputBuffer
-
- writeInt(int, int) - Method in class org.bson.io.OutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- writeIntBE(int) - Method in class org.bson.io.OutputBuffer
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- writeLong(long) - Method in class org.bson.BasicBSONEncoder
-
Deprecated.
Replaced by getOutputBuffer().writeLong(long)
.
- writeLong(long) - Method in class org.bson.io.OutputBuffer
-
- writeObject(OutputBuffer, BSONObject) - Method in interface com.mongodb.DBEncoder
-
- writeObject(OutputBuffer, BSONObject) - Method in class com.mongodb.DefaultDBEncoder
-
- writeObject(OutputBuffer, BSONObject) - Method in class com.mongodb.LazyDBEncoder
-
- WriteResult - Class in com.mongodb
-
This class lets you access the results of the previous write.
- writeString(String) - Method in class org.bson.io.OutputBuffer
-
- writeTo(String) - Method in class com.mongodb.gridfs.GridFSDBFile
-
Writes the file's data to a file on disk
- writeTo(File) - Method in class com.mongodb.gridfs.GridFSDBFile
-
Writes the file's data to a file on disk
- writeTo(OutputStream) - Method in class com.mongodb.gridfs.GridFSDBFile
-
Writes the file's data to an OutputStream
- wtimeout - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The "wtimeout" value of the global WriteConcern.
_
- _avail - Variable in class com.mongodb.util.SimplePool
-
Deprecated.
- _binary(String) - Method in class org.bson.BasicBSONDecoder
-
Deprecated.
This method should not be a part of API.
Please see the class-level documentation for a migration instructions.
- _bucketName - Variable in class com.mongodb.gridfs.GridFS
-
- _buf - Variable in class org.bson.BasicBSONEncoder
-
- _callback - Variable in class org.bson.BasicBSONDecoder
-
Deprecated.
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
- _callback - Variable in class org.bson.LazyBSONObject
-
Deprecated.
This field is NOT a part of public API and will be dropped in 3.x versions.
- _checkObject(DBObject, boolean, boolean) - Method in class com.mongodb.DBCollection
-
Deprecated.
This method should not be a part of API.
If you override one of the DBCollection
methods please rely on superclass
implementation in checking argument correctness and validity.
- _chunkCollection - Variable in class com.mongodb.gridfs.GridFS
-
- _cmd - Variable in class com.mongodb.AggregationOutput
-
- _commandResult - Variable in class com.mongodb.AggregationOutput
-
- _db - Variable in class com.mongodb.gridfs.GridFS
-
- _doc_start_offset - Variable in class org.bson.LazyBSONObject
-
- _filesCollection - Variable in class com.mongodb.gridfs.GridFS
-
- _fix(Object) - Method in class com.mongodb.gridfs.GridFS
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- _flip(int) - Static method in class org.bson.types.ObjectId
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
- _fs - Variable in class com.mongodb.gridfs.GridFSFile
-
- _fullName - Variable in class com.mongodb.DBCollection
-
- _hintFields - Variable in class com.mongodb.DBCollection
-
- _in - Variable in class org.bson.BasicBSONDecoder
-
Deprecated.
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
- _inc() - Method in class org.bson.types.ObjectId
-
- _input - Variable in class org.bson.LazyBSONObject
-
- _isAscii(byte) - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- _len - Variable in class org.bson.BasicBSONDecoder
-
Deprecated.
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
- _machine() - Method in class org.bson.types.ObjectId
-
- _msDateFormat - Static variable in class com.mongodb.util.JSONCallback
-
- _name - Variable in class com.mongodb.DBCollection
-
- _name - Variable in class com.mongodb.util.SimplePool
-
Deprecated.
- _need(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
ensure that there are num bytes to read
_pos is where to start reading from
- _objectClass - Variable in class com.mongodb.DBCollection
-
- _out - Variable in class com.mongodb.util.SimplePool
-
Deprecated.
- _pos - Variable in class org.bson.BasicBSONDecoder
-
Deprecated.
This field should not be a part of API.
Please see the class-level documentation for a migration instructions.
- _put(String, Object) - Method in class org.bson.BasicBSONCallback
-
- _put(byte, String) - Method in class org.bson.BasicBSONEncoder
-
Deprecated.
This method is NOT a part of public API and will be dropped in 3.x versions.
Access buffer directly via BasicBSONEncoder.getOutputBuffer()
if you need to change how BSON is written.
- _put(String) - Method in class org.bson.BasicBSONEncoder
-
Deprecated.
Replaced by getOutputBuffer().writeCString(String)
.
- _putObjectField(String, Object) - Method in class org.bson.BasicBSONEncoder
-
- _putValueString(String) - Method in class org.bson.BasicBSONEncoder
-
- _readOnly - Variable in class com.mongodb.DB
-
- _resultSet - Variable in class com.mongodb.AggregationOutput
-
- _secDateFormat - Static variable in class com.mongodb.util.JSONCallback
-
- _size - Variable in class com.mongodb.util.SimplePool
-
Deprecated.
- _time() - Method in class org.bson.types.ObjectId
-
- _utf8 - Static variable in class org.bson.BSON
-
A B C D E F G H I J K L M N O P Q R S T U V W _