- genIndexName(DBObject) - Static method in class com.mongodb.DBCollection
-
Convenience method to generate an index name from the set of fields it is over.
- get() - Method in class com.mongodb.BasicDBObjectBuilder
-
gets the base object
- get() - Method in class com.mongodb.DBPortPool
-
- get(String) - Method in class com.mongodb.gridfs.GridFSFile
-
- get() - Method in class com.mongodb.QueryBuilder
-
Creates a DBObject
query to be used for the driver's find operations
- get(String) - Method in class com.mongodb.RawDBObject
-
- get(String) - Method in class com.mongodb.ReflectionDBObject
-
- get(ReflectionDBObject, String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
- get(int) - Method in class com.mongodb.util.FastStack
-
- get() - Method in class com.mongodb.util.SimplePool
-
Gets an object from the pool - will block if none are available
- get(long) - Method in class com.mongodb.util.SimplePool
-
Gets an object from the pool - will block if none are available
- get() - Method in class org.bson.BasicBSONCallback
-
- get(String) - Method in class org.bson.BasicBSONObject
-
Gets a value from this object
- get() - Method in interface org.bson.BSONCallback
-
- get(String) - Method in interface org.bson.BSONObject
-
Gets a field from this object by a given name.
- get() - Method in class org.bson.LazyBSONCallback
-
- get(String) - Method in class org.bson.LazyBSONObject
-
- get(String) - Method in class org.bson.types.BasicBSONList
-
Gets a value at an index.
- get() - Static method in class org.bson.types.ObjectId
-
Gets a new object id.
- get(Object) - Method in class org.bson.util.ClassMap
-
get
- get() - Method in class org.bson.util.SimplePool
-
- get_id() - Method in class com.mongodb.ReflectionDBObject
-
Gets the _id
- getAddress() - Method in class com.mongodb.DBTCPConnector
-
- getAddress() - Method in class com.mongodb.Mongo
-
Gets the address of the current master
- getAliases() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the aliases from the metadata.
- getAll() - Method in class com.mongodb.util.SimplePool
-
- getAll() - Method in class com.mongodb.util.WeakBag
-
- getAllAddress() - Method in class com.mongodb.DBTCPConnector
-
Gets the list of seed server addresses
- getAllAddress() - Method in class com.mongodb.Mongo
-
Gets a list of all server addresses used when this Mongo was created
- getAncestry(Class) - Static method in class org.bson.util.ClassMap
-
getAncestry
Walks superclass and interface graph, superclasses first, then
interfaces, to compute an ancestry list.
- getAttribute(String) - Method in class com.mongodb.util.SimplePool
-
- getAttributes(String[]) - Method in class com.mongodb.util.SimplePool
-
- getBoolean(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a boolean.
- getBoolean(String, boolean) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a boolean
- getBSONSize() - Method in class org.bson.LazyBSONObject
-
- getBucketName() - Method in class com.mongodb.gridfs.GridFS
-
gets the bucket name used in the collection's namespace
- getCache() - Method in class org.bson.util.ClassMap
-
cache
- getCachedLastError() - Method in class com.mongodb.WriteResult
-
Gets the last result from getLastError()
- getChunkSize() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the size of a chunk
- getCode() - Method in exception com.mongodb.MongoException
-
Gets the exception code
- getCode() - Method in class com.mongodb.ServerError
-
Gets the error code
- getCode() - Method in class org.bson.types.Code
-
- getCollection(String) - Method in class com.mongodb.DB
-
Gets a collection with a given name.
- getCollection(String) - Method in class com.mongodb.DBCollection
-
Finds a collection that is prefixed with this collection's name.
- getCollection() - Method in class com.mongodb.DBCursor
-
gets the collection
- getCollection() - Method in class com.mongodb.MongoURI
-
Gets the collection name
- getCollectionFromString(String) - Method in class com.mongodb.DB
-
Returns a collection matching a given string.
- getCollectionNames() - Method in class com.mongodb.DB
-
Returns a set containing the names of all collections in this database.
- getCommand() - Method in class com.mongodb.MapReduceOutput
-
- getCommand() - Method in class com.mongodb.WriteConcern
-
Gets the object representing the "getlasterror" command
- getConnector() - Method in class com.mongodb.Mongo
-
Gets the underlying TCP connector
- getConnectPoint() - Method in class com.mongodb.DBTCPConnector
-
- getConnectPoint() - Method in class com.mongodb.Mongo
-
Gets the current master's hostname
- getContentType() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the content type
- getCount() - Method in class com.mongodb.DBCollection
-
- getCount(DBObject) - Method in class com.mongodb.DBCollection
-
- getCount(DBObject, DBObject) - Method in class com.mongodb.DBCollection
-
- getCount(DBObject, DBObject, long, long) - Method in class com.mongodb.DBCollection
-
Returns the number of documents in the collection
that match the specified query
- getCurrentInc() - Static method in class org.bson.types.ObjectId
-
Gets the current value of the auto increment
- getCursorId() - Method in class com.mongodb.DBCursor
-
gets the cursor id.
- getData() - Method in class org.bson.types.Binary
-
- getDatabase() - Method in class com.mongodb.MongoURI
-
Gets the database name
- getDatabaseNames() - Method in class com.mongodb.Mongo
-
gets a list of all database names present on the server
- getDB() - Method in class com.mongodb.DBCollection
-
Returns the database this collection is a member of.
- getDB() - Method in class com.mongodb.DBRefBase
-
Gets the database
- getDB() - Method in class com.mongodb.gridfs.GridFS
-
gets the db used
- getDB(String) - Method in class com.mongodb.Mongo
-
gets a database object
- getDBCallback(DBCollection) - Method in interface com.mongodb.DBDecoder
-
- getDBCallback(DBCollection) - Method in class com.mongodb.DefaultDBDecoder
-
- getDBCallback(DBCollection) - Method in class com.mongodb.LazyDBDecoder
-
- getDBDecoderFactory() - Method in class com.mongodb.DBCollection
-
- getDBName() - Method in class com.mongodb.DBAddress
-
gets the database name
- getDBPortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
Gets the DBPortPool associated with a ServerAddress.
- getDecodingHooks(Class) - Static method in class org.bson.BSON
-
Returns the decoding hook(s) associated with the specific class
- getDouble(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a double
.
- getEncodingHooks(Class) - Static method in class org.bson.BSON
-
Returns the encoding hook(s) associated with the specified class
- getError() - Method in class com.mongodb.ServerError
-
Gets the error String
- getError() - Method in class com.mongodb.WriteResult
-
Gets the error String ("err" field)
- getErrorCode() - Method in exception org.bson.BSONException
-
Returns the error code.
- getErrorMessage() - Method in class com.mongodb.CommandResult
-
gets the "errmsg" field which holds the error message
- getException() - Method in class com.mongodb.CommandResult
-
utility method to create an exception with the command name
- getExtraOptions() - Method in class com.mongodb.MapReduceCommand
-
- getField(String) - Method in class com.mongodb.WriteResult
-
Gets a field
- getFileList() - Method in class com.mongodb.gridfs.GridFS
-
gets the list of files stored in this gridfs, sorted by filename
- getFileList(DBObject) - Method in class com.mongodb.gridfs.GridFS
-
gets a filtered list of files stored in this gridfs, sorted by filename
- getFilename() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the filename
- getFinalize() - Method in class com.mongodb.MapReduceCommand
-
Gets the Finalize JS Function
- getFullName() - Method in class com.mongodb.DBCollection
-
Returns the full name of this collection, with the database name as a prefix.
- getGenMachineId() - Static method in class org.bson.types.ObjectId
-
Gets the generated machine ID, identifying the machine / process / class loader
- getHost() - Method in class com.mongodb.ServerAddress
-
Gets the hostname
- getHosts() - Method in class com.mongodb.MongoURI
-
Gets the list of hosts
- getId() - Method in class com.mongodb.DBPointer
-
Deprecated.
- getId() - Method in class com.mongodb.DBRefBase
-
Gets the object's id
- getId() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the id
- getInc() - Method in class org.bson.types.BSONTimestamp
-
- getInc() - Method in class org.bson.types.ObjectId
-
- getIndexInfo() - Method in class com.mongodb.DBCollection
-
Return a list of the indexes for this collection.
- getInput() - Method in class com.mongodb.MapReduceCommand
-
Get the name of the collection the MapReduce will read from
- getInputStream() - Method in class com.mongodb.gridfs.GridFSDBFile
-
Returns an InputStream from which data can be read
- getInt(String, int) - Method in class com.mongodb.util.OptionMap
-
- getInt(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an int
.
- getInt(String, int) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an int
.
- getInternalClass(String) - Method in class com.mongodb.DBCollection
-
gets the internal class
- getInternalMap() - Method in class org.bson.util.ClassMap
-
internalMap
- getKeysWanted() - Method in class com.mongodb.DBCursor
-
gets the fields to be returned
- getLastConcern() - Method in class com.mongodb.WriteResult
-
- getLastError() - Method in class com.mongodb.DB
-
Gets the the error (if there is one) from the previous operation on this connection.
- getLastError(WriteConcern) - Method in class com.mongodb.DB
-
- getLastError(int, int, boolean) - Method in class com.mongodb.DB
-
- getLastError() - Method in class com.mongodb.WriteResult
-
- getLastError(WriteConcern) - Method in class com.mongodb.WriteResult
-
This method does following:
- returns the existing CommandResult if concern is null or less strict than the concern it was obtained with
- otherwise attempts to obtain a CommandResult by calling getLastError with the concern
- 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
- getLong(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a long
.
- getMachine() - Method in class org.bson.types.ObjectId
-
- getMap() - Method in class com.mongodb.MapReduceCommand
-
Get the map function, as a JS String
- getMaxBsonObjectSize() - Method in class com.mongodb.DBTCPConnector
-
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.
- getMBeanInfo() - Method in class com.mongodb.util.SimplePool
-
- getMD5() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the observed MD5 during transfer
- getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the file metadata
- getMongo() - Method in class com.mongodb.DB
-
Gets the Mongo instance
- getMongoOptions() - Method in class com.mongodb.Mongo
-
Returns the mongo options.
- 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 class com.mongodb.ReplicaSetStatus
-
- getObjectClass() - Method in class com.mongodb.DBCollection
-
Gets the default class for objects in the collection
- getOption(String) - Method in class com.mongodb.util.Args
-
- getOptions() - Method in class com.mongodb.DB
-
Gets the 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.MongoURI
-
Gets the options
- getOutputCollection() - Method in class com.mongodb.MapReduceOutput
-
gets the collection that holds the results
(Will return null if results are Inline)
- 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.MongoURI
-
Gets the password
- getPool() - Method in class com.mongodb.DBPort
-
Gets the pool that this port belongs to
- getPort() - Method in class com.mongodb.ServerAddress
-
Gets the port number
- getPosition() - Method in class org.bson.io.BasicOutputBuffer
-
- getPosition() - Method in class org.bson.io.OutputBuffer
-
- getPosition() - Method in class org.bson.io.PoolOutputBuffer
-
- getPreviousError() - Method in class com.mongodb.DB
-
Returns the last error that occurred since start of database or a call to resetError()
The return object will look like
- getQuery() - Method in class com.mongodb.DBCursor
-
gets the query
- getQuery() - Method in class com.mongodb.MapReduceCommand
-
Gets the query to run for this MapReduce job
- getRaw() - Method in class com.mongodb.MapReduceOutput
-
- 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)
- getReplicaSetStatus() - Method in class com.mongodb.DBTCPConnector
-
- getReplicaSetStatus() - Method in class com.mongodb.Mongo
-
Gets the replica set status object
- getScope() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) JavaScript scope
- getScope() - Method in class org.bson.types.CodeWScope
-
- 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
-
- getServerAddressList() - Method in class com.mongodb.DBTCPConnector
-
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 the connector.
- 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
- getSizes() - Method in class com.mongodb.DBCursor
-
gets a list containing the number of items received in each batch
- getSocketAddress() - Method in class com.mongodb.ServerAddress
-
Gets the underlying socket address
- getSort() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) sort specification object
- getStats() - Method in class com.mongodb.DB
-
Returns the result of "dbstats" command
- getStats() - Method in class com.mongodb.DBCollection
-
gets the collections statistics ("collstats" command)
- getStatus() - Static method in class com.mongodb.util.ThreadUtil
-
- getStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
-
- getString(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a string
- getSymbol() - Method in class org.bson.types.Symbol
-
- getTime() - Method in class org.bson.types.BSONTimestamp
-
- getTime() - Method in class org.bson.types.ObjectId
-
Gets the time of this ID, in milliseconds
- getTimeSecond() - Method in class org.bson.types.ObjectId
-
Gets the time of this ID, in seconds
- 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
- getUsedDatabases() - Method in class com.mongodb.Mongo
-
gets a collection of DBs used by the driver since this Mongo instance was created.
- getUsername() - Method in class com.mongodb.MongoURI
-
Gets the username
- getVersion() - Method in class com.mongodb.Mongo
-
gets this driver version
- getW() - Method in class com.mongodb.WriteConcern
-
Gets the number of servers to write to
- 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
-
Get the write concern for this collection.
- getWriteConcern() - Method in class com.mongodb.Mongo
-
Gets the default write concern
- getWriteConcern() - Method in class com.mongodb.MongoOptions
-
Helper method to return the appropriate WriteConcern instance based
on the current related options settings.
- 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.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.LazyBSONCallback
-
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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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
-
- gotDBRef(String, String, ObjectId) - Method in class org.bson.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- gotMaxKey(String) - Method in class org.bson.BasicBSONCallback
-
- gotMaxKey(String) - Method in interface org.bson.BSONCallback
-
- gotMaxKey(String) - Method in class org.bson.LazyBSONCallback
-
- gotMinKey(String) - Method in class org.bson.BasicBSONCallback
-
- gotMinKey(String) - Method in interface org.bson.BSONCallback
-
- gotMinKey(String) - Method in class org.bson.LazyBSONCallback
-
- gotNull(String) - Method in class org.bson.BasicBSONCallback
-
- gotNull(String) - Method in interface org.bson.BSONCallback
-
- gotNull(String) - Method in class org.bson.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- gotUndefined(String) - Method in class org.bson.BasicBSONCallback
-
- gotUndefined(String) - Method in interface org.bson.BSONCallback
-
- gotUndefined(String) - Method in class org.bson.LazyBSONCallback
-
- 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.LazyBSONCallback
-
- 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
- group(DBObject, DBObject, DBObject, String) - Method in class com.mongodb.DBCollection
-
- group(DBObject, DBObject, DBObject, String, String) - Method in class com.mongodb.DBCollection
-
Applies a group operation
- group(GroupCommand) - Method in class com.mongodb.DBCollection
-
Applies a group operation
- 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
-
- GT - Static variable in class com.mongodb.QueryOperators
-
- GTE - Static variable in class com.mongodb.QueryOperators
-
- main(String[]) - Static method in class com.mongodb.gridfs.CLI
-
- main(String[]) - Static method in class com.mongodb.ReplicaSetStatus
-
- main(String[]) - Static method in class com.mongodb.util.TestCase
-
- MAJOR_VERSION - Static variable in class com.mongodb.Mongo
-
- mapReduce(String, String, String, DBObject) - Method in class com.mongodb.DBCollection
-
performs a map reduce operation
Runs the command in REPLACE output mode (saves to named collection)
- mapReduce(String, String, String, MapReduceCommand.OutputType, DBObject) - Method in class com.mongodb.DBCollection
-
performs a map reduce operation
Specify an outputType to control job execution
* INLINE - Return results inline
* REPLACE - Replace the output collection with the job output
* MERGE - Merge the job output with the existing contents of outputTarget
* REDUCE - Reduce the job output with the existing contents of
outputTarget
- mapReduce(MapReduceCommand) - Method in class com.mongodb.DBCollection
-
performs a map reduce operation
- mapReduce(DBObject) - Method in class com.mongodb.DBCollection
-
performs a map reduce operation
- 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
-
INLINE - Return results inline, no result is written to the DB server
REPLACE - Save the job output to a collection, replacing its previous content
MERGE - Merge the job output with the existing contents of outputTarget collection
REDUCE - Reduce the job output with the existing contents of outputTarget collection
- MapReduceOutput - Class in com.mongodb
-
Represents the result of a map/reduce operation
- MapReduceOutput(DBCollection, DBObject, BasicDBObject) - Constructor for class com.mongodb.MapReduceOutput
-
- 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
-
- markAsPartialObject() - Method in class com.mongodb.ReflectionDBObject
-
ReflectionDBObjects can't be partial
- massageToObjectId(Object) - Static method in class org.bson.types.ObjectId
-
Turn an object into an ObjectId
, if possible.
- maxAutoConnectRetryTime - Variable in class com.mongodb.MongoOptions
-
The maximum amount of time in MS to spend retrying to open connection to the same server.
- 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
-
- maxToKeep() - Method in class com.mongodb.util.SimplePool
-
- maxWaitTime - Variable in class com.mongodb.MongoOptions
-
The maximum wait time in ms that a thread may wait for a connection to become available.
- md5() - Method in class org.bson.io.OutputBuffer
-
- memSize(DBPort) - Method in class com.mongodb.DBPortPool
-
- memSize(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
-
- MINKEY - Static variable in class org.bson.BSON
-
- MinKey - Class in org.bson.types
-
Represent the minimum key value regardless of the key's type
- MinKey() - Constructor for class org.bson.types.MinKey
-
- MINOR_VERSION - Static variable in class com.mongodb.Mongo
-
- mod(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $mod operand
- MOD - Static variable in class com.mongodb.QueryOperators
-
- Mongo - Class in com.mongodb
-
A database connection with internal pooling.
- Mongo() - Constructor for class com.mongodb.Mongo
-
Creates a Mongo instance based on a (single) mongodb node (localhost, default port)
- Mongo(String) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo instance based on a (single) mongodb node (default port)
- Mongo(String, MongoOptions) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo instance based on a (single) mongodb node (default port)
- Mongo(String, int) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo instance based on a (single) mongodb node
- Mongo(ServerAddress) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo instance based on a (single) mongodb node
- Mongo(ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo instance based on a (single) mongo node using a given ServerAddress
- Mongo(ServerAddress, ServerAddress) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo in paired mode.
- Mongo(ServerAddress, ServerAddress, MongoOptions) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo connection in paired mode.
- Mongo(List<ServerAddress>) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo based on a replica set, or pair.
- Mongo(List<ServerAddress>, MongoOptions) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo based on a replica set, or pair.
- Mongo(MongoURI) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo described by a URI.
- 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
-
- MONGODB_PREFIX - Static variable in class com.mongodb.MongoURI
-
- 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
-
Subclass of MongoException representing a cursor-not-found exception
- MongoException.DuplicateKey - Exception in com.mongodb
-
Subclass of MongoException representing a duplicate key exception
- MongoException.Network - Exception in com.mongodb
-
Subclass of MongoException representing a network-related exception
- 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
-
- MongoOptions - Class in com.mongodb
-
Various settings for the driver
- MongoOptions() - Constructor for class com.mongodb.MongoOptions
-
- 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
-
Creates a MongoURI described by a String.
- MS_DAY - Static variable in class com.mongodb.util.TimeConstants
-
- MS_HOUR - Static variable in class com.mongodb.util.TimeConstants
-
- MS_MILLISECOND - Static variable in class com.mongodb.util.TimeConstants
-
- MS_MINUTE - Static variable in class com.mongodb.util.TimeConstants
-
- MS_MONTH - Static variable in class com.mongodb.util.TimeConstants
-
- MS_SECOND - Static variable in class com.mongodb.util.TimeConstants
-
- MS_WEEK - Static variable in class com.mongodb.util.TimeConstants
-
- MS_YEAR - Static variable in class com.mongodb.util.TimeConstants
-
- MyAsserts - Class in com.mongodb.util
-
- MyAsserts() - Constructor for class com.mongodb.util.MyAsserts
-
- MyAsserts.MyAssert - Exception in com.mongodb.util
-
- raiseNetworkErrors() - Method in class com.mongodb.WriteConcern
-
Returns whether network error may be raised (w >= 0)
- RawDBObject - Class in com.mongodb
-
This object wraps the binary object format ("BSON") used for the transport of serialized objects to / from the Mongo database.
- read() - Method in class org.bson.BasicBSONDecoder.Input
-
- readBinary(int) - Method in class org.bson.LazyBSONObject
-
- readFully(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
- readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
-
- readInt() - Method in class org.bson.BasicBSONDecoder.Input
-
- 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(byte[], int) - Static method in class org.bson.io.Bits
-
- 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
-
- 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(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
-
Removes objects from the database collection.
- remove(DBObject) - Method in class com.mongodb.DBCollection
-
- 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
-
- remove(T) - Method in class com.mongodb.util.SimplePool
-
- remove(T) - Method in class com.mongodb.util.WeakBag
-
- remove() - Method in class org.bson.LazyBSONObject.LazyBSONIterator
-
- remove(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
- remove(Object) - Method in class org.bson.util.ClassMap
-
remove
- remove(Object) - Method in class org.bson.util.StringRangeSet
-
- removeall(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
-
- removeAll(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
-
- removeAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
- 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.RawDBObject
-
- 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
-
- removeUser(String) - Method in class com.mongodb.DB
-
Removes a user for this db
- rename(String) - Method in class com.mongodb.DBCollection
-
Calls {@link DBCollection#rename(java.lang.String, boolean) with dropTarget=false
- rename(String, boolean) - Method in class com.mongodb.DBCollection
-
renames of this collection to newName
- 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
has a background thread to ping so it stays current
TODO
pull config to get
priority
slave delay
tags (when we do it)
- requestDone() - Method in class com.mongodb.DB
-
ends the current "consistent request"
- requestDone() - Method in class com.mongodb.DBApiLayer
-
- requestDone() - Method in interface com.mongodb.DBConnector
-
terminates the "consistent request".
- requestDone() - Method in class com.mongodb.DBTCPConnector
-
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"
- requestEnsureConnection() - Method in class com.mongodb.DBApiLayer
-
- requestEnsureConnection() - Method in interface com.mongodb.DBConnector
-
Ensures that a connection exists for the "consistent request"
- requestEnsureConnection() - Method in class com.mongodb.DBTCPConnector
-
- requestStart() - Method in class com.mongodb.DB
-
starts a new "consistent request".
- requestStart() - Method in class com.mongodb.DBApiLayer
-
- requestStart() - Method in interface com.mongodb.DBConnector
-
initiates a "consistent request" on the thread.
- requestStart() - Method in class com.mongodb.DBTCPConnector
-
Start a "request".
- reset() - Method in class com.mongodb.DefaultDBCallback
-
- reset() - Method in class com.mongodb.MongoOptions
-
- reset() - Method in class org.bson.BasicBSONCallback
-
- reset() - Method in interface org.bson.BSONCallback
-
- reset() - Method in class org.bson.io.PoolOutputBuffer
-
- reset() - Method in class org.bson.LazyBSONCallback
-
- resetError() - Method in class com.mongodb.DB
-
Resets the error memory for this database.
- resetIndexCache() - Method in class com.mongodb.DBCollection
-
Clears all indices that have not yet been applied to this collection.
- 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.MapReduceOutput
-
returns a cursor to the results of the operation
- retainAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
- retainAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
-
- run(String[]) - Static method in class com.mongodb.util.TestCase
-
- runConsole() - Method in class com.mongodb.util.TestCase
-
- S_DAY - Static variable in class com.mongodb.util.TimeConstants
-
- S_HOUR - Static variable in class com.mongodb.util.TimeConstants
-
- S_MINUTE - Static variable in class com.mongodb.util.TimeConstants
-
- S_MONTH - Static variable in class com.mongodb.util.TimeConstants
-
- S_SECOND - Static variable in class com.mongodb.util.TimeConstants
-
- S_WEEK - Static variable in class com.mongodb.util.TimeConstants
-
- S_YEAR - Static variable in class com.mongodb.util.TimeConstants
-
- safe - Variable in class com.mongodb.MongoOptions
-
If true the driver will use a WriteConcern of WriteConcern.SAFE for all operations.
- SAFE - Static variable in class com.mongodb.WriteConcern
-
Exceptions are raised for network issues, and server errors; waits on a server for the write operation
- 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
-
- save(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
-
Saves an object to this collection (does insert or update based on the object _id).
- 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
-
does a write operation
- say(DB, OutMessage, WriteConcern, ServerAddress) - Method in interface com.mongodb.DBConnector
-
does a write operation
- say(DB, OutMessage, WriteConcern) - Method in class com.mongodb.DBTCPConnector
-
- say(DB, OutMessage, WriteConcern, ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
- seekEnd() - Method in class org.bson.io.BasicOutputBuffer
-
- seekEnd() - Method in class org.bson.io.OutputBuffer
-
- seekEnd() - Method in class org.bson.io.PoolOutputBuffer
-
- seekStart() - Method in class org.bson.io.BasicOutputBuffer
-
- seekStart() - Method in class org.bson.io.OutputBuffer
-
- seekStart() - Method in class org.bson.io.PoolOutputBuffer
-
- serialize(Object) - Static method in class com.mongodb.util.JSON
-
Serializes an object into it's JSON form
- serialize(Object, StringBuilder) - Static method in class com.mongodb.util.JSON
-
- 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.BSONEncoder
-
- set_id(Object) - Method in class com.mongodb.ReflectionDBObject
-
Sets the _id
- setAttribute(Attribute) - Method in class com.mongodb.util.SimplePool
-
- setAttributes(AttributeList) - Method in class com.mongodb.util.SimplePool
-
- setChunkSize(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Set the chunk size.
- setContentType(String) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Sets the content type (MIME type) on the GridFS entry.
- setDBDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCollection
-
- 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
- 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).
- setInternalClass(String, Class) - Method in class com.mongodb.DBCollection
-
sets the internal class
- setLimit(int) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) limit on input
- 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 query options
- setOptions(int) - Method in class com.mongodb.DBCollection
-
sets the default query options
- 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
-
sets the default query options
- setOutputDB(String) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) database name where the output collection should reside
- setPosition(int) - Method in class org.bson.io.BasicOutputBuffer
-
- setPosition(int) - Method in class org.bson.io.OutputBuffer
-
- setPosition(int) - Method in class org.bson.io.PoolOutputBuffer
-
- setReadOnly(Boolean) - Method in class com.mongodb.DB
-
Makes this database read-only.
- setRoot(Object) - Method in class org.bson.BasicBSONCallback
-
- setRootObject(Object) - Method in class org.bson.LazyBSONCallback
-
- setScope(Map<String, Object>) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) JavaScript scope
- setSort(DBObject) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) sort specification object
- setVerbose(Boolean) - Method in class com.mongodb.MapReduceCommand
-
Sets the verbosity of the MapReduce job,
defaults to 'true'
- 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.
- SimplePool<T> - Class in com.mongodb.util
-
- SimplePool(String, int, int) - Constructor for class com.mongodb.util.SimplePool
-
See full constructor docs
- SimplePool(String, int, int, boolean, boolean) - Constructor for class com.mongodb.util.SimplePool
-
Initializes a new pool of objects.
- SimplePool<T> - Class in org.bson.util
-
- SimplePool(int) - Constructor for class org.bson.util.SimplePool
-
- SimplePool() - Constructor for class org.bson.util.SimplePool
-
- 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
-
- size() - Method in class com.mongodb.util.IdentitySet
-
- size() - Method in class com.mongodb.util.WeakBag
-
Returns the size of the bag.
- size() - Method in class org.bson.io.BasicOutputBuffer
-
- size() - Method in class org.bson.io.OutputBuffer
-
- size() - Method in class org.bson.io.PoolOutputBuffer
-
- size() - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
- size() - Method in class org.bson.util.ClassMap
-
size
- size() - Method in class org.bson.util.StringRangeSet
-
- 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
-
Makes it possible to execute "read" queries on a slave node
- slaveOk() - Method in class com.mongodb.DBCollection
-
makes this query ok to run on a slave node
- slaveOk() - Method in class com.mongodb.DBCursor
-
makes this query ok to run on a slave node
- slaveOk() - Method in class com.mongodb.Mongo
-
makes it possible to run read queries on slave nodes
- slaveOk - Variable in class com.mongodb.MongoOptions
-
This flag specifies if the driver is allowed to read from secondary (slave) servers.
- sleep(long) - Static method in class com.mongodb.util.ThreadUtil
-
Pauses for a given number of milliseconds
- snapshot() - Method in class com.mongodb.DBCursor
-
Use snapshot mode for the query.
- socketFactory - Variable in class com.mongodb.MongoOptions
-
sets the socket factory for creating sockets to mongod
Default is SocketFactory.getDefault()
- socketKeepAlive - Variable in class com.mongodb.MongoOptions
-
This flag controls the socket keep alive feature that keeps a connection alive through firewalls Socket.setKeepAlive(boolean)
Default is false.
- socketTimeout - Variable in class com.mongodb.MongoOptions
-
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
-
- start() - Static method in class com.mongodb.QueryBuilder
-
returns a new QueryBuilder
- start(String) - Static method in class com.mongodb.QueryBuilder
-
Creates a new query with a document key
- STRING - Static variable in class org.bson.BSON
-
- StringBuilderPool - Class in com.mongodb.util
-
- StringBuilderPool(String, int, int) - Constructor for class com.mongodb.util.StringBuilderPool
-
Initializes a pool of a given number of StringBuilders, each of a certain size.
- StringParseUtil - Class in com.mongodb.util
-
- StringParseUtil() - Constructor for class com.mongodb.util.StringParseUtil
-
- StringRangeSet - Class in org.bson.util
-
- StringRangeSet(int) - Constructor for class org.bson.util.StringRangeSet
-
- 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
-