- cache - Variable in class org.bson.util.ClassMap
-
- call(DB, DBCollection, OutMessage, ServerAddress, DBDecoder) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a read operation on the database
- call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a read operation on the database
- call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a read operation on the database
- call(OutMessage, DBCollection) - Method in class com.mongodb.DBPort
-
Deprecated.
- call(OutMessage, DBCollection, DBDecoder) - Method in class com.mongodb.DBPort
-
Deprecated.
- call(DB, DBCollection, OutMessage, ServerAddress, DBDecoder) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- call(DB, DBCollection, OutMessage, ServerAddress, int) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- call(DB, DBCollection, OutMessage, ServerAddress, int, ReadPreference, DBDecoder) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- callGetLastError() - Method in class com.mongodb.WriteConcern
-
Returns whether "getlasterror" should be called (w > 0)
- canonicalAddress - Variable in class com.mongodb.ServerDescription.Builder
-
- canonicalAddress(String) - Method in class com.mongodb.ServerDescription.Builder
-
- canonicalAddress - Variable in class com.mongodb.ServerDescription
-
- canonicalize(Object) - Static method in class org.bson.BasicBSONObject
-
- CANONICALIZE_HOST_NAME_KEY - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- canonicalizeBSONObject(BSONObject) - Static method in class org.bson.BasicBSONObject
-
- canonicalizeList(List<Object>) - Static method in class org.bson.BasicBSONObject
-
- canonicalizeMap(Map<String, Object>) - Static method in class org.bson.BasicBSONObject
-
- capacity() - Method in class com.mongodb.io.ByteBufferHolder
-
Deprecated.
- casNext(ConcurrentLinkedDeque.Node<E>, ConcurrentLinkedDeque.Node<E>) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
-
compareAndSet next link
- CENTER - Static variable in class com.mongodb.QueryOperators
-
- CENTER_SPHERE - Static variable in class com.mongodb.QueryOperators
-
- ChangeEvent<T> - Class in com.mongodb
-
- ChangeEvent(T, T) - Constructor for class com.mongodb.ChangeEvent
-
- ChangeListener<T> - Interface in com.mongodb
-
Listener for ChangeEvents - classes that implement this will be informed if classes of type T are changed.
- changeListeners - Variable in class com.mongodb.DefaultServer
-
- check(char) - Method in class com.mongodb.util.JSONParser
-
Checks the current character, making sure that it is the expected character.
- checkAuth(Mongo) - Method in class com.mongodb.DBPort
-
Deprecated.
- checkByte(int, int, int) - Static method in class org.bson.io.UTF8Encoding
-
- checkedOutCount - Variable in class com.mongodb.ConnectionPoolStatistics
-
- checkMinimal(int, int) - Static method in class org.bson.io.UTF8Encoding
-
- checkNotNull(Object) - Static method in class com.mongodb.ConcurrentLinkedDeque
-
Throws NullPointerException if argument is null.
- checkPreconditions(String, BSONWriter.State...) - Method in class com.mongodb.BSONWriter
-
- checkReadOnly(boolean) - Method in class com.mongodb.DBCollection
-
- checkState(BSONWriter.State[]) - Method in class com.mongodb.BSONWriter
-
- choose(ClusterDescription) - Method in class com.mongodb.AnyServerSelector
-
- choose(ClusterDescription) - Method in class com.mongodb.CompositeServerSelector
-
- choose(ClusterDescription) - Method in class com.mongodb.LatencyMinimizingServerSelector
-
- choose(ClusterDescription) - Method in class com.mongodb.MongosHAServerSelector
-
- choose(ClusterDescription) - Method in class com.mongodb.ReadPreference
-
- choose(ClusterDescription) - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
-
- choose(ClusterDescription) - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- choose(ClusterDescription) - Method in class com.mongodb.ReadPreferenceServerSelector
-
- choose(ClusterDescription) - Method in class com.mongodb.ServerAddressSelector
-
- choose(ClusterDescription) - Method in interface com.mongodb.ServerSelector
-
- choose(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference
-
- choose(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.PrimaryPreferredReadPreference
-
- choose(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
-
- chooseBatchSize(int, int, int) - Static method in class com.mongodb.QueryResultIterator
-
- ClassAncestry - Class in org.bson.util
-
- ClassAncestry() - Constructor for class org.bson.util.ClassAncestry
-
- ClassMap<T> - Class in org.bson.util
-
Maps Class objects to values.
- ClassMap() - Constructor for class org.bson.util.ClassMap
-
- ClassMap.ComputeFunction - Class in org.bson.util
-
- ClassMapBasedObjectSerializer - Class in com.mongodb.util
-
Objects of type ClassMapBasedObjectSerializer are constructed to perform
instance specific object to JSON serialization schemes.
- ClassMapBasedObjectSerializer() - Constructor for class com.mongodb.util.ClassMapBasedObjectSerializer
-
- CLDIterator() - Constructor for class com.mongodb.ConcurrentLinkedDeque.CLDIterator
-
- clean() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
Removes any null objects from the bag.
- cleanCursors(boolean) - Method in class com.mongodb.DB
-
- cleanCursors(boolean) - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- cleanerIntervalMS - Static variable in class com.mongodb.Mongo
-
- cleanup(DBPort) - Method in class com.mongodb.DBPortPool
-
Deprecated.
- cleanup(T) - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Override this if you need to do any cleanup
- clear() - Method in class com.mongodb.ConcurrentLinkedDeque
-
Removes all of the elements from this deque.
- clear() - Method in class com.mongodb.util.FastStack
-
Deprecated.
- clear() - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- clear() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
Removes all object from the bag.
- clear() - Method in class org.bson.LazyBSONList
-
- clear() - Method in class org.bson.LazyBSONObject.ReadOnlySet
-
- clear() - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- clear() - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
-
- clear() - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
-
- clear() - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
-
- clear() - Method in class org.bson.util.ClassMap
-
As per java.util.Map, removes all of the mappings from this map (optional operation).
- clear() - Method in class org.bson.util.ComputingMap
-
- clear() - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- clearAllHooks() - Static method in class org.bson.BSON
-
Remove all decoding and encoding hooks for all classes.
- clearDecodingHooks() - Static method in class org.bson.BSON
-
Clears all decoding hooks.
- clearEncodingHooks() - Static method in class org.bson.BSON
-
Clears all encoding hooks.
- clearStatus() - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- clearStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- CLI - Class in com.mongodb.gridfs
-
a simple CLI for Gridfs
- CLI() - Constructor for class com.mongodb.gridfs.CLI
-
- clientFirstMessageBare - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- close() - Method in class com.mongodb.BaseCluster
-
- close() - Method in class com.mongodb.BSONBinaryWriter
-
- close() - Method in class com.mongodb.BSONWriter
-
Closes the writer.
- close() - Method in interface com.mongodb.Cluster
-
Closes connections to the servers in the cluster.
- close() - Method in interface com.mongodb.ClusterableServer
-
Closes the server.
- close() - Method in class com.mongodb.ConcurrentPool
-
Clears the pool of all objects.
- close(T) - Method in class com.mongodb.ConcurrentPool
-
- close(T) - Method in interface com.mongodb.ConcurrentPool.ItemFactory
-
- close() - Method in interface com.mongodb.Connection
-
- close() - Method in interface com.mongodb.Cursor
-
Terminates this cursor on the server.
- close() - Method in class com.mongodb.DBCursor
-
- close() - Method in class com.mongodb.DBPort
-
Deprecated.
closes the underlying connection and streams
- close() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- close() - Method in class com.mongodb.DefaultServer
-
- close() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- close() - Method in class com.mongodb.gridfs.GridFSInputFile.MyOutputStream
-
Processes/saves all data from InputStream and closes the potentially present OutputStream.
- close() - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- close() - Method in class com.mongodb.io.ByteBufferOutputStream
-
Deprecated.
- close() - Method in class com.mongodb.Mongo
-
Closes the underlying connector, which in turn closes all open connections.
- close() - Method in class com.mongodb.MultiServerCluster
-
- close() - Method in class com.mongodb.PooledConnectionProvider
-
- close(Connection) - Method in class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
-
- close() - Method in class com.mongodb.QueryResultIterator
-
- close() - Method in class com.mongodb.Response.MyInputStream
-
- close() - Method in class com.mongodb.ServerMonitor
-
- close() - Method in class com.mongodb.SingleServerCluster
-
- close() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Clears the pool of all objects.
- closed - Variable in class com.mongodb.BSONWriter
-
- closed - Variable in class com.mongodb.BulkWriteOperation
-
- closed - Variable in class com.mongodb.ConcurrentPool
-
- closed - Variable in class com.mongodb.DBPort
-
Deprecated.
- closed - Variable in class com.mongodb.PooledConnectionProvider
-
- closed - Variable in class com.mongodb.QueryResultIterator
-
- Cluster - Interface in com.mongodb
-
Represents a cluster of MongoDB servers.
- cluster - Variable in class com.mongodb.DBTCPConnector
-
Deprecated.
- ClusterableServer - Interface in com.mongodb
-
A logical connection to a MongoDB server that supports clustering along with other servers.
- ClusterableServerFactory - Interface in com.mongodb
-
- clusterClosed(ClusterEvent) - Method in interface com.mongodb.ClusterListener
-
Invoked when a cluster is closed.
- clusterClosed(ClusterEvent) - Method in class com.mongodb.ClusterListenerAdapter
-
- ClusterConnectionMode - Enum in com.mongodb
-
The cluster connection mode.
- ClusterConnectionMode() - Constructor for enum com.mongodb.ClusterConnectionMode
-
- ClusterDescription - Class in com.mongodb
-
Immutable snapshot state of a cluster.
- ClusterDescription(ClusterConnectionMode, ClusterType, List<ServerDescription>) - Constructor for class com.mongodb.ClusterDescription
-
- clusterDescription - Variable in class com.mongodb.ClusterDescriptionChangedEvent
-
- clusterDescription - Variable in class com.mongodb.JMXConnectionPoolListener
-
- clusterDescription - Variable in class com.mongodb.ReplicaSetStatus
-
- ClusterDescription.Predicate - Interface in com.mongodb
-
- clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in interface com.mongodb.ClusterListener
-
Invoked when a cluster description changes.
- clusterDescriptionChanged(ClusterDescriptionChangedEvent) - Method in class com.mongodb.ClusterListenerAdapter
-
- ClusterDescriptionChangedEvent - Class in com.mongodb
-
An event signifying that the cluster description has changed.
- ClusterDescriptionChangedEvent(String, ClusterDescription) - Constructor for class com.mongodb.ClusterDescriptionChangedEvent
-
Constructs a new instance of the event.
- ClusterEvent - Class in com.mongodb
-
A cluster-related event.
- ClusterEvent(String) - Constructor for class com.mongodb.ClusterEvent
-
Constructs a new instance of the event.
- clusterId - Variable in class com.mongodb.BaseCluster
-
- clusterId - Variable in class com.mongodb.ClusterEvent
-
- clusterId - Variable in class com.mongodb.DefaultClusterableServerFactory
-
- clusterId - Variable in class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
-
- clusterId - Variable in class com.mongodb.PooledConnectionProvider
-
- ClusterIdServerAddressPair(String, ServerAddress) - Constructor for class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
-
- clusterListener - Variable in class com.mongodb.BaseCluster
-
- ClusterListener - Interface in com.mongodb
-
A listener for cluster-related events.
- ClusterListenerAdapter - Class in com.mongodb
-
- ClusterListenerAdapter() - Constructor for class com.mongodb.ClusterListenerAdapter
-
- clusterOpened(ClusterEvent) - Method in interface com.mongodb.ClusterListener
-
Invoked when a cluster is opened.
- clusterOpened(ClusterEvent) - Method in class com.mongodb.ClusterListenerAdapter
-
- Clusters - Class in com.mongodb
-
A factory for cluster implementations.
- Clusters() - Constructor for class com.mongodb.Clusters
-
- ClusterSettings - Class in com.mongodb
-
Settings for the cluster.
- ClusterSettings(ClusterSettings.Builder) - Constructor for class com.mongodb.ClusterSettings
-
- ClusterSettings.Builder - Class in com.mongodb
-
A builder for the cluster settings.
- ClusterType - Enum in com.mongodb
-
An enumeration of all possible cluster types.
- ClusterType() - Constructor for enum com.mongodb.ClusterType
-
- clusterType - Variable in class com.mongodb.MultiServerCluster
-
- code - Variable in class com.mongodb.BulkWriteError
-
- code - Variable in class com.mongodb.WriteConcernError
-
- CODE - Static variable in class org.bson.BSON
-
- Code - Class in org.bson.types
-
For using the Code type.
- Code(String) - Constructor for class org.bson.types.Code
-
Construct a new instance with the given code.
- CODE_W_SCOPE - Static variable in class org.bson.BSON
-
- CodeSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.CodeSerializer
-
- CodeWScope - Class in org.bson.types
-
A representation of the JavaScript Code with Scope BSON type.
- CodeWScope(String, BSONObject) - Constructor for class org.bson.types.CodeWScope
-
Construct an instance.
- CodeWScopeSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.CodeWScopeSerializer
-
- collection - Variable in class com.mongodb.BulkWriteOperation
-
- collection - Variable in class com.mongodb.MongoClientURI
-
- COLLECTION_REF_ID - Static variable in class com.mongodb.Bytes
-
- collectionExists(String) - Method in class com.mongodb.DB
-
Checks to see if a collection with a given name exists on a server.
- collectionName - Variable in class com.mongodb.GroupCommand
-
- collectionName - Variable in class com.mongodb.MongoNamespace
-
- collectionName - Variable in class com.mongodb.RequestMessage
-
- CollectionView() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.CollectionView
-
- com.mongodb - package com.mongodb
-
Main package with core files.
- com.mongodb.gridfs - package com.mongodb.gridfs
-
GridFS tools.
- com.mongodb.io - package com.mongodb.io
-
- com.mongodb.tools - package com.mongodb.tools
-
- com.mongodb.util - package com.mongodb.util
-
Package containing misc utils.
- com.mongodb.util.management - package com.mongodb.util.management
-
- com.mongodb.util.management.jmx - package com.mongodb.util.management.jmx
-
- command(DBObject) - Method in class com.mongodb.DB
-
Executes a database command.
- command(DBObject, DBEncoder) - Method in class com.mongodb.DB
-
Executes a database command.
- command(DBObject, int, DBEncoder) - Method in class com.mongodb.DB
-
- command(DBObject, int, ReadPreference) - Method in class com.mongodb.DB
-
- command(DBObject, int, ReadPreference, DBEncoder) - Method in class com.mongodb.DB
-
- command(DBObject, ReadPreference, DBEncoder) - Method in class com.mongodb.DB
-
Executes a database command with the selected readPreference, and encodes the command using the given encoder.
- command(DBObject, int) - Method in class com.mongodb.DB
-
- command(DBObject, ReadPreference) - Method in class com.mongodb.DB
-
Executes the command against the database with the given read preference.
- command(String) - Method in class com.mongodb.DB
-
Executes a database command.
- command(String, int) - Method in class com.mongodb.DB
-
- command(String, ReadPreference) - Method in class com.mongodb.DB
-
Executes a database command.
- command(DBObject, int, ReadPreference) - Method in class com.mongodb.DBCollection
-
- COMMAND_COLLECTION_NAME - Static variable in class com.mongodb.MongoNamespace
-
- commandEncoder - Variable in class com.mongodb.BaseWriteCommandMessage
-
- CommandFailureException - Exception in com.mongodb
-
- CommandFailureException(CommandResult) - Constructor for exception com.mongodb.CommandFailureException
-
- CommandResult - Class in com.mongodb
-
A simple wrapper to hold the result of a command.
- CommandResult(ServerAddress) - Constructor for class com.mongodb.CommandResult
-
- commandResult - Variable in exception com.mongodb.MongoCommandException
-
- commandResult - Variable in exception com.mongodb.WriteConcernException
-
- CommandResultPair(CommandResult) - Constructor for class com.mongodb.DB.CommandResultPair
-
- CommandResultPair(CommandFailureException) - Constructor for class com.mongodb.DB.CommandResultPair
-
- comment(String) - Method in class com.mongodb.DBCursor
-
Adds a comment to the query to identify queries in the database profiler output.
- COMMENT - Static variable in class com.mongodb.QueryOperators
-
- compareTo(ServerVersion) - Method in class com.mongodb.ServerVersion
-
- compareTo(BSONTimestamp) - Method in class org.bson.types.BSONTimestamp
-
- compareTo(ObjectId) - Method in class org.bson.types.ObjectId
-
- CompositeServerSelector - Class in com.mongodb
-
- CompositeServerSelector(List<ServerSelector>) - Constructor for class com.mongodb.CompositeServerSelector
-
- CompoundObjectSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.CompoundObjectSerializer
-
- computeAncestry(Class<?>) - Static method in class org.bson.util.ClassAncestry
-
computeAncestry, starting with children and going back to parents
- computeAncestry(Class<T>, List<Class<?>>) - Static method in class org.bson.util.ClassAncestry
-
- computeClientFinalMessage(byte[]) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- computeClientFirstMessage() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- ComputeFunction() - Constructor for class org.bson.util.ClassMap.ComputeFunction
-
- ComputingMap<K,V> - Class in org.bson.util
-
- ComputingMap(ConcurrentMap<K, V>, Function<K, V>) - Constructor for class org.bson.util.ComputingMap
-
- ConcurrentLinkedDeque<E> - Class in com.mongodb
-
A concurrent linked-list implementation of a
Deque
(double-ended queue).
- ConcurrentLinkedDeque() - Constructor for class com.mongodb.ConcurrentLinkedDeque
-
Constructs an empty deque.
- ConcurrentLinkedDeque(Collection<? extends E>) - Constructor for class com.mongodb.ConcurrentLinkedDeque
-
Constructs a deque initially containing the elements of
the given collection, added in traversal order of the
collection's iterator.
- ConcurrentLinkedDeque.CLDIterator - Class in com.mongodb
-
- ConcurrentLinkedDeque.Node<E> - Class in com.mongodb
-
Linked Nodes.
- ConcurrentPool<T> - Class in com.mongodb
-
- ConcurrentPool(int, ConcurrentPool.ItemFactory<T>) - Constructor for class com.mongodb.ConcurrentPool
-
Initializes a new pool of objects.
- ConcurrentPool.ItemFactory<T> - Interface in com.mongodb
-
Factory for creating and closing pooled items.
- condition - Variable in class com.mongodb.GroupCommand
-
- condition - Variable in class com.mongodb.ServerMonitor
-
- CONN_RETRY_TIME_MS - Static variable in class com.mongodb.DBPort
-
Deprecated.
- connect() - Method in class com.mongodb.BaseCluster
-
Try to connect to all servers
- connect() - Method in interface com.mongodb.ClusterableServer
-
Attempt to connect to the server.
- connect() - Method in class com.mongodb.DefaultServer
-
- connect(DBAddress) - Static method in class com.mongodb.Mongo
-
- connect(MongoURI) - Method in class com.mongodb.Mongo.Holder
-
- connect(MongoClientURI) - Method in class com.mongodb.Mongo.Holder
-
Attempts to find an existing MongoClient instance matching that URI in the holder, and returns it if exists.
- connect() - Method in class com.mongodb.MongoURI
-
Creates a Mongo instance based on the URI.
- connect() - Method in class com.mongodb.MultiServerCluster
-
- connect() - Method in class com.mongodb.ServerMonitor
-
- connect() - Method in class com.mongodb.SingleServerCluster
-
- connectCollection(DB) - Method in class com.mongodb.MongoURI
-
Returns the URI's Collection from a given DB object.
- connectCollection(Mongo) - Method in class com.mongodb.MongoURI
-
Returns the URI's Collection from a given Mongo instance
- connectDB() - Method in class com.mongodb.MongoURI
-
Returns the DB object from a newly created Mongo instance based on this URI.
- connectDB(Mongo) - Method in class com.mongodb.MongoURI
-
Returns the URI's DB object from a given Mongo instance.
- Connection - Interface in com.mongodb
-
- connectionAdded(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
-
Invoked when a connection is added to a pool.
- connectionAdded(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
-
- connectionAdded(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
-
- connectionAdded(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- connectionAdded(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
-
- connectionCheckedIn(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
-
Invoked when a connection is checked in to a pool.
- connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
-
- connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
-
- connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- connectionCheckedIn(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
-
- connectionCheckedOut(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
-
Invoked when a connection is checked out of a pool.
- connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
-
- connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
-
- connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- connectionCheckedOut(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
-
- ConnectionEvent - Class in com.mongodb
-
A connection-related event.
- ConnectionEvent(String, ServerAddress) - Constructor for class com.mongodb.ConnectionEvent
-
Constructs a new instance of the event.
- ConnectionFactory - Interface in com.mongodb
-
- connectionFactory - Variable in class com.mongodb.PooledConnectionProvider
-
- ConnectionItemFactory() - Constructor for class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
-
- connectionMode - Variable in class com.mongodb.ClusterDescription
-
- connectionMode - Variable in class com.mongodb.DBTCPConnector
-
Deprecated.
- connectionPoolClosed(ConnectionPoolEvent) - Method in interface com.mongodb.ConnectionPoolListener
-
Invoked when a connection pool is closed.
- connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
-
- connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- connectionPoolClosed(ConnectionPoolEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
-
- ConnectionPoolEvent - Class in com.mongodb
-
A connection pool-related event.
- ConnectionPoolEvent(String, ServerAddress) - Constructor for class com.mongodb.ConnectionPoolEvent
-
Constructs a new instance of the event.
- ConnectionPoolListener - Interface in com.mongodb
-
A listener for connection pool-related events.
- connectionPoolListener - Variable in class com.mongodb.PooledConnectionProvider
-
- ConnectionPoolListenerAdapter - Class in com.mongodb
-
An adapter for connection pool listener implementations, for clients that want to listen for a subset of connection pool events.
- ConnectionPoolListenerAdapter() - Constructor for class com.mongodb.ConnectionPoolListenerAdapter
-
- connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in interface com.mongodb.ConnectionPoolListener
-
Invoked when a connection pool is opened.
- connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
-
- connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- connectionPoolOpened(ConnectionPoolOpenedEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
-
- ConnectionPoolOpenedEvent - Class in com.mongodb
-
An event signifying the opening of a connection pool.
- ConnectionPoolOpenedEvent(String, ServerAddress, ConnectionPoolSettings) - Constructor for class com.mongodb.ConnectionPoolOpenedEvent
-
Constructs a new instance of the event.
- ConnectionPoolSettings - Class in com.mongodb
-
- ConnectionPoolSettings(ConnectionPoolSettings.Builder) - Constructor for class com.mongodb.ConnectionPoolSettings
-
- ConnectionPoolSettings.Builder - Class in com.mongodb
-
- ConnectionPoolStat - Class in com.mongodb.tools
-
- ConnectionPoolStat(MBeanServerConnection) - Constructor for class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
Use the given MBean server connection to access statistics for connection pools.
- ConnectionPoolStat() - Constructor for class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
Use the platform MBean server.
- ConnectionPoolStat.Position - Enum in com.mongodb.tools
-
Deprecated.
- ConnectionPoolStat.StringType - Enum in com.mongodb.tools
-
Deprecated.
- ConnectionPoolStatistics - Class in com.mongodb
-
An MBean implementation for connection pool statistics.
- ConnectionPoolStatistics(ConnectionPoolOpenedEvent) - Constructor for class com.mongodb.ConnectionPoolStatistics
-
- ConnectionPoolStatisticsBean - Class in com.mongodb.util
-
- ConnectionPoolStatisticsBean(int, int, InUseConnectionBean[]) - Constructor for class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
- ConnectionPoolStatisticsMBean - Interface in com.mongodb
-
A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.
- ConnectionPoolWaitQueueEvent - Class in com.mongodb
-
An event related to the connection pool's wait queue..
- ConnectionPoolWaitQueueEvent(String, ServerAddress, long) - Constructor for class com.mongodb.ConnectionPoolWaitQueueEvent
-
Constructs a new instance of the event.
- connectionProvider - Variable in class com.mongodb.DefaultServer
-
- connectionProvider - Variable in class com.mongodb.ServerMonitor
-
- connectionRemoved(ConnectionEvent) - Method in interface com.mongodb.ConnectionPoolListener
-
Invoked when a connection is removed from a pool.
- connectionRemoved(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolListenerAdapter
-
- connectionRemoved(ConnectionEvent) - Method in class com.mongodb.ConnectionPoolStatistics
-
- connectionRemoved(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- connectionRemoved(ConnectionEvent) - Method in class com.mongodb.NoOpConnectionPoolListener
-
- CONNECTIONS_PER_HOST - Static variable in class com.mongodb.Bytes
-
- connectionsPerHost - Variable in class com.mongodb.MongoClientOptions.Builder
-
- connectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the maximum number of connections per host.
- connectionsPerHost - Variable in class com.mongodb.MongoClientOptions
-
- connectionsPerHost - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The maximum number of connections allowed per host for this Mongo instance.
- ConnectionWaitTimeOut(int) - Constructor for exception com.mongodb.DBPortPool.ConnectionWaitTimeOut
-
Deprecated.
- connectTimeout - Variable in class com.mongodb.MongoClientOptions.Builder
-
- connectTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the connection timeout.
- connectTimeout - Variable in class com.mongodb.MongoClientOptions
-
- connectTimeout - Variable in class com.mongodb.MongoOptions
-
Deprecated.
The connection timeout in milliseconds.
- connectTimeout(int, TimeUnit) - Method in class com.mongodb.SocketSettings.Builder
-
- connectTimeoutMS - Variable in class com.mongodb.SocketSettings.Builder
-
- connectTimeoutMS - Variable in class com.mongodb.SocketSettings
-
- consideredServers - Variable in class com.mongodb.MongosHAServerSelector
-
- contains(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
-
Returns true if this deque contains at least one
element e such that o.equals(e).
- contains(T) - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- contains(T) - Method in class com.mongodb.util.WeakBag
-
Deprecated.
- contains(Object) - Method in class org.bson.LazyBSONList
-
- contains(Object) - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
-
- contains(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- contains(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
-
- contains(Object) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- containsAll(TagSet) - Method in class com.mongodb.TagSet
-
Returns true if this tag set contains all of the elements of the specified tag set.
- containsAll(Collection) - Method in class org.bson.LazyBSONList
-
- containsAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
-
- containsAll(Collection<?>) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- containsAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
-
- containsAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- containsField(String) - Method in class com.mongodb.gridfs.GridFSFile
-
- containsField(String) - Method in class com.mongodb.LazyWriteableDBObject
-
Deprecated.
- containsField(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- containsField(String) - Method in class com.mongodb.ReflectionDBObject
-
- containsField(String) - Method in class org.bson.BasicBSONObject
-
Checks if this object contains a given field
- containsField(String) - Method in interface org.bson.BSONObject
-
Checks if this object contains a field with the given name.
- containsField(String) - Method in class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- containsField(String) - Method in class org.bson.LazyBSONObject
-
- containsField(String) - Method in class org.bson.types.BasicBSONList
-
- containsKey(String) - Method in class com.mongodb.gridfs.GridFSFile
-
Deprecated.
- containsKey(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- containsKey(String) - Method in class com.mongodb.ReflectionDBObject
-
Deprecated.
- containsKey(String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
Deprecated.
- containsKey(String) - Method in class org.bson.BasicBSONObject
-
Deprecated.
- containsKey(String) - Method in interface org.bson.BSONObject
-
- containsKey(String) - Method in class org.bson.LazyBSONObject
-
Deprecated.
- containsKey(String) - Method in class org.bson.types.BasicBSONList
-
Deprecated.
- containsKey(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- containsKey(Object) - Method in class org.bson.util.ComputingMap
-
- containsValue(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- containsValue(Object) - Method in class org.bson.util.ComputingMap
-
- Context(BSONBinaryWriter.Context, BSONContextType, int) - Constructor for class com.mongodb.BSONBinaryWriter.Context
-
- Context(BSONBinaryWriter.Context) - Constructor for class com.mongodb.BSONBinaryWriter.Context
-
- context - Variable in class com.mongodb.BSONWriter
-
- Context(BSONWriter.Context) - Constructor for class com.mongodb.BSONWriter.Context
-
- Context(BSONWriter.Context, BSONContextType) - Constructor for class com.mongodb.BSONWriter.Context
-
- contextType - Variable in class com.mongodb.BSONWriter.Context
-
- continueOnError - Variable in class com.mongodb.InsertOptions
-
- continueOnError(boolean) - Method in class com.mongodb.InsertOptions
-
Set whether documents will continue to be inserted after a failure to insert one.
- continueOnError(boolean) - Method in class com.mongodb.WriteConcern
-
- continueOnErrorForInsert(boolean) - Method in class com.mongodb.WriteConcern
-
- convertToCommandResult(DBObject, Response) - Method in class com.mongodb.DBPort
-
Deprecated.
- copy() - Method in class com.mongodb.BasicDBList
-
Copies this instance into a new Object.
- copy() - Method in class com.mongodb.BasicDBObject
-
Creates a new instance which is a copy of this BasicDBObject.
- copy() - Method in class com.mongodb.BSONBinaryWriter.Context
-
- copy() - Method in class com.mongodb.BSONWriter.Context
-
- copy() - Method in class com.mongodb.DBCursor
-
Creates a copy of an existing database cursor.
- copy() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- copy(N) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
Copy function, implemented by sub-classes.
- copy() - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- copy(N) - Method in class org.bson.util.CopyOnWriteMap
-
- copy(N) - Method in class org.bson.util.CopyOnWriteMap.Hash
-
- copy(N) - Method in class org.bson.util.CopyOnWriteMap.Linked
-
- CopyOnWriteMap<K,V> - Class in org.bson.util
-
A thread-safe variant of Map in which all mutative operations (the "destructive" operations described by Map put, remove and so on) are implemented by making a fresh copy of the underlying map.
- CopyOnWriteMap(Map<? extends K, ? extends V>) - Constructor for class org.bson.util.CopyOnWriteMap
-
- CopyOnWriteMap() - Constructor for class org.bson.util.CopyOnWriteMap
-
- CopyOnWriteMap(Map<? extends K, ? extends V>, AbstractCopyOnWriteMap.View.Type) - Constructor for class org.bson.util.CopyOnWriteMap
-
Create a new
CopyOnWriteMap with the supplied
Map to initialize the values.
- CopyOnWriteMap(AbstractCopyOnWriteMap.View.Type) - Constructor for class org.bson.util.CopyOnWriteMap
-
- CopyOnWriteMap.Builder<K,V> - Class in org.bson.util
-
- CopyOnWriteMap.Hash<K,V> - Class in org.bson.util
-
Uses HashMap instances as its internal storage.
- CopyOnWriteMap.Linked<K,V> - Class in org.bson.util
-
Uses LinkedHashMap instances as its internal storage.
- count() - Method in class com.mongodb.DBCollection
-
Get the number of documents in the collection.
- count(DBObject) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- count(DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- count() - Method in class com.mongodb.DBCursor
-
Counts the number of objects matching the query.
- count - Variable in class com.mongodb.IndexMap.RangeBased
-
- count - Variable in class com.mongodb.ServerMonitor
-
- create(ServerAddress) - Method in interface com.mongodb.ClusterableServerFactory
-
- create(String, ClusterSettings, ServerSettings, ClusterListener, Mongo) - Static method in class com.mongodb.Clusters
-
- create() - Method in interface com.mongodb.ConcurrentPool.ItemFactory
-
- create(ServerAddress, PooledConnectionProvider, int) - Method in interface com.mongodb.ConnectionFactory
-
- create(DBCollection) - Method in interface com.mongodb.DBCallbackFactory
-
Creates a DBCallback for the given collection.
- create() - Method in interface com.mongodb.DBDecoderFactory
-
Creates an instance.
- create() - Method in interface com.mongodb.DBEncoderFactory
-
Creates an instance.
- create(ServerAddress, PooledConnectionProvider, int) - Method in class com.mongodb.DBPortFactory
-
- create(ServerAddress) - Method in class com.mongodb.DefaultClusterableServerFactory
-
- create() - Method in class com.mongodb.DefaultDBCallback
-
- create(boolean, List<String>) - Method in class com.mongodb.DefaultDBCallback
-
- create(DBCollection) - Method in class com.mongodb.DefaultDBCallback.DefaultFactory
-
- create() - Method in class com.mongodb.DefaultDBDecoder.DefaultFactory
-
- create() - Method in class com.mongodb.DefaultDBEncoder.DefaultFactory
-
- create() - Static method in class com.mongodb.IndexMap
-
Create an empty index map.
- create(int, int) - Static method in class com.mongodb.IndexMap
-
Create an index map that maps the integers 0..count to startIndex..startIndex + count.
- create() - Method in class com.mongodb.LazyDBDecoder.LazyDBDecoderFactory
-
- create() - Method in class com.mongodb.LazyWriteableDBDecoder.LazyDBDecoderFactory
-
Deprecated.
- create() - Method in class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
-
- create() - Method in class com.mongodb.util.JSONCallback
-
- create() - Method in class org.bson.BasicBSONCallback
-
Factory method for creating a new BSONObject.
- create(boolean, List<String>) - Method in class org.bson.BasicBSONCallback
-
Helper method to create either a BSON Object or a BSON List depending upon whether the array parameter is true or not.
- create(Function<K, V>) - Static method in class org.bson.util.ComputingMap
-
- createArray(byte[], int) - Method in class com.mongodb.LazyDBCallback
-
- createArray(byte[], int) - Method in class org.bson.LazyBSONCallback
-
Create a LazyBSONList from the given bytes starting from the given offset.
- createBSONCallback() - Method in class org.bson.BasicBSONCallback
-
- createBSONCallback() - Method in interface org.bson.BSONCallback
-
Factory method for BSONCallbacks.
- createBSONCallback() - Method in class org.bson.EmptyBSONCallback
-
- createChunk(Object, int, byte[]) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Creates a new chunk of this file.
- createCollection(String, DBObject) - Method in class com.mongodb.DB
-
Creates a collection with a given name and options.
- createCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance with an unspecified mechanism.
- createCredentials(Map<String, List<String>>, String, char[], String) - Method in class com.mongodb.MongoClientURI
-
- createDBRef(String, ObjectId) - Method in class com.mongodb.LazyDBCallback
-
- createDBRef(String, ObjectId) - Method in class org.bson.LazyBSONCallback
-
This is a factory method pattern to create appropriate objects for BSON type DBPointer(0x0c).
- createDescription(CommandResult, ServerVersion, long) - Static method in class com.mongodb.ServerMonitor
-
- createFile(byte[]) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(File) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream, boolean) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream, String) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(InputStream, String, boolean) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile(String) - Method in class com.mongodb.gridfs.GridFS
-
Creates a file entry.
- createFile() - Method in class com.mongodb.gridfs.GridFS
-
- createFinalizerIfNeeded(long, Mongo) - Method in class com.mongodb.QueryResultIterator
-
- createFromLegacyFormat(int, int, int) - Static method in class org.bson.types.ObjectId
-
Creates an ObjectId using time, machine and inc values.
- createGSSAPICredential(String) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the GSSAPI SASL mechanism.
- createHash(String, char[]) - Static method in class com.mongodb.NativeAuthenticationHelper
-
- createIndex(String) - Method in class com.mongodb.DBCollection
-
Forces creation of an ascending index on a field with the default options.
- createIndex(DBObject) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields with the default options, if one does not already exist.
- createIndex(DBObject, DBObject) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields, if one does not already exist.
- createIndex(DBObject, String) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields, if one does not already exist.
- createIndex(DBObject, String, boolean) - Method in class com.mongodb.DBCollection
-
Forces creation of an index on a set of fields, if one does not already exist.
- createIndex(DBObject, DBObject, DBEncoder) - Method in class com.mongodb.DBCollection
-
- createIndex(DBObject, DBObject, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
-
- createList() - Method in class com.mongodb.util.JSONCallback
-
- createList() - Method in class org.bson.BasicBSONCallback
-
Factory method for creating a new BSON List.
- createMaintenanceTask() - Method in class com.mongodb.PooledConnectionProvider
-
- createMongoCRCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the MongoDB Challenge Response protocol.
- createMongoX509Credential(String) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the MongoDB X.509 protocol.
- createNew() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- createNew() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Creates a new object of this pool's type.
- createNew() - Method in class com.mongodb.util.StringBuilderPool
-
Deprecated.
Create a new string builder.
- createNew() - Method in class org.bson.util.SimplePool
-
Deprecated.
- createNewAndReleasePermitIfFailure() - Method in class com.mongodb.ConcurrentPool
-
- createNewAndReleasePermitIfFailure() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- createObject(byte[], int) - Method in class com.mongodb.LazyDBCallback
-
- createObject(byte[], int) - Method in class com.mongodb.LazyWriteableDBCallback
-
Deprecated.
- createObject(byte[], int) - Method in class org.bson.LazyBSONCallback
-
Create a LazyBSONObject instance from the given bytes starting from the given offset.
- createObjectName(String) - Method in class com.mongodb.util.management.jmx.JMXMBeanServer
-
Deprecated.
- createOptions(Map<String, List<String>>, MongoClientOptions.Builder) - Method in class com.mongodb.MongoClientURI
-
- createPlainCredential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the PLAIN SASL mechanism.
- createReadPreference(Map<String, List<String>>) - Method in class com.mongodb.MongoClientURI
-
- createResult() - Method in class com.mongodb.BulkWriteBatchCombiner
-
- createSaslClient() - Method in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- createSaslClient() - Method in class com.mongodb.DBPort.PlainAuthenticator
-
Deprecated.
- createSaslClient() - Method in class com.mongodb.DBPort.SaslAuthenticator
-
Deprecated.
- createSaslClient() - Method in class com.mongodb.DBPort.ScramSha1Authenticator
-
Deprecated.
- createScramSha1Credential(String, String, char[]) - Static method in class com.mongodb.MongoCredential
-
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism.
- createServer(ServerAddress, ChangeListener<ServerDescription>) - Method in class com.mongodb.BaseCluster
-
- createServerSelector(ReadPreference) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- createTimer() - Method in class com.mongodb.PooledConnectionProvider
-
- createWriteConcern(Map<String, List<String>>) - Method in class com.mongodb.MongoClientURI
-
- credential - Variable in class com.mongodb.DBPort.Authenticator
-
Deprecated.
- credential - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- credentials - Variable in class com.mongodb.MongoClientURI
-
- credentialsMap - Variable in class com.mongodb.MongoCredentialsStore
-
- credentialsStore - Variable in class com.mongodb.MongoAuthority
-
- cur() - Method in class org.bson.BasicBSONCallback
-
Gets the current value
- curName() - Method in class org.bson.BasicBSONCallback
-
Gets the name of the current field
- curr() - Method in class com.mongodb.DBCursor
-
Returns the element the cursor is at.
- currentName - Variable in class com.mongodb.BSONWriter
-
- currentName - Variable in class com.mongodb.BSONWriter.Mark
-
- Cursor - Interface in com.mongodb
-
Interface for providing consistent behaviour between different Cursor implementations.
- cursor() - Method in class com.mongodb.Response
-
- CursorCleanerThread() - Constructor for class com.mongodb.Mongo.CursorCleanerThread
-
- cursorFinalizerEnabled - Variable in class com.mongodb.MongoClientOptions.Builder
-
- cursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets whether cursor finalizers are enabled.
- cursorFinalizerEnabled - Variable in class com.mongodb.MongoClientOptions
-
- cursorFinalizerEnabled - Variable in class com.mongodb.MongoOptions
-
Deprecated.
Sets whether there is a a finalize method created that cleans up instances of DBCursor that the client
does not close.
- cursorId - Variable in exception com.mongodb.MongoCursorNotFoundException
-
- cursorId - Variable in class com.mongodb.QueryResultIterator.OptionalFinalizer
-
- CursorNotFound(long, ServerAddress) - Constructor for exception com.mongodb.MongoException.CursorNotFound
-
Deprecated.
- CursorType() - Constructor for enum com.mongodb.DBCursor.CursorType
-
- generalOptionsKeys - Static variable in class com.mongodb.MongoClientURI
-
- generateRandomString() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- generation - Variable in class com.mongodb.DBPort
-
Deprecated.
- generation - Variable in class com.mongodb.PooledConnectionProvider
-
- genIndexName(DBObject) - Static method in class com.mongodb.DBCollection
-
- get() - Method in class com.mongodb.BasicDBObjectBuilder
-
Gets the top level document.
- get() - Method in class com.mongodb.Bytes.OptionHolder
-
- get() - Method in class com.mongodb.ConcurrentPool
-
Gets an object from the pool.
- get(long, TimeUnit) - Method in class com.mongodb.ConcurrentPool
-
Gets an object from the pool - will block if none are available
- get() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- get(boolean, ReadPreference, ServerAddress) - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- get(String) - Method in class com.mongodb.gridfs.GridFSFile
-
- get() - Method in interface com.mongodb.io.ByteBufferFactory
-
Deprecated.
- get() - Method in class com.mongodb.io.ByteBufferFactory.SimpleHeapByteBufferFactory
-
Deprecated.
- get(int) - Method in class com.mongodb.io.ByteBufferHolder
-
Deprecated.
- get(int, byte[]) - Method in class com.mongodb.io.ByteBufferHolder
-
Deprecated.
- get(String) - Method in class com.mongodb.LazyWriteableDBObject
-
Deprecated.
- get(String) - Method in class com.mongodb.MongoCredentialsStore
-
Gets the stored credentials for the given database.
- get() - Method in class com.mongodb.PooledConnectionProvider
-
- get(long, TimeUnit) - Method in class com.mongodb.PooledConnectionProvider
-
- get() - Method in class com.mongodb.QueryBuilder
-
Creates a DBObject query to be used for the driver's find operations
- get() - Method in class com.mongodb.QueryOpBuilder
-
Constructs the query operation DBObject
- get(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
- get(String) - Method in class com.mongodb.ReflectionDBObject
-
- get(ReflectionDBObject, String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
Gets the value for the given field from the given document.
- get(int) - Method in class com.mongodb.Response
-
- get(int) - Method in class com.mongodb.util.FastStack
-
Deprecated.
- get() - Method in class com.mongodb.util.JSONParser
-
Returns the current character.
- get() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Gets an object from the pool - will block if none are available
- get(long) - Method in class com.mongodb.util.SimplePool
-
Deprecated.
Gets an object from the pool - will block if none are available
- get() - Method in class org.bson.BasicBSONCallback
-
- get(String) - Method in class org.bson.BasicBSONObject
-
Gets a value from this object
- get() - Method in interface org.bson.BSONCallback
-
Returns the finished top-level Document.
- get(String) - Method in interface org.bson.BSONObject
-
Gets a field from this object by a given name.
- get() - Method in class org.bson.EmptyBSONCallback
-
- get(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- get(byte[], int, int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- get(byte[]) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- get(String) - Method in class org.bson.KeyCachingLazyBSONObject
-
Deprecated.
- get() - Method in class org.bson.LazyBSONCallback
-
- get(int) - Method in class org.bson.LazyBSONList
-
- get(String) - Method in class org.bson.LazyBSONObject
-
- get(String) - Method in class org.bson.types.BasicBSONList
-
Gets a value at an index.
- get() - Static method in class org.bson.types.ObjectId
-
Gets a new object id.
- get(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- get(AbstractCopyOnWriteMap<K, V, M>) - Method in enum org.bson.util.AbstractCopyOnWriteMap.View.Type
-
- get(Object) - Method in class org.bson.util.ClassMap
-
Gets the value associated with either this Class or a superclass of this class.
- get(Object) - Method in class org.bson.util.ComputingMap
-
- get() - Method in class org.bson.util.SimplePool
-
Deprecated.
- get_id() - Method in class com.mongodb.ReflectionDBObject
-
Gets the _id
- getAcceptableLatencyDifference() - Method in class com.mongodb.MongoClientOptions
-
- getActiveState() - Method in class com.mongodb.DBPort
-
Deprecated.
- getAddress() - Method in class com.mongodb.DBPort
-
Deprecated.
- getAddress() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getAddress() - Method in class com.mongodb.Mongo
-
Gets the address of the current master
- getAddress() - Method in class com.mongodb.ServerDescription
-
- getAliases() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the aliases from the metadata.
- getAll() - Method in class com.mongodb.ClusterDescription
-
Returns the Set of all server descriptions in this cluster, sorted by the String value of the ServerAddress of each one.
- getAll() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
- getAllAddress() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Gets the list of seed server addresses
- getAllAddress() - Method in class com.mongodb.Mongo
-
Gets a list of all server addresses used when this Mongo was created
- getAllowDiskUse() - Method in class com.mongodb.AggregationOptions
-
If true, this enables external sort capabilities, otherwise $sort produces an error if the operation consumes 10 percent or more of
RAM.
- getAllServerAddresses(ServerDescription) - Method in class com.mongodb.MultiServerCluster
-
- getAncestry(Class<T>) - Static method in class org.bson.util.ClassAncestry
-
getAncestry
Walks superclass and interface graph, superclasses first, then
interfaces, to compute an ancestry list.
- getAncestry(Class<T>) - Static method in class org.bson.util.ClassMap
-
Helper method that walks superclass and interface graph, superclasses first, then interfaces, to compute an ancestry list.
- getAndInc() - Method in class org.bson.io.PoolOutputBuffer.Position
-
Deprecated.
- getAny() - Method in class com.mongodb.ClusterDescription
-
- getAnyPrimaryOrSecondary() - Method in class com.mongodb.ClusterDescription
-
- getAnyPrimaryOrSecondary(TagSet) - Method in class com.mongodb.ClusterDescription
-
- getArbiters() - Method in class com.mongodb.ServerDescription
-
- getAuthCommand() - Method in class com.mongodb.DBPort.X509Authenticator
-
Deprecated.
- getAuthCommand(String, char[], String) - Static method in class com.mongodb.NativeAuthenticationHelper
-
- getAuthCommand(String, byte[], String) - Static method in class com.mongodb.NativeAuthenticationHelper
-
- getAuthenticatedDatabases() - Method in class com.mongodb.DBPort
-
Deprecated.
- getAuthenticationCredentials() - Method in class com.mongodb.DB
-
- getAuthority() - Method in class com.mongodb.Mongo
-
Gets the authority, which includes the connection type, the server address(es), and the credentials.
- getAvailable() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getAvailableCount() - Method in class com.mongodb.ConcurrentPool
-
- getAverageLatencyFormattedInMilliseconds() - Method in class com.mongodb.ServerDescription
-
- getAverageLatencyNanos() - Method in class com.mongodb.ServerDescription
-
- getBatchSize() - Method in class com.mongodb.AggregationOptions
-
The size of batches to use when iterating over results.
- getBatchSize() - Method in class com.mongodb.DBCursor
-
Gets the batch size.
- getBatchSize() - Method in class com.mongodb.ParallelScanOptions
-
Gets the batch size to use for each cursor.
- getBestLatencyNanos(Set<ServerDescription>) - Method in class com.mongodb.LatencyMinimizingServerSelector
-
- 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(int) - Method in class org.bson.LazyBSONObject
-
- getBSONSize() - Method in class org.bson.LazyBSONObject
-
Gets the size in bytes of the BSON document.
- getBucketName() - Method in class com.mongodb.gridfs.GridFS
-
Gets the bucket name used in the collection's namespace.
- getBuffer() - Method in class com.mongodb.BSONBinaryWriter
-
Gets the output buffer that is backing this instance.
- getBuffers() - Method in class com.mongodb.io.ByteBufferOutputStream
-
Deprecated.
- getBuffers(boolean) - Method in class com.mongodb.io.ByteBufferOutputStream
-
Deprecated.
- getBulkWriteError(WriteConcernException) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- getBulkWriteException(WriteRequest.Type, CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getBulkWriteResult(WriteRequest.Type, CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getByCharacter(char) - Static method in enum org.bson.BSON.RegexFlag
-
- getBypassDocumentValidation() - Method in class com.mongodb.AggregationOptions
-
Gets whether to bypass document validation, or null if unspecified.
- getBypassDocumentValidation() - Method in class com.mongodb.BaseWriteCommandMessage
-
- getBypassDocumentValidation() - Method in class com.mongodb.BulkWriteOperation
-
Gets whether to bypass document validation, or null if unspecified.
- getBypassDocumentValidation() - Method in class com.mongodb.InsertOptions
-
Gets whether to bypass document validation, or null if unspecified.
- getBypassDocumentValidation() - Method in class com.mongodb.MapReduceCommand
-
Gets whether to bypass document validation, or null if unspecified.
- getBypassDocumentValidationForServerVersion(Boolean, ServerVersion) - Method in class com.mongodb.DBCollection
-
- getByServerAddress(ServerAddress) - Method in class com.mongodb.ClusterDescription
-
- getBytes() - Method in class org.bson.LazyBSONObject
-
- getCachedLastError() - Method in class com.mongodb.WriteResult
-
- getCanonicalAddress() - Method in class com.mongodb.ServerDescription
-
Gets the string representing the host name and port that this member of a replica set was configured with,
e.g.
- getCheckedOutCount() - Method in class com.mongodb.ConnectionPoolStatistics
-
- getCheckedOutCount() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the count of connections that are currently in use.
- getChunk(int) - Method in class com.mongodb.gridfs.GridFSDBFile
-
- getChunksCollection() - Method in class com.mongodb.gridfs.GridFS
-
Gets the
DBCollection in which the binary chunks are stored.
- getChunkSize() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the size of a chunk.
- getClassAncestryCache() - Static method in class org.bson.util.ClassAncestry
-
classAncestryCache
- getClusterDescription() - Method in class com.mongodb.ClusterDescriptionChangedEvent
-
Gets the new cluster description.
- getClusterDescription() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getClusterId() - Method in class com.mongodb.ClusterEvent
-
Gets the cluster id associated with this event.
- getClusterType() - Method in class com.mongodb.ServerDescription
-
- getClusterType() - Method in enum com.mongodb.ServerType
-
The type of the cluster to which this server belongs
- getClusterWaitTimeMS() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getCode() - Method in class com.mongodb.BulkWriteError
-
Gets the code associated with this error.
- getCode() - Method in class com.mongodb.CommandResult
-
Returns the "code" field, as an int
- getCode() - Method in exception com.mongodb.MongoException
-
Gets the exception code
- getCode(BSONObject) - Static method in class com.mongodb.ServerError
-
Deprecated.
- getCode() - Method in class com.mongodb.ServerError
-
Deprecated.
Gets the error code
- getCode() - Method in class com.mongodb.WriteConcernError
-
Gets the code associated with this error.
- getCode() - Method in class org.bson.types.Code
-
Get the Javascript code.
- getCollection(String) - Method in class com.mongodb.DB
-
Gets a collection with a given name.
- getCollection(String) - Method in class com.mongodb.DBCollection
-
Find a collection that is prefixed with this collection's name.
- getCollection() - Method in class com.mongodb.DBCursor
-
Gets the collection.
- getCollection() - Method in class com.mongodb.MongoClientURI
-
Gets the collection name
- getCollection() - Method in class com.mongodb.MongoURI
-
Gets the collection name.
- getCollectionFromString(String) - Method in class com.mongodb.DB
-
Returns a collection matching a given string.
- getCollectionName() - Method in class com.mongodb.DBRefBase
-
Deprecated.
Gets the name of the collection in which the referenced document is stored.
- getCollectionName() - Method in class com.mongodb.MapReduceOutput
-
Get the name of the collection that the results of the map reduce were saved into.
- getCollectionName() - Method in class com.mongodb.MongoNamespace
-
- getCollectionName() - Method in class com.mongodb.RequestMessage
-
- getCollectionNameFromNamespace(String) - Method in class com.mongodb.QueryResultIterator
-
- getCollectionNames() - Method in class com.mongodb.DB
-
Returns a set containing the names of all collections in this database.
- getCollectionNames() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- getCommand() - Method in class com.mongodb.AggregationOutput
-
- getCommand() - Method in class com.mongodb.MapReduceOutput
-
Get the original command that was sent to the database.
- getCommand() - Method in class com.mongodb.WriteConcern
-
- getCommandEncoder() - Method in class com.mongodb.BaseWriteCommandMessage
-
- getCommandName() - Method in class com.mongodb.BaseWriteCommandMessage
-
- getCommandName() - Method in class com.mongodb.DeleteCommandMessage
-
- getCommandName() - Method in class com.mongodb.InsertCommandMessage
-
- getCommandName() - Method in class com.mongodb.UpdateCommandMessage
-
- getCommandReadPreference(DBObject, ReadPreference) - Method in class com.mongodb.DB
-
Determines the read preference that should be used for the given command.
- getCommandResult() - Method in class com.mongodb.AggregationOutput
-
- getCommandResult() - Method in exception com.mongodb.CommandFailureException
-
- getCommandResult() - Method in class com.mongodb.MapReduceOutput
-
- getCommandResult() - Method in exception com.mongodb.MongoCommandException
-
- getCommandResult() - Method in exception com.mongodb.WriteConcernException
-
- getConnectingServerDescription(ServerAddress) - Method in class com.mongodb.MultiServerCluster
-
- getConnectingServerDescription(Throwable) - Method in class com.mongodb.ServerMonitor
-
- getConnection(long, TimeUnit) - Method in class com.mongodb.BaseCluster.WrappedServer
-
- getConnection(ServerSelector) - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- getConnection(long, TimeUnit) - Method in class com.mongodb.DefaultServer
-
- getConnection(long, TimeUnit) - Method in interface com.mongodb.Server
-
- getConnectionMode() - Method in class com.mongodb.ClusterDescription
-
- getConnectionsPerHost() - Method in class com.mongodb.MongoClientOptions
-
The maximum number of connections allowed per host for this MongoClient instance.
- getConnectionsPerHost() - Method in class com.mongodb.MongoOptions
-
Deprecated.
Gets the maximum number of connections allowed per host for this Mongo instance.
- getConnectionWaitTimeMS() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getConnector() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- getConnector() - Method in class com.mongodb.Mongo
-
- getConnectPoint() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getConnectPoint() - Method in class com.mongodb.Mongo
-
Gets a String representation of current connection point, i.e.
- getConnectTimeout() - Method in class com.mongodb.MongoClientOptions
-
The connection timeout in milliseconds.
- getConnectTimeout() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getConnectTimeout(TimeUnit) - Method in class com.mongodb.SocketSettings
-
- getContentType() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the content type.
- getContext() - Method in class com.mongodb.BSONBinaryWriter
-
- getContext() - Method in class com.mongodb.BSONWriter
-
- getContextType() - Method in class com.mongodb.BSONWriter.Context
-
- getContinueOnError() - Method in class com.mongodb.WriteConcern
-
- getContinueOnErrorForInsert() - Method in class com.mongodb.WriteConcern
-
- getCount() - Method in class com.mongodb.ConcurrentPool
-
- getCount() - Method in class com.mongodb.DBCollection
-
Get the count of documents in a collection.
- getCount(ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in a collection.
- getCount(DBObject) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject, ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject, long, long) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject, long, long, ReadPreference) - Method in class com.mongodb.DBCollection
-
Get the count of documents in collection that would match a criteria.
- getCount(DBObject, DBObject, long, long, ReadPreference, long, TimeUnit) - Method in class com.mongodb.DBCollection
-
- getCount(DBObject, DBObject, long, long, ReadPreference, long, TimeUnit, Object) - Method in class com.mongodb.DBCollection
-
- getCount(WriteResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- getCount(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getCredentials() - Method in class com.mongodb.MongoClientURI
-
Gets the credentials.
- getCredentials() - Method in class com.mongodb.MongoURI
-
Gets the credentials.
- getCredentialsList() - Method in class com.mongodb.MongoClient
-
Gets the list of credentials that this client authenticates all connections with
- getCredentialsStore() - Method in class com.mongodb.MongoAuthority
-
Gets the credentials store.
- getCString(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getCurrentCounter() - Static method in class org.bson.types.ObjectId
-
Gets the current value of the auto-incrementing counter.
- getCurrentDescription() - Method in class com.mongodb.BaseCluster
-
- getCurrentInc() - Static method in class org.bson.types.ObjectId
-
- getCursorId() - Method in interface com.mongodb.Cursor
-
Gets the server's identifier for this Cursor.
- getCursorId() - Method in class com.mongodb.DBCursor
-
- getCursorId() - Method in exception com.mongodb.MongoCursorNotFoundException
-
Get the cursor id that wasn't found.
- getCursorId() - Method in class com.mongodb.QueryResultIterator
-
- getData() - Method in class org.bson.types.Binary
-
Get a copy of the binary value.
- getDatabase() - Method in class com.mongodb.DBPort.SaslAuthenticator
-
Deprecated.
- getDatabase() - Method in class com.mongodb.MongoClientURI
-
Gets the database name
- getDatabase() - Method in class com.mongodb.MongoURI
-
Gets the database name.
- getDatabaseName() - Method in class com.mongodb.MapReduceOutput
-
Get the name of the database that the results of the map reduce were saved into.
- getDatabaseName() - Method in class com.mongodb.MongoNamespace
-
- getDatabaseNames() - Method in class com.mongodb.Mongo
-
Gets a list of the names of all databases on the connected server.
- getDatabases() - Method in class com.mongodb.MongoCredentialsStore
-
Gets the set of databases for which there are credentials stored.
- getDatatabaseNameFromNamespace(String) - Method in class com.mongodb.QueryResultIterator
-
- getDate(String) - Method in class org.bson.BasicBSONObject
-
Returns the date or null if not set.
- getDate(String, Date) - Method in class org.bson.BasicBSONObject
-
Returns the date or def if not set.
- getDate() - Method in class org.bson.types.ObjectId
-
Gets the timestamp as a Date instance.
- getDB() - Method in class com.mongodb.DBCollection
-
Returns the database this collection is a member of.
- getDB() - Method in class com.mongodb.DBRefBase
-
- getDB() - Method in class com.mongodb.gridfs.GridFS
-
Gets the database used.
- getDB(String) - Method in class com.mongodb.Mongo
-
Gets a database object from this MongoDB instance.
- getDBCallback(DBCollection) - Method in interface com.mongodb.DBDecoder
-
Get a callback for the given collection.
- getDBCallback(DBCollection) - Method in class com.mongodb.DefaultDBDecoder
-
- getDBCallback(DBCollection) - Method in class com.mongodb.LazyDBDecoder
-
- getDBCallback(DBCollection) - Method in class com.mongodb.LazyWriteableDBDecoder
-
Deprecated.
- getDBDecoderFactory() - Method in class com.mongodb.DBCollection
-
Get the decoder factory for this collection.
- getDbDecoderFactory() - Method in class com.mongodb.MongoClientOptions
-
Override the decoder factory.
- getDbDecoderFactory() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getDBEncoder() - Method in class com.mongodb.DBCollection
-
- getDbEncoder() - Method in class com.mongodb.InsertOptions
-
The encoder to use for the documents.
- getDBEncoderFactory() - Method in class com.mongodb.DBCollection
-
Get the encoder factory for this collection.
- getDbEncoderFactory() - Method in class com.mongodb.MongoClientOptions
-
Override the encoder factory.
- getDbEncoderFactory() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getDBName() - Method in class com.mongodb.DBAddress
-
Gets the database name
- getDBPortPool(ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Gets the DBPortPool associated with a ServerAddress.
- getDecoder() - Method in class com.mongodb.DBCollection
-
- getDecoder() - Method in class com.mongodb.DBCursor
-
- getDecoder() - Method in class com.mongodb.DBPort
-
Deprecated.
- getDecoderFactory() - Method in class com.mongodb.DBCursor
-
Gets the decoder factory that creates the decoder this cursor will use to decode objects from MongoDB.
- getDecodingHooks(Class) - Static method in class org.bson.BSON
-
Returns the decoding hook(s) associated with the specific class
- getDefaultMaxDocumentSize() - Static method in class com.mongodb.ServerDescription
-
- getDefaultMaxMessageSize() - Static method in class com.mongodb.ServerDescription
-
- getDefaultMaxWireVersion() - Static method in class com.mongodb.ServerDescription
-
- getDefaultMaxWriteBatchSize() - Static method in class com.mongodb.ServerDescription
-
- getDefaultMinWireVersion() - Static method in class com.mongodb.ServerDescription
-
- getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.CollectionView
-
- getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
-
- getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
-
- getDelegate() - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
-
- getDescription(long, TimeUnit) - Method in class com.mongodb.BaseCluster
-
- getDescription() - Method in class com.mongodb.BaseCluster.WrappedServer
-
- getDescription(long, TimeUnit) - Method in interface com.mongodb.Cluster
-
Get the description of this cluster.
- getDescription() - Method in class com.mongodb.DefaultServer
-
- getDescription() - Method in class com.mongodb.MongoClientOptions
-
Gets the description for this MongoClient, which is used in various places like logging and JMX.
- getDescription() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getDescription() - Method in interface com.mongodb.Server
-
Gets the description of this server.
- getDetails() - Method in class com.mongodb.BulkWriteError
-
Gets the details associated with this error.
- getDetails() - Method in class com.mongodb.WriteConcernError
-
Gets the details associated with this error.
- getDocument() - Method in class com.mongodb.InsertRequest
-
- getDocument() - Method in class com.mongodb.ReplaceRequest
-
- getDouble(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a double.
- getDouble(String, double) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an double.
- getDuration() - Method in class com.mongodb.MapReduceOutput
-
Get the amount of time, in milliseconds, that it took to run this map reduce.
- getDurationMS() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getElectionId() - Method in class com.mongodb.ServerDescription
-
The replica set electionid reported by this MongoDB server.
- getElement(String) - Method in class org.bson.LazyBSONObject
-
returns the ElementRecord for the given key, or null if not found
- getElementBSONSize(int) - Method in class org.bson.LazyBSONObject
-
- getElementFieldName(int) - Method in class org.bson.LazyBSONObject
-
- getElements() - Method in class org.bson.LazyBSONObject
-
returns all the ElementRecords in this document
- getElementType(int) - Method in class org.bson.LazyBSONObject
-
- getElementValue(LazyBSONObject.ElementRecord) - Method in class org.bson.LazyBSONObject
-
- getEmitCount() - Method in class com.mongodb.MapReduceOutput
-
Get the number of messages emitted from the provided map function.
- getEncodingHooks(Class<?>) - Static method in class org.bson.BSON
-
Returns the encoding hook(s) associated with the specified class.
- getErrInfo(DBObject) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getError() - Method in class com.mongodb.Response
-
- getError() - Method in class com.mongodb.ServerError
-
Deprecated.
Gets the error String
- getError() - Method in class com.mongodb.WriteResult
-
- getErrorCode() - Method in exception com.mongodb.MongoCommandException
-
Gets the error code associated with the command failure.
- getErrorCode() - Method in exception org.bson.BSONException
-
Returns the error code.
- getErrorMessage() - Method in class com.mongodb.CommandResult
-
Gets the error message associated with a failed command.
- getErrorMessage() - Method in exception com.mongodb.MongoCommandException
-
Gets the error message associated with the command failure.
- getErrorMessage() - Method in exception com.mongodb.WriteConcernException
-
Gets the error message associated with the write failure.
- getErrorResponseDetails(DBObject) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- getException() - Method in class com.mongodb.CommandResult
-
Utility method to create an exception from a failed command.
- getException() - Method in class com.mongodb.ServerDescription
-
- getExtraOptions() - Method in class com.mongodb.MapReduceCommand
-
- getField(String) - Method in class com.mongodb.WriteResult
-
- getFileList() - Method in class com.mongodb.gridfs.GridFS
-
Gets the list of files stored in this gridfs, sorted by filename.
- getFileList(DBObject) - Method in class com.mongodb.gridfs.GridFS
-
Gets a filtered list of files stored in this gridfs, sorted by filename.
- getFileList(DBObject, DBObject) - Method in class com.mongodb.gridfs.GridFS
-
Gets a sorted, filtered list of files stored in this gridfs.
- getFilename() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the filename.
- getFilesCollection() - Method in class com.mongodb.gridfs.GridFS
-
Gets the
DBCollection in which the file's metadata is stored.
- getFilter() - Method in class com.mongodb.Remove
-
- getFilter() - Method in class com.mongodb.Update
-
- getFinalize() - Method in class com.mongodb.MapReduceCommand
-
Gets the Finalize JS Function
- getFirst() - Method in class com.mongodb.ConcurrentLinkedDeque
-
- getFirst() - Method in interface com.mongodb.Deque
-
Retrieves, but does not remove, the first element of this
deque.
- getFsync() - Method in class com.mongodb.WriteConcern
-
Gets the fsync flag (fsync to disk on the server)
- getFullName() - Method in class com.mongodb.DBCollection
-
Get the full name of a collection, with the database name as a prefix.
- getFullName() - Method in class com.mongodb.MongoNamespace
-
- getGeneration() - Method in interface com.mongodb.Connection
-
- getGeneration() - Method in class com.mongodb.DBPort
-
Deprecated.
Gets the generation of this connection.
- getGenMachineId() - Static method in class org.bson.types.ObjectId
-
Deprecated.
- getGetMoreBatchSize() - Method in class com.mongodb.QueryResultIterator
-
- getGridFS() - Static method in class com.mongodb.gridfs.CLI
-
- getGridFS() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the GridFS associated with this file
- getGSSCredential(String) - Method in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- getHeartbeatConnectRetryFrequency() - Method in class com.mongodb.MongoClientOptions
-
- getHeartbeatConnectRetryFrequency(TimeUnit) - Method in class com.mongodb.ServerSettings
-
- getHeartbeatConnectTimeout() - Method in class com.mongodb.MongoClientOptions
-
Gets the connect timeout for connections used for the cluster heartbeat.
- getHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
-
Gets the heartbeat frequency.
- getHeartbeatFrequency(TimeUnit) - Method in class com.mongodb.ServerSettings
-
- getHeartbeatSocketSettings() - Method in class com.mongodb.ServerSettings
-
- getHeartbeatSocketTimeout() - Method in class com.mongodb.MongoClientOptions
-
Gets the socket timeout for connections used for the cluster heartbeat.
- getHeartbeatThreadCount() - Method in class com.mongodb.MongoClientOptions
-
- getHintFields() - Method in class com.mongodb.DBCollection
-
Get hint fields for this collection (used to optimize queries).
- getHost() - Method in class com.mongodb.ConnectionPoolStatistics
-
- getHost() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the host that this connection pool is connecting to.
- getHost() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- getHost() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the host that this connection pool is connecting to.
- getHost() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the host that this connection pool is connecting to.
- getHost() - Method in class com.mongodb.ServerAddress
-
Gets the hostname
- getHostName() - Method in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- getHosts() - Method in class com.mongodb.ClusterSettings
-
Gets the seed list of hosts for the cluster.
- getHosts() - Method in class com.mongodb.MongoClientURI
-
Gets the list of hosts
- getHosts() - Method in class com.mongodb.MongoURI
-
Gets the list of hosts.
- getHosts() - Method in class com.mongodb.ServerDescription
-
- getId() - Method in class com.mongodb.BulkWriteUpsert
-
Gets the id of the upserted item.
- getId() - Method in class com.mongodb.DBPointer
-
Deprecated.
- getId() - Method in class com.mongodb.DBRefBase
-
Deprecated.
Gets the _id of the referenced document
- getId() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the id.
- getId() - Method in class com.mongodb.OutMessage
-
- getId() - Method in class com.mongodb.RequestMessage
-
- getInc() - Method in class org.bson.types.BSONTimestamp
-
Gets the increment value.
- getInc() - Method in class org.bson.types.ObjectId
-
- getIndex() - Method in class com.mongodb.BulkWriteError
-
The index of the item in the bulk write operation with this error.
- getIndex() - Method in class com.mongodb.BulkWriteUpsert
-
Gets the index of the upserted item based on the order it was added to the bulk write operation.
- getIndexInfo() - Method in class com.mongodb.DBCollection
-
Return a list of the indexes for this collection.
- getIndexInfo() - Method in class com.mongodb.DBCollectionImpl
-
- getInput() - Method in class com.mongodb.MapReduceCommand
-
Get the name of the collection the MapReduce will read from
- getInputCount() - Method in class com.mongodb.MapReduceOutput
-
Get the number of documents that were input into the map reduce operation
- getInputStream() - Method in class com.mongodb.DBPort
-
Deprecated.
- getInputStream() - Method in class com.mongodb.gridfs.GridFSDBFile
-
Returns an InputStream from which data can be read.
- getInsertedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
-
- getInsertedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents inserted by the write operation.
- getInsertedCount() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
-
- getInt(String, int) - Method in class com.mongodb.util.OptionMap
-
Deprecated.
- getInt(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an int.
- getInt(String, int) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an int.
- getInt(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
Gets a Little Endian Integer
- getIntBE(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getIntegerArg(String, String) - Static method in class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
- getInternalClass(String) - Method in class com.mongodb.DBCollection
-
Gets the internal class for the given path in the document hierarchy
- getInternalClass(String) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
- getIntLE(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getInUse() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the number of pool members that are currently in use.
- getInUse() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
Gets the number of pool members that are currently in use.
- getInUse() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getInUseConnections() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
Gets an array of beans describing all the connections that are currently in use.
- getInUseCount() - Method in class com.mongodb.ConcurrentPool
-
- getItemCount() - Method in class com.mongodb.BaseWriteCommandMessage
-
- getItemCount() - Method in class com.mongodb.DeleteCommandMessage
-
- getItemCount() - Method in class com.mongodb.InsertCommandMessage
-
- getItemCount() - Method in class com.mongodb.UpdateCommandMessage
-
- getJ() - Method in class com.mongodb.WriteConcern
-
Gets the j parameter (journal syncing)
- getJsMode() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) JavaScript mode
- getKeyString(String) - Method in class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
- getKeysWanted() - Method in class com.mongodb.DBCursor
-
Gets the fields to be returned.
- getLast() - Method in class com.mongodb.ConcurrentLinkedDeque
-
- getLast() - Method in interface com.mongodb.Deque
-
Retrieves, but does not remove, the last element of this
deque.
- getLastConcern() - Method in class com.mongodb.WriteResult
-
- getLastError() - Method in class com.mongodb.DB
-
- getLastError(WriteConcern) - Method in class com.mongodb.DB
-
- getLastError(int, int, boolean) - Method in class com.mongodb.DB
-
- getLastError(DB, WriteConcern) - Method in class com.mongodb.DBPort
-
Deprecated.
- getLastError() - Method in class com.mongodb.WriteResult
-
- getLastError(WriteConcern) - Method in class com.mongodb.WriteResult
-
- getLastUsedAt() - Method in interface com.mongodb.Connection
-
- getLastUsedAt() - Method in class com.mongodb.DBPort
-
Deprecated.
Returns the time at which this connection was last used, or Long.MAX_VALUE if it has not yet been used.
- getLastValue(Map<String, List<String>>, String) - Method in class com.mongodb.MongoClientURI
-
- getLegacy() - Static method in class com.mongodb.util.JSONSerializers
-
Returns an
ObjectSerializer that mostly conforms to the strict JSON format defined in
extended JSON, but with a few differences to keep
compatibility with previous versions of the driver.
- getLength() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the file's length.
- getLimit() - Method in class com.mongodb.DBCursor
-
Gets the query limit.
- getLimit() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) limit on input
- getLocalPort() - Method in class com.mongodb.DBPort
-
Deprecated.
- getLocalPort() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getLocalThreshold() - Method in class com.mongodb.MongoClientOptions
-
Gets the local threshold.
- getLogger() - Method in class com.mongodb.DBCollectionImpl
-
- getLogger(String) - Static method in class com.mongodb.Loggers
-
Gets a logger with the given suffix appended on to PREFIX, separated by a '.'.
- getLong(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a long.
- getLong(String, long) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as an long.
- getLong(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getMachine() - Method in class org.bson.types.ObjectId
-
- getMaintenanceFrequency(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
-
- getMaintenanceInitialDelay(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
-
- getMajorVersion() - Static method in class com.mongodb.Mongo
-
- getMap() - Method in class com.mongodb.MapReduceCommand
-
Get the map function, as a JS String
- getMaster() - Method in class com.mongodb.ReplicaSetStatus
-
Gets the ServerAddress of the master server in this replica set.
- getMatchedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
-
- getMatchedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents matched by updates or replacements in the write operation.
- getMatchedCount() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
-
- getMax() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoClientOptions
-
- getMaxAutoConnectRetryTime() - Method in class com.mongodb.MongoOptions
-
- getMaxBsonObjectSize() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Gets the maximum size for a BSON object supported by the current master server.
- getMaxBsonObjectSize() - Method in class com.mongodb.Mongo
-
Gets the maximum size for a BSON object supported by the current master server.
- getMaxBsonObjectSize() - Method in class com.mongodb.ReplicaSetStatus
-
Gets the maximum size for a BSON object supported by the current master server.
- getMaxConnectionIdleTime(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
-
- getMaxConnectionIdleTime() - Method in class com.mongodb.MongoClientOptions
-
The maximum idle time of a pooled connection.
- getMaxConnectionLifeTime(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
-
- getMaxConnectionLifeTime() - Method in class com.mongodb.MongoClientOptions
-
The maximum life time of a pooled connection.
- getMaxDocumentSize() - Method in class com.mongodb.BSONBinaryWriterSettings
-
- getMaxDocumentSize() - Method in class com.mongodb.MessageSettings
-
- getMaxDocumentSize() - Method in class com.mongodb.ServerDescription
-
- getMaxMessageSize() - Method in class com.mongodb.MessageSettings
-
- getMaxMessageSize() - Method in class com.mongodb.ServerDescription
-
- getMaxSerializationDepth() - Method in class com.mongodb.BSONWriterSettings
-
- getMaxSize() - Method in class com.mongodb.ConcurrentPool
-
- getMaxSize() - Method in class com.mongodb.ConnectionPoolSettings
-
- getMaxSize() - Method in class com.mongodb.ConnectionPoolStatistics
-
- 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.
- getMaxWaitQueueSize() - Method in class com.mongodb.ConnectionPoolSettings
-
- getMaxWaitTime(TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings
-
- 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.
- getMaxWireVersion() - Method in class com.mongodb.ServerDescription
-
- getMaxWriteBatchSize(DBPort) - Method in class com.mongodb.DBCollectionImpl
-
- getMaxWriteBatchSize() - Method in class com.mongodb.MessageSettings
-
- getMaxWriteBatchSize() - Method in class com.mongodb.ServerDescription
-
- getMBean(String, ServerAddress) - Method in class com.mongodb.JMXConnectionPoolListener
-
- getMBeanObjectName(String, ServerAddress) - Method in class com.mongodb.JMXConnectionPoolListener
-
- getMBeanServer() - Static method in class com.mongodb.util.management.MBeanServerFactory
-
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
- getMechanismName() - Method in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- getMechanismName() - Method in class com.mongodb.DBPort.PlainAuthenticator
-
Deprecated.
- getMechanismName() - Method in class com.mongodb.DBPort.SaslAuthenticator
-
Deprecated.
- getMechanismName() - Method in class com.mongodb.DBPort.ScramSha1Authenticator
-
Deprecated.
- getMechanismName() - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- 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.
- getMessageSettings(DBPort) - Method in class com.mongodb.DBCollectionImpl
-
- getMetaData() - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the file metadata.
- getMinConnectionsPerHost() - Method in class com.mongodb.MongoClientOptions
-
The minimum number of connections per host for this MongoClient instance.
- getMinHeartbeatFrequency() - Method in class com.mongodb.MongoClientOptions
-
Gets the minimum heartbeat frequency.
- getMinorVersion() - Static method in class com.mongodb.Mongo
-
- getMinSize() - Method in class com.mongodb.ConnectionPoolSettings
-
- getMinSize() - Method in class com.mongodb.ConnectionPoolStatistics
-
- getMinSize() - Method in interface com.mongodb.ConnectionPoolStatisticsMBean
-
Gets the minimum allowed size of the pool, including idle and in-use members.
- getMinWireVersion() - Method in class com.mongodb.ServerDescription
-
- getMode() - Method in class com.mongodb.ClusterSettings
-
Gets the mode.
- getModifiedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
-
- getModifiedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents modified by the write operation.
- getModifiedCount() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
-
- getModifiedCount(WriteRequest.Type, CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getMongo() - Method in class com.mongodb.DB
-
Gets the Mongo instance
- getMongo() - Static method in class com.mongodb.gridfs.CLI
-
- getMongoAuthorityFromURI(MongoURI) - Static method in class com.mongodb.Mongo
-
- getMongoClientOptions() - Method in class com.mongodb.MongoClient
-
- getMongoOptions() - Method in class com.mongodb.Mongo
-
- getMongosHAServerSelector() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getMore(DBCollection, long, int) - Static method in class com.mongodb.OutMessage
-
- getMore() - Method in class com.mongodb.QueryResultIterator
-
- getMsg(BSONObject, String) - Static method in class com.mongodb.ServerError
-
Deprecated.
- getMyPort() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- 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.BSONWriter
-
- getName() - Method in class com.mongodb.DB
-
Returns the name of this database.
- getName() - Method in class com.mongodb.DBCollection
-
Get the name of a collection.
- getName() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the name of the pool.
- getName() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the name of the pool.
- getName() - Method in class com.mongodb.ReadPreference
-
The name of this read preference.
- getName() - Method in class com.mongodb.ReadPreference.PrimaryReadPreference
-
- getName() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- getName() - Method in class com.mongodb.ReplicaSetStatus
-
Get the name of the replica set.
- getName() - Method in class com.mongodb.Tag
-
Gets the name of the replica set tag.
- getName() - Method in class com.mongodb.TaggableReadPreference.NearestReadPreference
-
- getName() - Method in class com.mongodb.TaggableReadPreference.PrimaryPreferredReadPreference
-
- getName() - Method in class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
-
- getName() - Method in class com.mongodb.TaggableReadPreference.SecondaryReadPreference
-
- getName() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getNamespace() - Method in class com.mongodb.DBCollectionImpl
-
- getNamespace() - Method in class com.mongodb.DBPort.ActiveState
-
Deprecated.
- getNamespace() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getNamespace() - Method in class com.mongodb.OutMessage
-
- getNamespace() - Method in class com.mongodb.RequestMessage
-
- getNegotiatedProperty(String) - Method in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- getNewServerDescriptionList() - Method in class com.mongodb.MultiServerCluster
-
- getNewValue() - Method in class com.mongodb.ChangeEvent
-
- getNext() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
-
Gets next link (which is actually the value held
as atomic reference).
- getNextState() - Method in class com.mongodb.BSONWriter
-
- getNonceCommand() - Static method in class com.mongodb.NativeAuthenticationHelper
-
- getNumCursors() - Method in class com.mongodb.ParallelScanOptions
-
Gets the number of cursors requested.
- getNumDocuments() - Method in class com.mongodb.DBPort.ActiveState
-
Deprecated.
- getNumDocuments() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getNumDocuments() - Method in class com.mongodb.OutMessage
-
- getObject() - Method in class com.mongodb.RawDBObject.Element
-
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
-
- getOkServers(ClusterDescription) - Method in class com.mongodb.MongosHAServerSelector
-
- getOldValue() - Method in class com.mongodb.ChangeEvent
-
- getOpCode() - Method in class com.mongodb.DBPort.ActiveState
-
Deprecated.
- getOpCode() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getOpCode() - Method in class com.mongodb.OutMessage
-
- getOpCode() - Method in class com.mongodb.RequestMessage
-
- getOpenedAt() - Method in interface com.mongodb.Connection
-
- 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.
- getOptions() - Method in class com.mongodb.ServerMonitor
-
- getOutputBuffer() - Method in class org.bson.BasicBSONEncoder
-
Gets the buffer the BSON is being encoded into.
- getOutputCollection() - Method in class com.mongodb.MapReduceOutput
-
Gets the collection that holds the results (Will return null if results are Inline).
- getOutputCount() - Method in class com.mongodb.MapReduceOutput
-
Get the number of documents generated as a result of this map reduce
- getOutputDB() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) database name where the output collection should reside
- getOutputMode() - Method in class com.mongodb.AggregationOptions
-
The mode of output for this configuration.
- getOutputStream() - Method in class com.mongodb.DBPort
-
Deprecated.
- 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.
- getParentContext() - Method in class com.mongodb.BSONBinaryWriter.Context
-
- getParentContext() - Method in class com.mongodb.BSONWriter.Context
-
- getPassives() - Method in class com.mongodb.ServerDescription
-
- 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.
- getPinnedRequestPortForThread() - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- getPinnedRequestStatusForThread() - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- getPool() - Method in class com.mongodb.DBPort
-
Deprecated.
Gets the pool that this port belongs to.
- getPort() - Method in class com.mongodb.ConnectionPoolStatistics
-
- 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(ReadPreference) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getPort() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the port that this connection pool is connecting to.
- getPort() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the port that this connection pool is connecting to.
- getPort() - Method in class com.mongodb.ServerAddress
-
Gets the port number
- getPos() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- getPosition() - Method in class org.bson.io.BasicOutputBuffer
-
- getPosition() - Method in class org.bson.io.OutputBuffer
-
Gets the current position in the stream.
- getPosition() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- getPrev() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
-
Gets prev link.
- getPreviousError() - Method in class com.mongodb.DB
-
- getPrimaries() - Method in class com.mongodb.ClusterDescription
-
While it may seem counter-intuitive that a MongoDb cluster can have more than one primary, it can in the case where the client's view
of the cluster is a set of mongos servers, any of which can serve as the primary.
- getPrimary() - Method in class com.mongodb.ServerDescription
-
- getPrimaryPort() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getProvider() - Method in class com.mongodb.DBPort
-
Deprecated.
- getQuery() - Method in class com.mongodb.DBCursor
-
Gets the query.
- getQuery() - Method in class com.mongodb.DBPort.ActiveState
-
Deprecated.
- getQuery() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getQuery() - Method in class com.mongodb.MapReduceCommand
-
Gets the query to run for this MapReduce job
- getQuery() - Method in class com.mongodb.ModifyRequest
-
- getQuery() - Method in class com.mongodb.OutMessage
-
- getQuery() - Method in class com.mongodb.RemoveRequest
-
- getRandom() - Method in class com.mongodb.BaseCluster
-
- getRandomServer(List<ServerDescription>) - Method in class com.mongodb.BaseCluster
-
- getRaw() - Method in class com.mongodb.MapReduceOutput
-
- getReadPreference() - Method in class com.mongodb.DB
-
Gets the read preference for this database.
- getReadPreference() - Method in class com.mongodb.DBCollection
-
- getReadPreference() - Method in class com.mongodb.DBCursor
-
Gets the default read preference.
- getReadPreference() - Method in class com.mongodb.MapReduceCommand
-
Gets the read preference
- getReadPreference() - Method in class com.mongodb.Mongo
-
Gets the default read preference
- getReadPreference() - Method in class com.mongodb.MongoClientOptions
-
The read preference to use for queries, map-reduce, aggregation, and count.
- getReadPreference() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- getReadPreference() - Method in class com.mongodb.ParallelScanOptions
-
Gets the read preference to use.
- getReadPreference() - Method in class com.mongodb.ReadPreferenceServerSelector
-
- getReadTimeout(TimeUnit) - Method in class com.mongodb.SocketSettings
-
- getReduce() - Method in class com.mongodb.MapReduceCommand
-
Gets the reduce function, as a JS String
- getRef() - Method in class com.mongodb.DBRefBase
-
- getRemainingMaps(List<DBObject>) - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- getRemovedCount() - Method in class com.mongodb.AcknowledgedBulkWriteResult
-
- getRemovedCount() - Method in class com.mongodb.BulkWriteResult
-
Returns the number of documents removed by the write operation.
- getRemovedCount() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
-
- getReplicaSetStatus() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getReplicaSetStatus() - Method in class com.mongodb.Mongo
-
Get the status of the replica set cluster.
- getRequiredClusterType() - Method in class com.mongodb.ClusterSettings
-
Get
- getRequiredReplicaSetName() - Method in class com.mongodb.ClusterSettings
-
Gets the required replica set name.
- 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.
- getResult() - Method in class com.mongodb.BulkWriteBatchCombiner
-
- getResult(WriteResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- getRunGenerator(boolean, Boolean, List<WriteRequest>, WriteConcern, DBEncoder, DBPort) - Method in class com.mongodb.DBCollectionImpl
-
- getScope() - Method in class com.mongodb.MapReduceCommand
-
Gets the (optional) JavaScript scope
- getScope() - Method in class org.bson.types.CodeWScope
-
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
- getSecondaries() - Method in class com.mongodb.ClusterDescription
-
- getSecondaries(TagSet) - Method in class com.mongodb.ClusterDescription
-
- getServer(ServerSelector, long, TimeUnit) - Method in class com.mongodb.BaseCluster
-
- getServer(ServerAddress) - Method in class com.mongodb.BaseCluster
-
Return the server at the given address.
- getServer(ServerSelector, long, TimeUnit) - Method in interface com.mongodb.Cluster
-
Get a MongoDB server that matches the criteria defined by the serverSelector
- getServer(ServerSelector) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getServer(ServerAddress) - Method in class com.mongodb.MultiServerCluster
-
- getServer(ServerAddress) - Method in class com.mongodb.SingleServerCluster
-
- getServerAddress() - Method in exception com.mongodb.BulkWriteException
-
The address of the server which performed the bulk write operation.
- getServerAddress() - Method in class com.mongodb.ConnectionEvent
-
Gets the server address associated with this connection.
- getServerAddress() - Method in class com.mongodb.ConnectionPoolEvent
-
Gets the server address associated with this connection pool
- getServerAddress() - Method in interface com.mongodb.Cursor
-
Gets the address of the server that data is pulled from.
- getServerAddress() - Method in class com.mongodb.DBCursor
-
Gets the Server Address of the server that data is pulled from.
- getServerAddress() - Method in class com.mongodb.DBPortPool
-
Deprecated.
- getServerAddress() - Method in exception com.mongodb.MongoCommandException
-
Gets the address of the server that this command failed on.
- getServerAddress() - Method in exception com.mongodb.MongoCursorNotFoundException
-
The server address where the cursor is.
- getServerAddress() - Method in class com.mongodb.QueryResultIterator
-
- getServerAddress() - Method in exception com.mongodb.WriteConcernException
-
Gets the address of the server that the write executed on.
- getServerAddresses() - Method in class com.mongodb.MongoAuthority
-
Returns the list of server addresses.
- 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.
- getServerDescription(ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getServers(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference
-
- getServers(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.NearestReadPreference
-
- getServers(ClusterDescription) - Method in class com.mongodb.TaggableReadPreference.SecondaryReadPreference
-
- getServersByPredicate(ClusterDescription.Predicate) - Method in class com.mongodb.ClusterDescription
-
- getServersForTags(ClusterDescription, TagSet) - Method in class com.mongodb.TaggableReadPreference
-
- getServersForTags(ClusterDescription, TagSet) - Method in class com.mongodb.TaggableReadPreference.NearestReadPreference
-
- getServersForTags(ClusterDescription, TagSet) - Method in class com.mongodb.TaggableReadPreference.SecondaryReadPreference
-
- getServersWithAcceptableLatencyDifference(Set<ServerDescription>, long) - Method in class com.mongodb.LatencyMinimizingServerSelector
-
- getServerType(CommandResult) - Static method in class com.mongodb.ServerMonitor
-
- getServerUsed() - Method in class com.mongodb.AggregationOutput
-
- getServerUsed() - Method in class com.mongodb.CommandResult
-
- getServerUsed() - Method in class com.mongodb.MapReduceOutput
-
- getServerVersion() - Method in class com.mongodb.DBPort
-
Deprecated.
- getSetName() - Method in class com.mongodb.ServerDescription
-
- getSettings() - Method in class com.mongodb.BaseCluster
-
- getSettings() - Method in interface com.mongodb.ClusterableServerFactory
-
- getSettings() - Method in class com.mongodb.ConnectionPoolOpenedEvent
-
Gets the settings for this connection pool.
- getSettings() - Method in class com.mongodb.DefaultClusterableServerFactory
-
- getSettings() - Method in class com.mongodb.RequestMessage
-
- getSetVersion() - Method in class com.mongodb.ServerDescription
-
The replica set setVersion reported by this MongoDB server.
- getShortDescription() - Method in class com.mongodb.ClusterDescription
-
- getShortDescription() - Method in class com.mongodb.ClusterSettings
-
- getShortDescription() - Method in class com.mongodb.ServerDescription
-
- 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 class com.mongodb.ConnectionPoolStatistics
-
- 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
-
- getSizes() - Method in class com.mongodb.QueryResultIterator
-
- 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.
- getSocketFactory() - Method in class com.mongodb.SocketSettings
-
- 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.
- getStartTime() - Method in class com.mongodb.DBPort.ActiveState
-
Deprecated.
- getState() - Method in class com.mongodb.BSONWriter
-
- getState() - Method in class com.mongodb.ServerDescription
-
- getStatistics(ConnectionEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- getStatistics(ConnectionPoolEvent) - Method in class com.mongodb.JMXConnectionPoolListener
-
- getStatistics(String, ServerAddress) - Method in class com.mongodb.JMXConnectionPoolListener
-
- getStatistics() - Method in interface com.mongodb.MongoConnectionPoolMXBean
-
Deprecated.
Gets the statistics for this connection pool.
- getStats() - Method in class com.mongodb.DB
-
Helper method for calling a 'dbStats' command.
- getStats() - Method in class com.mongodb.DBCollection
-
The collStats command returns a variety of storage statistics for a given collection
- getStats() - Method in class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
Gets the statistics for all Mongo connection pools registered with the MBean server used
by this instance.
- getStatus() - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- getStatus(Thread) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
- getStrict() - Static method in class com.mongodb.util.JSONSerializers
-
Returns an
ObjectSerializer that conforms to the strict JSON format defined in
extended JSON.
- getString(String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a string
- getString(String, String) - Method in class org.bson.BasicBSONObject
-
Returns the value of a field as a string
- getSymbol() - Method in class org.bson.types.Symbol
-
Gets the symbol.
- getTags() - Method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- getTagSet(String) - Method in class com.mongodb.MongoClientURI
-
- getTagSet() - Method in class com.mongodb.ServerDescription
-
- getTagSetFromDocument(DBObject) - Static method in class com.mongodb.ServerMonitor
-
- getTagSetList() - Method in class com.mongodb.TaggableReadPreference
-
Gets the list of tag sets as a list of TagSet instances.
- getTagSets() - Method in class com.mongodb.TaggableReadPreference
-
- getThreadId() - Method in class com.mongodb.ConnectionPoolWaitQueueEvent
-
Gets the identifier of the waiting thread.
- getThreadName() - Method in class com.mongodb.DBPort.ActiveState
-
Deprecated.
- getThreadName() - Method in class com.mongodb.InUseConnectionBean
-
Deprecated.
- getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.MongoClientOptions
-
This multiplier, multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be waiting for a
connection to become available from the pool.
- getThreadsAllowedToBlockForConnectionMultiplier() - Method in class com.mongodb.MongoOptions
-
Deprecated.
Gets the multiplier which, when multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be
waiting for a connection to become available from the pool.
- getTime() - Method in class org.bson.types.BSONTimestamp
-
Gets the time in seconds since epoch.
- getTime() - Method in class org.bson.types.ObjectId
-
- getTimeSecond() - Method in class org.bson.types.ObjectId
-
- getTimestamp() - Method in class org.bson.types.ObjectId
-
Gets the timestamp (number of seconds since the Unix epoch).
- getTotal() - Method in interface com.mongodb.Java5MongoConnectionPoolMBean
-
Deprecated.
Gets the total number of pool members, including idle and and in-use members.
- getTotal() - Method in class com.mongodb.util.ConnectionPoolStatisticsBean
-
Deprecated.
Gets the total number of pool members, including idle and and in-use members.
- getTotal() - Method in class com.mongodb.util.SimplePool
-
Deprecated.
- getType(Object) - Static method in class com.mongodb.Bytes
-
Gets the type byte for a given object.
- getType() - Method in class com.mongodb.ClusterDescription
-
- getType() - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- getType() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- getType() - Method in class com.mongodb.InsertRequest
-
- getType() - Method in class com.mongodb.MongoAuthority
-
Gets the authority type
- getType() - Method in class com.mongodb.RemoveRequest
-
- getType() - Method in class com.mongodb.ReplaceRequest
-
- getType() - Method in class com.mongodb.ServerDescription
-
- getType() - Method in class com.mongodb.UpdateRequest
-
- getType() - Method in class com.mongodb.WriteRequest
-
- getType() - Method in class org.bson.types.Binary
-
Get the binary sub type as a byte.
- getUnacknowledgedWriteException() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
-
- getUpdate() - Method in class com.mongodb.UpdateRequest
-
- getUpdateDocument() - Method in class com.mongodb.ModifyRequest
-
- getUpdateOperations() - Method in class com.mongodb.Update
-
- 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.
- getUpsertedItems(WriteResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- getUpsertedItems(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getUpserts() - Method in class com.mongodb.AcknowledgedBulkWriteResult
-
- getUpserts() - Method in class com.mongodb.BulkWriteResult
-
Gets an unmodifiable list of upserted items, or the empty list if there were none.
- getUpserts() - Method in class com.mongodb.UnacknowledgedBulkWriteResult
-
- 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.
- getUserCommandDocument(String, char[], boolean, String) - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- 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.
- getUserRoleName(boolean) - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- getUTF8String(int) - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- getValue() - Method in enum com.mongodb.BSONBinarySubType
-
- getValue() - Method in enum com.mongodb.BSONType
-
- getValue() - Method in enum com.mongodb.OutMessage.OpCode
-
- getValue() - Method in enum com.mongodb.RequestMessage.OpCode
-
- getValue() - Method in class com.mongodb.Tag
-
Gets the value of the replica set tag.
- getValueString(Object, ConnectionPoolStat.StringType) - Method in class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
- getVersion(CommandResult) - Static method in class com.mongodb.DBPort
-
Deprecated.
- getVersion() - Method in class com.mongodb.Mongo
-
- getVersion() - Method in class com.mongodb.ServerDescription
-
- getVersionList() - Method in class com.mongodb.ServerVersion
-
Gets the version list.
- 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 class com.mongodb.ConnectionPoolStatistics
-
- 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() - Method in class com.mongodb.ReflectionDBObject
-
- 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.BaseWriteCommandMessage
-
- getWriteConcern() - Method in class com.mongodb.DB
-
Gets the write concern for this database.
- getWriteConcern() - Method in class com.mongodb.DBCollection
-
- getWriteConcern() - Method in class com.mongodb.InsertOptions
-
The write concern to use for the insertion.
- getWriteConcern() - Method in class com.mongodb.Mongo
-
Gets the default write concern
- getWriteConcern() - Method in class com.mongodb.MongoClientOptions
-
The write concern to use.
- getWriteConcern() - Method in class com.mongodb.MongoOptions
-
Deprecated.
Helper method to return the appropriate WriteConcern instance based on the current related options settings.
- getWriteConcernError() - Method in exception com.mongodb.BulkWriteException
-
The write concern error, which may be null (in which case the list of errors will not be empty).
- getWriteConcernError(CommandResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- getWriteConcernError(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getWriteConcernErrorMessage(CommandResult) - Method in class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- 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).
- getWriteErrors(CommandResult) - Static method in class com.mongodb.WriteCommandResultHelper
-
- getWriteException() - Method in class com.mongodb.CommandResult
-
- getWriteNamespace() - Method in class com.mongodb.BaseWriteCommandMessage
-
- getWriteRequestsAsInsertRequests() - Method in class com.mongodb.DBCollectionImpl.Run
-
- getWriteRequestsAsModifyRequests() - Method in class com.mongodb.DBCollectionImpl.Run
-
- getWriteRequestsAsRaw() - Method in class com.mongodb.DBCollectionImpl.Run
-
- getWriteRequestsAsRemoveRequests() - Method in class com.mongodb.DBCollectionImpl.Run
-
- 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)
- GLOBAL_FLAG - Static variable in class org.bson.BSON
-
- gotBinary(String, byte, byte[]) - Method in class org.bson.BasicBSONCallback
-
- gotBinary(String, byte, byte[]) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a binary value.
- gotBinary(String, byte, byte[]) - Method in class org.bson.EmptyBSONCallback
-
- gotBinary(String, byte, byte[]) - Method in class org.bson.LazyBSONCallback
-
- gotBinaryArray(String, byte[]) - Method in class org.bson.BasicBSONCallback
-
Deprecated.
- gotBinaryArray(String, byte[]) - Method in interface org.bson.BSONCallback
-
Deprecated.
- gotBinaryArray(String, byte[]) - Method in class org.bson.EmptyBSONCallback
-
Deprecated.
- gotBoolean(String, boolean) - Method in class org.bson.BasicBSONCallback
-
- gotBoolean(String, boolean) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Boolean value.
- gotBoolean(String, boolean) - Method in class org.bson.EmptyBSONCallback
-
- gotCode(String, String) - Method in class org.bson.BasicBSONCallback
-
- gotCode(String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a JavaScript value.
- gotCode(String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotCodeWScope(String, String, Object) - Method in class org.bson.BasicBSONCallback
-
- gotCodeWScope(String, String, Object) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a JavaScript with Scope value.
- gotCodeWScope(String, String, Object) - Method in class org.bson.EmptyBSONCallback
-
- gotDate(String, long) - Method in class org.bson.BasicBSONCallback
-
- gotDate(String, long) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a DateTime value.
- gotDate(String, long) - Method in class org.bson.EmptyBSONCallback
-
- gotDBRef(String, String, ObjectId) - Method in class com.mongodb.DefaultDBCallback
-
- gotDBRef(String, String, ObjectId) - Method in class org.bson.BasicBSONCallback
-
- gotDBRef(String, String, ObjectId) - Method in interface org.bson.BSONCallback
-
Invoked when
BSONDecoder encountered a DBPointer(0x0c) type field in a byte sequence.
- gotDBRef(String, String, ObjectId) - Method in class org.bson.EmptyBSONCallback
-
- gotDouble(String, double) - Method in class org.bson.BasicBSONCallback
-
- gotDouble(String, double) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Double value.
- gotDouble(String, double) - Method in class org.bson.EmptyBSONCallback
-
- gotInt(String, int) - Method in class org.bson.BasicBSONCallback
-
- gotInt(String, int) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an Int32 value.
- gotInt(String, int) - Method in class org.bson.EmptyBSONCallback
-
- gotLong(String, long) - Method in class org.bson.BasicBSONCallback
-
- gotLong(String, long) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an Int64 value.
- gotLong(String, long) - Method in class org.bson.EmptyBSONCallback
-
- gotMaxKey(String) - Method in class org.bson.BasicBSONCallback
-
- gotMaxKey(String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a MaxKey value.
- gotMaxKey(String) - Method in class org.bson.EmptyBSONCallback
-
- gotMinKey(String) - Method in class org.bson.BasicBSONCallback
-
- gotMinKey(String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a MinKey value.
- gotMinKey(String) - Method in class org.bson.EmptyBSONCallback
-
- gotNull(String) - Method in class org.bson.BasicBSONCallback
-
- gotNull(String) - Method in interface org.bson.BSONCallback
-
Called when reading a BSON field that exists but has a null value.
- gotNull(String) - Method in class org.bson.EmptyBSONCallback
-
- gotObjectId(String, ObjectId) - Method in class org.bson.BasicBSONCallback
-
- gotObjectId(String, ObjectId) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an ObjectID value.
- gotObjectId(String, ObjectId) - Method in class org.bson.EmptyBSONCallback
-
- gotRegex(String, String, String) - Method in class org.bson.BasicBSONCallback
-
- gotRegex(String, String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Regex value.
- gotRegex(String, String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotString(String, String) - Method in class org.bson.BasicBSONCallback
-
- gotString(String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a String value.
- gotString(String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotSymbol(String, String) - Method in class org.bson.BasicBSONCallback
-
- gotSymbol(String, String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Symbol value.
- gotSymbol(String, String) - Method in class org.bson.EmptyBSONCallback
-
- gotTimestamp(String, int, int) - Method in class org.bson.BasicBSONCallback
-
- gotTimestamp(String, int, int) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a Timestamp value.
- gotTimestamp(String, int, int) - Method in class org.bson.EmptyBSONCallback
-
- gotUndefined(String) - Method in class org.bson.BasicBSONCallback
-
- gotUndefined(String) - Method in interface org.bson.BSONCallback
-
Called when reading a field with an Undefined value.
- gotUndefined(String) - Method in class org.bson.EmptyBSONCallback
-
- gotUUID(String, long, long) - Method in class org.bson.BasicBSONCallback
-
- gotUUID(String, long, long) - Method in interface org.bson.BSONCallback
-
Called when reading a field with a UUID value.
- gotUUID(String, long, long) - Method in class org.bson.EmptyBSONCallback
-
- greaterThan(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent to the $gt operator
- greaterThanEquals(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent to the $gte operator
- GridFS - Class in com.mongodb.gridfs
-
Implementation of GridFS - a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.
- GridFS(DB) - Constructor for class com.mongodb.gridfs.GridFS
-
Creates a GridFS instance for the default bucket "fs" in the given database.
- GridFS(DB, String) - Constructor for class com.mongodb.gridfs.GridFS
-
Creates a GridFS instance for the specified bucket in the given database.
- GridFSDBFile - Class in com.mongodb.gridfs
-
This class enables retrieving a GridFS file metadata and content.
- GridFSDBFile() - Constructor for class com.mongodb.gridfs.GridFSDBFile
-
- GridFSDBFile.MyInputStream - Class in com.mongodb.gridfs
-
- GridFSFile - Class in com.mongodb.gridfs
-
The abstract class representing a GridFS file.
- GridFSFile() - Constructor for class com.mongodb.gridfs.GridFSFile
-
- GridFSInputFile - Class in com.mongodb.gridfs
-
This class represents a GridFS file to be written to the database.
- GridFSInputFile(GridFS, InputStream, String, boolean) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
- GridFSInputFile(GridFS, InputStream, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Default constructor setting the GridFS file name and providing an input stream containing data to be written to the file.
- GridFSInputFile(GridFS, String) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Constructor that only provides a file name, but does not rely on the presence of an InputStream.
- GridFSInputFile(GridFS) - Constructor for class com.mongodb.gridfs.GridFSInputFile
-
Minimal constructor that does not rely on the presence of an InputStream.
- GridFSInputFile.MyOutputStream - Class in com.mongodb.gridfs
-
An output stream implementation that can be used to successively write to a GridFS file.
- group(DBObject, DBObject, DBObject, String) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(DBObject, DBObject, DBObject, String, String) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(DBObject, DBObject, DBObject, String, String, ReadPreference) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(GroupCommand) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(GroupCommand, ReadPreference) - Method in class com.mongodb.DBCollection
-
Group documents in a collection by the specified key and performs simple aggregation functions such as computing counts and sums.
- group(DBObject) - Method in class com.mongodb.DBCollection
-
- GroupCommand - Class in com.mongodb
-
This class groups the argument for a group operation and can build the underlying command object
- GroupCommand(DBCollection, DBObject, DBObject, DBObject, String, String) - Constructor for class com.mongodb.GroupCommand
-
Creates a new group command.
- GroupCommand(DBCollection, String, DBObject, DBObject, String, String) - Constructor for class com.mongodb.GroupCommand
-
Creates a new group command.
- gs2Header - Static variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- GSSAPI_MECHANISM - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- GSSAPI_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The GSSAPI mechanism.
- GSSAPI_OID - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- GSSAPIAuthenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- GT - Static variable in class com.mongodb.QueryOperators
-
- GTE - Static variable in class com.mongodb.QueryOperators
-
- GuardedBy - Annotation Type in org.bson.util.annotations
-
- 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.
- maintenanceFrequency(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- maintenanceFrequencyMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- maintenanceFrequencyMS - Variable in class com.mongodb.ConnectionPoolSettings
-
- maintenanceInitialDelay(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- maintenanceInitialDelayMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- maintenanceInitialDelayMS - Variable in class com.mongodb.ConnectionPoolSettings
-
- maintenanceTask - Variable in class com.mongodb.PooledConnectionProvider
-
- MAJOR_VERSION - Static variable in class com.mongodb.Mongo
-
- MAJORITY - Static variable in class com.mongodb.WriteConcern
-
Exceptions are raised for network issues, and server errors; waits on a majority of servers for the write operation.
- Majority() - Constructor for class com.mongodb.WriteConcern.Majority
-
Create a new Majority WriteConcern.
- Majority(int, boolean, boolean) - Constructor for class com.mongodb.WriteConcern.Majority
-
Create a new WriteConcern with the given configuration.
- majorityWriteConcern(int, boolean, boolean) - Static method in class com.mongodb.WriteConcern
-
Create a Majority Write Concern that requires a majority of servers to acknowledge the write.
- map(int) - Method in class com.mongodb.IndexMap.HashBased
-
- map(int) - Method in class com.mongodb.IndexMap
-
Return the index that the specified index is mapped to.
- map(int) - Method in class com.mongodb.IndexMap.RangeBased
-
- map - Variable in class com.mongodb.JMXConnectionPoolListener
-
- map - Variable in class org.bson.util.ClassMap
-
- map - Variable in class org.bson.util.ComputingMap
-
- 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
-
- MapSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.MapSerializer
-
- mark - Variable in class com.mongodb.BSONBinaryWriter
-
- mark() - Method in class com.mongodb.BSONBinaryWriter
-
- Mark() - Constructor for class com.mongodb.BSONBinaryWriter.Mark
-
- Mark() - Constructor for class com.mongodb.BSONWriter.Mark
-
- mark(int) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- mark(int) - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- markAsPartialObject() - Method in class com.mongodb.BasicDBList
-
- markAsPartialObject() - Method in class com.mongodb.BasicDBObject
-
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
- markAsPartialObject() - Method in interface com.mongodb.DBObject
-
If this object was retrieved with only some fields (using a field filter) this method will be called to mark it as such.
- markAsPartialObject() - Method in class com.mongodb.gridfs.GridFSFile
-
- markAsPartialObject() - Method in class com.mongodb.LazyDBObject
-
- markAsPartialObject() - Method in class com.mongodb.RawDBObject
-
Deprecated.
- markAsPartialObject() - Method in class com.mongodb.ReflectionDBObject
-
ReflectionDBObjects can't be partial.
- markAsPartialObject() - Method in class org.bson.LazyDBList
-
Deprecated.
- markedContext - Variable in class com.mongodb.BSONWriter.Mark
-
- markedState - Variable in class com.mongodb.BSONWriter.Mark
-
- markSupported() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- markSupported() - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- massageToObjectId(Object) - Static method in class org.bson.types.ObjectId
-
- matchedCount - Variable in class com.mongodb.AcknowledgedBulkWriteResult
-
- matchedCount - Variable in class com.mongodb.BulkWriteBatchCombiner
-
- max(DBObject) - Method in class com.mongodb.DBCursor
-
Specifies an exclusive upper limit for the index to use in a query.
- MAX - Static variable in class com.mongodb.QueryOperators
-
- MAX_CHUNKSIZE - Static variable in class com.mongodb.gridfs.GridFS
-
- MAX_CODE_POINT - Static variable in class org.bson.io.UTF8Encoding
-
- MAX_DISTANCE - Static variable in class com.mongodb.QueryOperators
-
- MAX_DRIVER_WIRE_VERSION - Static variable in class com.mongodb.ServerDescription
-
- MAX_LENGTH - Static variable in class com.mongodb.Response
-
- MAX_OBJECT_SIZE - Static variable in class com.mongodb.Bytes
-
this size is set low to 4MB, but just serves as safe default
- MAX_SCAN - Static variable in class com.mongodb.QueryOperators
-
- MAX_STRING - Static variable in class org.bson.BasicBSONDecoder
-
- MAX_STRING - Static variable in class org.bson.NewBSONDecoder
-
Deprecated.
- maxAutoConnectRetryTime - Variable in class com.mongodb.MongoClientOptions.Builder
-
- maxAutoConnectRetryTime(long) - Method in class com.mongodb.MongoClientOptions.Builder
-
- maxAutoConnectRetryTime - Variable in class com.mongodb.MongoClientOptions
-
- maxAutoConnectRetryTime - Variable in class com.mongodb.MongoOptions
-
- maxBatchWriteSize - Variable in class com.mongodb.DBCollectionImpl.OrderedRunGenerator
-
- maxBatchWriteSize - Variable in class com.mongodb.DBCollectionImpl.UnorderedRunGenerator
-
- maxConnectionIdleTime(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxConnectionIdleTime - Variable in class com.mongodb.MongoClientOptions.Builder
-
- maxConnectionIdleTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the maximum idle time for a pooled connection.
- maxConnectionIdleTime - Variable in class com.mongodb.MongoClientOptions
-
- maxConnectionIdleTime - Variable in class com.mongodb.MongoOptions
-
Deprecated.
- maxConnectionIdleTimeMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxConnectionIdleTimeMS - Variable in class com.mongodb.ConnectionPoolSettings
-
- maxConnectionLifeTime(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxConnectionLifeTime - Variable in class com.mongodb.MongoClientOptions.Builder
-
- maxConnectionLifeTime(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the maximum life time for a pooled connection.
- maxConnectionLifeTime - Variable in class com.mongodb.MongoClientOptions
-
- maxConnectionLifeTime - Variable in class com.mongodb.MongoOptions
-
Deprecated.
- maxConnectionLifeTimeMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxConnectionLifeTimeMS - Variable in class com.mongodb.ConnectionPoolSettings
-
- maxDocumentSize - Variable in class com.mongodb.BSONBinaryWriterSettings
-
- maxDocumentSize - Variable in class com.mongodb.MessageSettings.Builder
-
- maxDocumentSize(int) - Method in class com.mongodb.MessageSettings.Builder
-
- maxDocumentSize - Variable in class com.mongodb.MessageSettings
-
- maxDocumentSize - Variable in class com.mongodb.ServerDescription.Builder
-
- maxDocumentSize(int) - Method in class com.mongodb.ServerDescription.Builder
-
- maxDocumentSize - Variable in class com.mongodb.ServerDescription
-
- maxDocumentSizeStack - Variable in class com.mongodb.BSONBinaryWriter
-
- maxElectionId - Variable in class com.mongodb.MultiServerCluster
-
- 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
-
- MaxKeySerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.MaxKeySerializer
-
- maxMessageSize - Variable in class com.mongodb.MessageSettings.Builder
-
- maxMessageSize(int) - Method in class com.mongodb.MessageSettings.Builder
-
- maxMessageSize - Variable in class com.mongodb.MessageSettings
-
- maxMessageSize - Variable in class com.mongodb.ServerDescription.Builder
-
- maxMessageSize(int) - Method in class com.mongodb.ServerDescription.Builder
-
- maxMessageSize - Variable in class com.mongodb.ServerDescription
-
- maxScan(int) - Method in class com.mongodb.DBCursor
-
Limits the number of documents a cursor will return for a query.
- maxSerializationDepth - Variable in class com.mongodb.BSONWriterSettings
-
- maxSetVersion - Variable in class com.mongodb.MultiServerCluster
-
- maxSize - Variable in class com.mongodb.ConcurrentPool
-
- maxSize - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxSize(int) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxSize - Variable in class com.mongodb.ConnectionPoolSettings
-
- 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.
- maxTimeMS - Variable in class com.mongodb.AggregationOptions.Builder
-
- maxTimeMS - Variable in class com.mongodb.AggregationOptions
-
- maxTimeMS - Variable in class com.mongodb.QueryOpBuilder
-
- maxWaitQueueSize - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxWaitQueueSize(int) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxWaitQueueSize - Variable in class com.mongodb.ConnectionPoolSettings
-
- maxWaitTime(long, TimeUnit) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxWaitTime - Variable in class com.mongodb.MongoClientOptions.Builder
-
- 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.MongoClientOptions
-
- 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.
- maxWaitTimeMS - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- maxWaitTimeMS - Variable in class com.mongodb.ConnectionPoolSettings
-
- maxWireVersion - Variable in class com.mongodb.ServerDescription.Builder
-
- maxWireVersion(int) - Method in class com.mongodb.ServerDescription.Builder
-
- maxWireVersion - Variable in class com.mongodb.ServerDescription
-
- maxWriteBatchSize - Variable in class com.mongodb.MessageSettings.Builder
-
- maxWriteBatchSize(int) - Method in class com.mongodb.MessageSettings.Builder
-
- maxWriteBatchSize - Variable in class com.mongodb.MessageSettings
-
- maxWriteBatchSize - Variable in class com.mongodb.ServerDescription.Builder
-
- maxWriteBatchSize(int) - Method in class com.mongodb.ServerDescription.Builder
-
- maxWriteBatchSize - Variable in class com.mongodb.ServerDescription
-
- mBeanConnection - Variable in class com.mongodb.tools.ConnectionPoolStat
-
Deprecated.
- MBeanServer - Interface in com.mongodb.util.management
-
- mBeanServer - Static variable in class com.mongodb.util.management.MBeanServerFactory
-
Deprecated.
- MBeanServerFactory - Class in com.mongodb.util.management
-
- MBeanServerFactory() - Constructor for class com.mongodb.util.management.MBeanServerFactory
-
Deprecated.
- md5() - Method in class org.bson.io.OutputBuffer
-
- MECHANISM - Static variable in class com.mongodb.DBPort.PlainAuthenticator
-
Deprecated.
- mechanism - Variable in class com.mongodb.MongoCredential
-
- mechanismProperties - Variable in class com.mongodb.MongoCredential
-
- memSize(StringBuilder) - Method in class com.mongodb.util.StringBuilderPool
-
Deprecated.
- mergeUpserts(List<BulkWriteUpsert>, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
-
- mergeWriteConcernError(WriteConcernError) - Method in class com.mongodb.BulkWriteBatchCombiner
-
- mergeWriteErrors(List<BulkWriteError>, IndexMap) - Method in class com.mongodb.BulkWriteBatchCombiner
-
- message - Variable in class com.mongodb.BulkWriteError
-
- message - Static variable in exception com.mongodb.DBPortPool.SemaphoresOut
-
Deprecated.
- message - Variable in class com.mongodb.WriteConcernError
-
- MessageSettings - Class in com.mongodb
-
- MessageSettings(MessageSettings.Builder) - Constructor for class com.mongodb.MessageSettings
-
- MessageSettings.Builder - Class in com.mongodb
-
- 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
-
- MIN_2_BYTES - Static variable in class org.bson.io.UTF8Encoding
-
- MIN_3_BYTES - Static variable in class org.bson.io.UTF8Encoding
-
- MIN_4_BYTES - Static variable in class org.bson.io.UTF8Encoding
-
- MIN_DRIVER_WIRE_VERSION - Static variable in class com.mongodb.ServerDescription
-
- minConnectionsPerHost - Variable in class com.mongodb.MongoClientOptions.Builder
-
- minConnectionsPerHost(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the minimum number of connections per host.
- minConnectionsPerHost - Variable in class com.mongodb.MongoClientOptions
-
- minConnectionsPerHost - Variable in class com.mongodb.MongoOptions
-
Deprecated.
- minHeartbeatFrequency - Variable in class com.mongodb.MongoClientOptions.Builder
-
- minHeartbeatFrequency(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the minimum heartbeat frequency.
- minHeartbeatFrequency - Variable in class com.mongodb.MongoClientOptions
-
- 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
-
- MinKeySerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.MinKeySerializer
-
- MINOR_VERSION - Static variable in class com.mongodb.Mongo
-
- minSize - Variable in class com.mongodb.ConnectionPoolSettings.Builder
-
- minSize(int) - Method in class com.mongodb.ConnectionPoolSettings.Builder
-
- minSize - Variable in class com.mongodb.ConnectionPoolSettings
-
- minWireVersion - Variable in class com.mongodb.ServerDescription.Builder
-
- minWireVersion(int) - Method in class com.mongodb.ServerDescription.Builder
-
- minWireVersion - Variable in class com.mongodb.ServerDescription
-
- mod(Object) - Method in class com.mongodb.QueryBuilder
-
Equivalent of the $mod operand
- MOD - Static variable in class com.mongodb.QueryOperators
-
- mode - Variable in class com.mongodb.ClusterSettings.Builder
-
- mode(ClusterConnectionMode) - Method in class com.mongodb.ClusterSettings.Builder
-
Sets the mode for this cluster.
- mode - Variable in class com.mongodb.ClusterSettings
-
- modifiedCount - Variable in class com.mongodb.AcknowledgedBulkWriteResult
-
- modifiedCount - Variable in class com.mongodb.BulkWriteBatchCombiner
-
- ModifyRequest - Class in com.mongodb
-
- ModifyRequest(DBObject, boolean, DBObject) - Constructor for class com.mongodb.ModifyRequest
-
- mongo - Variable in class com.mongodb.DBPort.Authenticator
-
Deprecated.
- mongo - Variable in class com.mongodb.DBPortFactory
-
- mongo - Variable in class com.mongodb.DefaultClusterableServerFactory
-
- 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(MongoAuthority, MongoOptions) - Constructor for class com.mongodb.Mongo
-
Creates a Mongo based on an authority and options.
- mongo - Variable in class com.mongodb.ServerMonitor
-
- Mongo.CursorCleanerThread - Class in com.mongodb
-
- Mongo.Holder - Class in com.mongodb
-
Mongo.Holder can be used as a static place to hold several instances of Mongo.
- MongoAuthority - Class in com.mongodb
-
This class represents the authority to which this client is connecting.
- MongoAuthority(ServerAddress, MongoCredentialsStore) - Constructor for class com.mongodb.MongoAuthority
-
Constructs an instance with a single server address and a store of authentication credentials.
- MongoAuthority(List<ServerAddress>, MongoAuthority.Type, MongoCredentialsStore) - Constructor for class com.mongodb.MongoAuthority
-
Constructs an instance with a list of server addresses, which may either be a list of mongos servers
or a list of members of a replica set, and a store of authentication credentials.
- MongoAuthority.Type - Enum in com.mongodb
-
Enumeration of the connection types.
- 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.
- MongoClientException(String) - Constructor for exception com.mongodb.MongoClientException
-
Constructs a new instance with the given message.
- MongoClientOptions - Class in com.mongodb
-
Various settings to control the behavior of a MongoClient.
- MongoClientOptions(MongoClientOptions.Builder) - Constructor for class com.mongodb.MongoClientOptions
-
- MongoClientOptions.Builder - Class in com.mongodb
-
A builder for MongoClientOptions so that MongoClientOptions can be immutable, and to support easier construction through chaining.
- MongoClientURI - Class in com.mongodb
-
Represents a
URI
which can be used to create a MongoClient instance.
- MongoClientURI(String) - Constructor for class com.mongodb.MongoClientURI
-
Creates a MongoURI from the given string.
- MongoClientURI(String, MongoClientOptions.Builder) - Constructor for class com.mongodb.MongoClientURI
-
Creates a MongoURI from the given URI string, and MongoClientOptions.Builder.
- mongoClientURI - Variable in class com.mongodb.MongoURI
-
- MongoCommandException - Exception in com.mongodb
-
An exception indicating that a command sent to a MongoDB server returned a failure.
- MongoCommandException(CommandResult) - Constructor for exception com.mongodb.MongoCommandException
-
- MongoConnectionPoolMXBean - Interface in com.mongodb
-
- MongoCredential - Class in com.mongodb
-
Represents credentials to authenticate to a mongo server, as well as the source of the credentials and
the authentication mechanism to use.
- MongoCredential(String, String, String, char[]) - Constructor for class com.mongodb.MongoCredential
-
Constructs a new instance using the given mechanism, userName, source, and password
- MongoCredential(MongoCredential, String, T) - Constructor for class com.mongodb.MongoCredential
-
Constructs a new instance using the given credential plus an additional mechanism property.
- MongoCredentialsStore - Class in com.mongodb
-
An effectively immutable store of credentials to mongo servers.
- MongoCredentialsStore() - Constructor for class com.mongodb.MongoCredentialsStore
-
Creates an empty store
- MongoCredentialsStore(MongoCredential) - Constructor for class com.mongodb.MongoCredentialsStore
-
Creates a store with a single credentials.
- MongoCredentialsStore(Iterable<MongoCredential>) - Constructor for class com.mongodb.MongoCredentialsStore
-
Creates a store with the list of credentials.
- MongoCursorNotFoundException - Exception in com.mongodb
-
- MongoCursorNotFoundException(long, ServerAddress) - Constructor for exception com.mongodb.MongoCursorNotFoundException
-
Construct a new instance.
- MONGODB_CR_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The MongoDB Challenge Response mechanism.
- MONGODB_PREFIX - Static variable in class com.mongodb.MongoURI
-
The prefix for mongodb URIs.
- MONGODB_X509_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The MongoDB X.509
- MongoException - Exception in com.mongodb
-
Top level Exception for all Exceptions, server-side or client-side, that come from the driver.
- MongoException(String) - Constructor for exception com.mongodb.MongoException
-
- MongoException(int, String) - Constructor for exception com.mongodb.MongoException
-
- MongoException(String, Throwable) - Constructor for exception com.mongodb.MongoException
-
- MongoException(int, String, Throwable) - Constructor for exception com.mongodb.MongoException
-
- MongoException(BSONObject) - Constructor for exception com.mongodb.MongoException
-
- MongoException.CursorNotFound - Exception in com.mongodb
-
- MongoException.DuplicateKey - Exception in com.mongodb
-
- MongoException.Network - Exception in com.mongodb
-
- MongoExecutionTimeoutException - Exception in com.mongodb
-
Exception indicating that the execution of the current operation timed outas a result of the maximum operation time being exceeded.
- MongoExecutionTimeoutException(int, String) - Constructor for exception com.mongodb.MongoExecutionTimeoutException
-
- 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.
- MongoIncompatibleDriverException(String) - Constructor for exception com.mongodb.MongoIncompatibleDriverException
-
- MongoInternalException - Exception in com.mongodb
-
A Mongo exception internal to the driver, not carrying any error code.
- MongoInternalException(String) - Constructor for exception com.mongodb.MongoInternalException
-
- MongoInternalException(String, Throwable) - Constructor for exception com.mongodb.MongoInternalException
-
- MongoInterruptedException - Exception in com.mongodb
-
A non-checked exception indicating that the driver has been interrupted by a call to Thread.interrupt.
- MongoInterruptedException(InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
-
Deprecated.
- MongoInterruptedException(String, InterruptedException) - Constructor for exception com.mongodb.MongoInterruptedException
-
Deprecated.
- MongoNamespace - Class in com.mongodb
-
- MongoNamespace(String, String) - Constructor for class com.mongodb.MongoNamespace
-
- MongoOptions - Class in com.mongodb
-
- MongoOptions() - Constructor for class com.mongodb.MongoOptions
-
Deprecated.
- MongoOptions(MongoClientOptions) - Constructor for class com.mongodb.MongoOptions
-
- mongoOptions - Variable in class com.mongodb.MongoURI
-
- MongoServerSelectionException - Exception in com.mongodb
-
- MongoServerSelectionException(String) - Constructor for exception com.mongodb.MongoServerSelectionException
-
Deprecated.
- mongosHAServerSelector - Variable in class com.mongodb.DBTCPConnector
-
Deprecated.
- MongosHAServerSelector - Class in com.mongodb
-
- MongosHAServerSelector() - Constructor for class com.mongodb.MongosHAServerSelector
-
- MongoSocketException - Exception in com.mongodb
-
- MongoSocketException(String, IOException) - Constructor for exception com.mongodb.MongoSocketException
-
- MongoSocketException(IOException) - Constructor for exception com.mongodb.MongoSocketException
-
- MongoTimeoutException - Exception in com.mongodb
-
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
- MongoTimeoutException(String) - Constructor for exception com.mongodb.MongoTimeoutException
-
Constructs a new instance with the given message.
- MongoURI - Class in com.mongodb
-
This class has been replaced by
MongoClientURI, and the documentation has been moved to that class.
- MongoURI(String) - Constructor for class com.mongodb.MongoURI
-
- MongoURI(MongoClientURI) - Constructor for class com.mongodb.MongoURI
-
- MongoWaitQueueFullException - Exception in com.mongodb
-
An exception indicating that the queue for waiting for a pooled connection is full.
- MongoWaitQueueFullException(String) - Constructor for exception com.mongodb.MongoWaitQueueFullException
-
Constructs a new instance with the given message.
- monitorThread - Variable in class com.mongodb.ServerMonitor
-
- 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.
- multi(boolean) - Method in class com.mongodb.Remove
-
- multi - Variable in class com.mongodb.RemoveRequest
-
- multi(boolean) - Method in class com.mongodb.Update
-
- multi - Variable in class com.mongodb.UpdateRequest
-
- MultiServerCluster - Class in com.mongodb
-
This class needs to be final because we are leaking a reference to "this" from the constructor
- MultiServerCluster(String, ClusterSettings, ClusterableServerFactory, ClusterListener) - Constructor for class com.mongodb.MultiServerCluster
-
- MultiServerCluster.DefaultServerStateListener - Class in com.mongodb
-
- MultiServerCluster.ServerTuple - Class in com.mongodb
-
- Mutable() - Constructor for class org.bson.util.AbstractCopyOnWriteMap.Mutable
-
- MyInputStream() - Constructor for class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- MyInputStream(InputStream, int) - Constructor for class com.mongodb.Response.MyInputStream
-
- MyOutputStream() - Constructor for class com.mongodb.gridfs.GridFSInputFile.MyOutputStream
-
- MyPort() - Constructor for class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- MyRef(T) - Constructor for class com.mongodb.util.WeakBag.MyRef
-
Deprecated.
- MyThread() - Constructor for class com.mongodb.util.ThreadPool.MyThread
-
Deprecated.
- MyThreadGroup() - Constructor for class com.mongodb.util.ThreadPool.MyThreadGroup
-
Deprecated.
- raiseNetworkErrors() - Method in class com.mongodb.WriteConcern
-
- random - Variable in class com.mongodb.BaseCluster
-
- randomLength - Static variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- RangeBased() - Constructor for class com.mongodb.IndexMap.RangeBased
-
- RangeBased(int, int) - Constructor for class com.mongodb.IndexMap.RangeBased
-
- RawDBObject - Class in com.mongodb
-
- RawDBObject(ByteBuffer) - Constructor for class com.mongodb.RawDBObject
-
Deprecated.
- RawDBObject(ByteBuffer, int) - Constructor for class com.mongodb.RawDBObject
-
Deprecated.
- RawDBObject.Element - Class in com.mongodb
-
Deprecated.
- RawDBObject.ElementIter - Class in com.mongodb
-
Deprecated.
- read() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- read(byte[]) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- read(byte[], int, int) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- read() - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- read(byte[]) - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- read(byte[], int, int) - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- read() - Method in class com.mongodb.Response.MyInputStream
-
- read(byte[], int, int) - Method in class com.mongodb.Response.MyInputStream
-
- read(char) - Method in class com.mongodb.util.JSONParser
-
Read the current character, making sure that it is the expected character.
- read() - Method in class com.mongodb.util.JSONParser
-
- read() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- READ_PREFERENCE_META_OPERATOR - Static variable in class com.mongodb.QueryOpBuilder
-
- readBinary(int) - Method in class org.bson.LazyBSONObject
-
- readCStr() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readCstr() - Method in class org.bson.NewBSONDecoder
-
Deprecated.
- readDouble() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readFully(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
Reads bytes from the input stream and puts them into the given byte buffer.
- readFully(InputStream, byte[], int) - Static method in class org.bson.io.Bits
-
Reads bytes from the input stream and puts them into the given byte buffer.
- readFully(InputStream, byte[], int, int) - Static method in class org.bson.io.Bits
-
Reads bytes from the input stream and puts them into the given byte buffer.
- readHex() - Method in class com.mongodb.util.JSONParser
-
Read the current character, making sure that it is a hexidecimal character.
- readInt() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readInt(InputStream) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the input stream.
- readInt(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the input stream.
- readInt(byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the buffer.
- readInt(byte[], int) - Static method in class org.bson.io.Bits
-
Reads and returns a single integer value from the buffer.
- readIntBE() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readIntBE(byte[], int) - Static method in class org.bson.io.Bits
-
Reads and returns a single big-endian integer value
- readLong() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- readLong(InputStream) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the input stream.
- readLong(InputStream, byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the input stream.
- readLong(byte[]) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the buffer.
- readLong(byte[], int) - Static method in class org.bson.io.Bits
-
Reads and returns a single long value from the buffer.
- readObject(byte[]) - Method in class org.bson.BasicBSONDecoder
-
- readObject(InputStream) - Method in class org.bson.BasicBSONDecoder
-
- readObject(byte[]) - Method in interface org.bson.BSONDecoder
-
Read a single BSON object from the given bytes.
- readObject(InputStream) - Method in interface org.bson.BSONDecoder
-
Read a single BSON object from the given input stream.
- readObject(byte[]) - Method in class org.bson.LazyBSONDecoder
-
- readObject(InputStream) - Method in class org.bson.LazyBSONDecoder
-
- readObject(byte[]) - Method in class org.bson.NewBSONDecoder
-
Deprecated.
- readObject(InputStream) - Method in class org.bson.NewBSONDecoder
-
Deprecated.
- ReadOnlySet() - Constructor for class org.bson.LazyBSONObject.ReadOnlySet
-
- readPref - Variable in class com.mongodb.QueryOpBuilder
-
- readPreference - Variable in class com.mongodb.MongoClientOptions.Builder
-
- readPreference(ReadPreference) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the read preference.
- readPreference - Variable in class com.mongodb.MongoClientOptions
-
- readPreference - Variable in class com.mongodb.MongoOptions
-
Deprecated.
Specifies the read preference.
- readPreference - Variable in class com.mongodb.ParallelScanOptions.Builder
-
- readPreference(ReadPreference) - Method in class com.mongodb.ParallelScanOptions.Builder
-
The read preference to use.
- readPreference - Variable in class com.mongodb.ParallelScanOptions
-
- ReadPreference - Class in com.mongodb
-
An abstract class that represents preferred replica set members to which a query or command can be sent.
- ReadPreference() - Constructor for class com.mongodb.ReadPreference
-
- readPreference - Variable in class com.mongodb.ReadPreferenceServerSelector
-
- ReadPreference.PrimaryReadPreference - Class in com.mongodb
-
Preference to read from primary only.
- ReadPreference.TaggedReadPreference - Class in com.mongodb
-
- readPreferenceKeys - Static variable in class com.mongodb.MongoClientURI
-
- ReadPreferenceServerSelector - Class in com.mongodb
-
- ReadPreferenceServerSelector(ReadPreference) - Constructor for class com.mongodb.ReadPreferenceServerSelector
-
- readTimeout(int, TimeUnit) - Method in class com.mongodb.SocketSettings.Builder
-
- readTimeoutMS - Variable in class com.mongodb.SocketSettings.Builder
-
- readTimeoutMS - Variable in class com.mongodb.SocketSettings
-
- readUtf8Str() - Method in class org.bson.NewBSONDecoder
-
Deprecated.
- readUTF8String() - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- receiveWriteCommandMessage(DBPort) - Method in class com.mongodb.DBCollectionImpl
-
- reduce - Variable in class com.mongodb.GroupCommand
-
- 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.FieldInfo - Class in com.mongodb
-
- ReflectionDBObject.JavaWrapper - Class in com.mongodb
-
Represents a wrapper around the DBObject to interface with the Class fields
- regex(Pattern) - Method in class com.mongodb.QueryBuilder
-
Passes a regular expression for a query
- REGEX - Static variable in class org.bson.BSON
-
- regexFlag(char) - Static method in class org.bson.BSON
-
Converts a regular expression modifier from the database into Java regular expression flags.
- RegexFlag(int, char, String) - Constructor for enum org.bson.BSON.RegexFlag
-
- regexFlags(String) - Static method in class org.bson.BSON
-
Converts a sequence of regular expression modifiers from the database into Java regular expression flags.
- regexFlags(int) - Static method in class org.bson.BSON
-
Converts Java regular expression flags into regular expression modifiers from the database.
- registerMBean(Object, String) - Method in class com.mongodb.util.management.jmx.JMXMBeanServer
-
Deprecated.
- registerMBean(Object, String) - Method in interface com.mongodb.util.management.MBeanServer
-
Deprecated.
- registerMBean(Object, String) - Method in class com.mongodb.util.management.NullMBeanServer
-
Deprecated.
- release(T) - Method in class com.mongodb.ConcurrentPool
-
Return an instance of T to the pool.
- release(T, boolean) - Method in class com.mongodb.ConcurrentPool
-
call done when you are done with an object from the pool if there is room and the object is ok will get added
- release(Connection) - Method in class com.mongodb.PooledConnectionProvider
-
- releasePermit() - Method in class com.mongodb.ConcurrentPool
-
- releasePort(DBPort) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- remaining() - Method in class com.mongodb.io.ByteBufferHolder
-
Deprecated.
- 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() - Method in class com.mongodb.ConcurrentLinkedDeque.CLDIterator
-
- remove() - Method in class com.mongodb.ConcurrentLinkedDeque
-
- remove(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
-
Removes the first element e such that
o.equals(e), if such an element exists in this deque.
- 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(DBObject, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
-
- remove(DBObject, boolean, WriteConcern, DBEncoder) - Method in class com.mongodb.DBCollectionImpl
-
- remove() - Method in class com.mongodb.DBCursor
-
Not implemented.
- remove() - Method in interface com.mongodb.Deque
-
Retrieves and removes the head of the queue represented by this deque.
- 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() - Method in class com.mongodb.gridfs.GridFSDBFile
-
- remove(DBCollection, DBEncoder, DBObject, boolean) - Static method in class com.mongodb.OutMessage
-
- remove() - Method in class com.mongodb.QueryResultIterator
-
- Remove - Class in com.mongodb
-
- Remove(DBObject) - Constructor for class com.mongodb.Remove
-
- 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() - Method in class org.bson.LazyBSONObject.LazyBSONEntryIterator
-
- remove() - Method in class org.bson.LazyBSONObject.LazyBSONKeyIterator
-
- remove(Object) - Method in class org.bson.LazyBSONObject.LazyBSONKeySet
-
Deprecated.
- remove(Object) - Method in class org.bson.LazyBSONObject.ReadOnlySet
-
- remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
-
- remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
-
- remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- remove(Object, Object) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- remove() - Method in class org.bson.util.AbstractCopyOnWriteMap.UnmodifiableIterator
-
- remove(Object) - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
-
- remove(Object) - Method in class org.bson.util.ClassMap
-
As per java.util.Map, removes the mapping for a key from this map if it is present
- remove(Object, Object) - Method in class org.bson.util.ComputingMap
-
- remove(Object) - Method in class org.bson.util.ComputingMap
-
- remove(Object) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- removeall(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- removeAll(Iterable<T>) - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- removeAll(Collection) - Method in class org.bson.LazyBSONList
-
- removeAll(Collection<?>) - Method in class org.bson.LazyBSONObject.ReadOnlySet
-
- removeAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
-
- removeAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
-
- removeAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
-
- removeAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- removedCount - Variable in class com.mongodb.AcknowledgedBulkWriteResult
-
- removedCount - Variable in class com.mongodb.BulkWriteBatchCombiner
-
- 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.
- removeExtraHosts(ServerDescription) - Method in class com.mongodb.MultiServerCluster
-
- removeField(String) - Method in class com.mongodb.gridfs.GridFSFile
-
- removeField(String) - Method in class com.mongodb.LazyWriteableDBObject
-
Deprecated.
- removeField(String) - Method in class com.mongodb.RawDBObject
-
Deprecated.
Always throws UnsupportedOperationException.
- removeField(String) - Method in class com.mongodb.ReflectionDBObject
-
This operation is not supported.
- removeField(String) - Method in class org.bson.BasicBSONObject
-
Deletes a field from this object.
- removeField(String) - Method in interface org.bson.BSONObject
-
Removes a field with a given name from this object.
- removeField(String) - Method in class org.bson.LazyBSONObject
-
Always throws UnsupportedOperationException.
- removeField(String) - Method in class org.bson.types.BasicBSONList
-
- removeFirst() - Method in class com.mongodb.ConcurrentLinkedDeque
-
- removeFirst() - Method in interface com.mongodb.Deque
-
Removes and returns the first element of this deque.
- removeFirstOccurrence(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
-
Removes the first element e such that
o.equals(e), if such an element exists in this deque.
- removeFirstOccurrence(Object) - Method in interface com.mongodb.Deque
-
Removes the first occurrence of the specified element in this
deque.
- removeLast() - Method in class com.mongodb.ConcurrentLinkedDeque
-
- removeLast() - Method in interface com.mongodb.Deque
-
Retrieves and removes the last element of this deque.
- removeLastOccurrence(Object) - Method in class com.mongodb.ConcurrentLinkedDeque
-
Removes the last element e such that
o.equals(e), if such an element exists in this deque.
- removeLastOccurrence(Object) - Method in interface com.mongodb.Deque
-
Removes the last occurrence of the specified element in this
deque.
- 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.
- RemoveRequest - Class in com.mongodb
-
- RemoveRequest(DBObject, boolean) - Constructor for class com.mongodb.RemoveRequest
-
- removeServer(ServerAddress) - Method in class com.mongodb.MultiServerCluster
-
- removeUser(String) - Method in class com.mongodb.DB
-
- removeUser(String) - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- removeWithCommandProtocol(List<RemoveRequest>, WriteConcern, DBEncoder, DBPort) - Method in class com.mongodb.DBCollectionImpl
-
- rename(String) - Method in class com.mongodb.DBCollection
-
- rename(String, boolean) - Method in class com.mongodb.DBCollection
-
Renames of this collection to newName
- replace(E) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
-
Tries to insert a node holding element to replace this node.
- replace(K, V, V) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- replace(K, V) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- replace(K, V, V) - Method in class org.bson.util.ComputingMap
-
- replace(K, V) - Method in class org.bson.util.ComputingMap
-
- 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.
- ReplaceRequest - Class in com.mongodb
-
- ReplaceRequest(DBObject, boolean, DBObject) - Constructor for class com.mongodb.ReplaceRequest
-
- replaceWithObjectClass(DBObject) - Method in class com.mongodb.DBCollection
-
Doesn't yet handle internal classes properly, so this method only does something if object class is set but
no internal classes are set.
- 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.
- replicaSetName - Variable in class com.mongodb.MultiServerCluster
-
- ReplicaSetStatus - Class in com.mongodb
-
Keeps replica set status.
- ReplicaSetStatus(ClusterDescription) - Constructor for class com.mongodb.ReplicaSetStatus
-
- REQUEST_ID - Static variable in class com.mongodb.OutMessage
-
- REQUEST_ID - Static variable in class com.mongodb.RequestMessage
-
- requestDone() - Method in class com.mongodb.DB
-
- requestDone() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- requestDone() - Method in interface com.mongodb.DBConnector
-
Deprecated.
terminates the "consistent request".
- requestDone() - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- requestDone() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
End the current "request", if this thread is in one.
- requestEnsureConnection() - Method in class com.mongodb.DB
-
- requestEnsureConnection() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- requestEnsureConnection() - Method in interface com.mongodb.DBConnector
-
Deprecated.
Ensures that a connection exists for the "consistent request"
- requestEnsureConnection() - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- requestEnsureConnection() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- RequestMessage - Class in com.mongodb
-
- RequestMessage(String, RequestMessage.OpCode, MessageSettings) - Constructor for class com.mongodb.RequestMessage
-
- RequestMessage.OpCode - Enum in com.mongodb
-
- requestPort - Variable in class com.mongodb.DBTCPConnector.PinnedRequestStatus
-
Deprecated.
- requests - Variable in class com.mongodb.BulkWriteOperation
-
- requestStart() - Method in class com.mongodb.DB
-
- requestStart() - Method in class com.mongodb.DBApiLayer
-
Deprecated.
- requestStart() - Method in interface com.mongodb.DBConnector
-
Deprecated.
initiates a "consistent request" on the thread.
- requestStart() - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- requestStart() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
Start a "request".
- requiredClusterType - Variable in class com.mongodb.ClusterSettings.Builder
-
- requiredClusterType(ClusterType) - Method in class com.mongodb.ClusterSettings.Builder
-
Sets the required cluster type for the cluster.
- requiredClusterType - Variable in class com.mongodb.ClusterSettings
-
- requiredReplicaSetName - Variable in class com.mongodb.ClusterSettings.Builder
-
- requiredReplicaSetName(String) - Method in class com.mongodb.ClusterSettings.Builder
-
Sets the required replica set name for the cluster.
- requiredReplicaSetName - Variable in class com.mongodb.ClusterSettings
-
- requiredReplicaSetName - Variable in class com.mongodb.MongoClientOptions.Builder
-
- requiredReplicaSetName(String) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the required replica set name for the cluster.
- requiredReplicaSetName - Variable in class com.mongodb.MongoClientOptions
-
- requiredReplicaSetName - Variable in class com.mongodb.MongoOptions
-
Deprecated.
- reset() - Method in class com.mongodb.BSONBinaryWriter.Mark
-
- reset() - Method in class com.mongodb.BSONBinaryWriter
-
- reset() - Method in class com.mongodb.BSONWriter.Mark
-
- reset() - Method in class com.mongodb.Bytes.OptionHolder
-
- reset() - Method in class com.mongodb.DBPort
-
Deprecated.
- reset() - Method in class com.mongodb.DefaultDBCallback
-
- reset() - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
- reset() - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- reset() - Method in class com.mongodb.MongoOptions
-
Deprecated.
- reset() - Method in class org.bson.BasicBSONCallback
-
- reset() - Method in interface org.bson.BSONCallback
-
Resets the callback, clearing all state.
- reset() - Method in class org.bson.EmptyBSONCallback
-
- reset() - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- reset() - Method in class org.bson.io.PoolOutputBuffer.Position
-
Deprecated.
- reset(PoolOutputBuffer.Position) - Method in class org.bson.io.PoolOutputBuffer.Position
-
Deprecated.
- reset(int) - Method in class org.bson.io.PoolOutputBuffer.Position
-
Deprecated.
- reset() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- reset() - Method in class org.bson.LazyBSONCallback
-
- resetError() - Method in class com.mongodb.DB
-
- resetIndexCache() - Method in class com.mongodb.DBCollection
-
- resetOptions() - Method in class com.mongodb.DB
-
Resets the query options.
- resetOptions() - Method in class com.mongodb.DBCollection
-
Resets the default query options
- resetOptions() - Method in class com.mongodb.DBCursor
-
Resets the query options.
- resetOptions() - Method in class com.mongodb.Mongo
-
Reset the default query options
- Response - Class in com.mongodb
-
- Response(ServerAddress, DBCollection, InputStream, DBDecoder) - Constructor for class com.mongodb.Response
-
- Response.MyInputStream - Class in com.mongodb
-
- result - Variable in class com.mongodb.DB.CommandResultPair
-
- 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.LazyBSONObject.ReadOnlySet
-
- retainAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.EntrySet
-
- retainAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.KeySet
-
- retainAll(Collection<?>) - Method in class org.bson.util.AbstractCopyOnWriteMap.Values
-
- retainAll(Collection<?>) - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- RETURN_KEY - Static variable in class com.mongodb.QueryOperators
-
- returnKey() - Method in class com.mongodb.DBCursor
-
Forces the cursor to only return fields included in the index.
- rPrefix - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- Run(WriteRequest.Type, Boolean, WriteConcern, DBEncoder) - Constructor for class com.mongodb.DBCollectionImpl.Run
-
- run() - Method in class com.mongodb.Mongo.CursorCleanerThread
-
- run() - Method in class com.mongodb.ServerMonitor.ServerMonitorRunnable
-
- run() - Method in class com.mongodb.util.ThreadPool.MyThread
-
Deprecated.
- runCommand(DB, DBObject) - Method in class com.mongodb.DBPort
-
Deprecated.
- runCommand(DB, DBObject, int) - Method in class com.mongodb.DBPort
-
Deprecated.
- runCommand(DB, DBObject, ReadPreference, int) - Method in class com.mongodb.DBPort
-
Deprecated.
- RunExecutor(DBPort) - Constructor for class com.mongodb.DBCollectionImpl.Run.RunExecutor
-
- s - Variable in exception com.mongodb.util.JSONParseException
-
- s - Variable in class com.mongodb.util.JSONParser
-
- 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.
- SaslAuthenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.SaslAuthenticator
-
Deprecated.
- save(DBObject) - Method in class com.mongodb.DBCollection
-
Update an existing document or insert a document depending on the parameter.
- save(DBObject, WriteConcern) - Method in class com.mongodb.DBCollection
-
Update an existing document or insert a document depending on the parameter.
- save() - Method in class com.mongodb.gridfs.GridFSFile
-
Saves the file entry to the files collection
- save() - Method in class com.mongodb.gridfs.GridFSInputFile
-
- save(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
This method first calls saveChunks(long) if the file data has not been saved yet.
- saveChunks() - Method in class com.mongodb.gridfs.GridFSInputFile
-
Saves all data into chunks from configured InputStream input stream to GridFS.
- saveChunks(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Saves all data into chunks from configured InputStream input stream to GridFS.
- say(DB, OutMessage, WriteConcern) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a write operation
- say(DB, OutMessage, WriteConcern, ServerAddress) - Method in interface com.mongodb.DBConnector
-
Deprecated.
does a write operation
- say(OutMessage) - Method in class com.mongodb.DBPort
-
Deprecated.
- say(DB, OutMessage, WriteConcern) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- say(DB, OutMessage, WriteConcern, ServerAddress) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- say(DB, OutMessage, WriteConcern, DBPort) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- SCRAM_SHA_1_MECHANISM - Static variable in class com.mongodb.MongoCredential
-
The SCRAM-SHA-1 mechanism.
- ScramSha1Authenticator(Mongo, MongoCredential) - Constructor for class com.mongodb.DBPort.ScramSha1Authenticator
-
Deprecated.
- ScramSha1SaslClient(MongoCredential) - Constructor for class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- screenNullResult(E) - Method in class com.mongodb.ConcurrentLinkedDeque
-
Returns element unless it is null, in which case throws
NoSuchElementException.
- SEARCH - Static variable in class com.mongodb.QueryOperators
-
- SECONDARY - Static variable in class com.mongodb.ReadPreference
-
- secondary() - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary.
- secondary(TagSet) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with the given set of tags.
- secondary(List<TagSet>) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
- secondary(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- secondaryPreferred() - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary if one is available, otherwise to the primary.
- secondaryPreferred(TagSet) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with the given set of tags, or the primary is none are available.
- secondaryPreferred(List<TagSet>) - Static method in class com.mongodb.ReadPreference
-
Gets a read preference that forces reads to a secondary with one of the given sets of tags.
- secondaryPreferred(DBObject, DBObject...) - Static method in class com.mongodb.ReadPreference
-
- SecondaryPreferredReadPreference() - Constructor for class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
-
- SecondaryPreferredReadPreference(List<TagSet>) - Constructor for class com.mongodb.TaggableReadPreference.SecondaryPreferredReadPreference
-
- SecondaryReadPreference() - Constructor for class com.mongodb.TaggableReadPreference.SecondaryReadPreference
-
- SecondaryReadPreference(List<TagSet>) - Constructor for class com.mongodb.TaggableReadPreference.SecondaryReadPreference
-
- 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
-
- SemaphoresOut() - Constructor for exception com.mongodb.DBPortPool.SemaphoresOut
-
Deprecated.
- SemaphoresOut(int) - Constructor for exception com.mongodb.DBPortPool.SemaphoresOut
-
Deprecated.
- sendSaslContinue(int, byte[]) - Method in class com.mongodb.DBPort.SaslAuthenticator
-
Deprecated.
- sendSaslStart(byte[]) - Method in class com.mongodb.DBPort.SaslAuthenticator
-
Deprecated.
- sendStateChangedEvent(ServerDescription, ServerDescription) - Method in class com.mongodb.ServerMonitor.ServerMonitorRunnable
-
- sendWriteCommandMessage(BaseWriteCommandMessage, int, DBPort) - Method in class com.mongodb.DBCollectionImpl
-
- serializationDepth - Variable in class com.mongodb.BSONWriter.Mark
-
- serializationDepth - Variable in class com.mongodb.BSONWriter
-
- serialize(Object) - Method in class com.mongodb.util.AbstractObjectSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.ClassMapBasedObjectSerializer
-
- 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 class com.mongodb.util.JSONSerializers.BinarySerializer
-
- serialize(byte[], byte, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.BinarySerializerBase
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.BSONTimestampSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ByteArraySerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.CodeSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.CodeWScopeSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.DateSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.DBObjectSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.DBRefBaseSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.IterableSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.LegacyBinarySerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.LegacyBSONTimestampSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.LegacyDateSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.MapSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.MaxKeySerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.MinKeySerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ObjectArraySerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ObjectIdSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.PatternSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.StringSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.SymbolSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.ToStringSerializer
-
- serialize(Object, StringBuilder) - Method in class com.mongodb.util.JSONSerializers.UUIDSerializer
-
- 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.
- serializer - Variable in class com.mongodb.util.JSONSerializers.CompoundObjectSerializer
-
- serialVersionUID - Static variable in class com.mongodb.BasicDBList
-
- serialVersionUID - Static variable in class com.mongodb.BasicDBObject
-
- serialVersionUID - Static variable in exception com.mongodb.BulkWriteException
-
- serialVersionUID - Static variable in exception com.mongodb.CommandFailureException
-
Deprecated.
- serialVersionUID - Static variable in class com.mongodb.CommandResult
-
- serialVersionUID - Static variable in class com.mongodb.ConcurrentLinkedDeque.Node
-
- serialVersionUID - Static variable in class com.mongodb.ConcurrentLinkedDeque
-
- serialVersionUID - Static variable in class com.mongodb.DBPointer
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.DBPortPool.ConnectionWaitTimeOut
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.DBPortPool.NoMoreConnection
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.DBPortPool.SemaphoresOut
-
Deprecated.
- serialVersionUID - Static variable in class com.mongodb.DBRef
-
- serialVersionUID - Static variable in class com.mongodb.DBRefBase
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.DuplicateKeyException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoClientException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoCommandException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoCursorNotFoundException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoException.CursorNotFound
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.MongoException.DuplicateKey
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.MongoException.Network
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.MongoException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoExecutionTimeoutException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoIncompatibleDriverException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoInternalException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoInterruptedException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoServerSelectionException
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.MongoSocketException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoTimeoutException
-
- serialVersionUID - Static variable in exception com.mongodb.MongoWaitQueueFullException
-
- serialVersionUID - Static variable in exception com.mongodb.UnacknowledgedWriteException
-
Deprecated.
- serialVersionUID - Static variable in exception com.mongodb.util.JSONParseException
-
- serialVersionUID - Static variable in exception com.mongodb.util.management.JMException
-
Deprecated.
- serialVersionUID - Static variable in class com.mongodb.util.OptionMap
-
Deprecated.
- serialVersionUID - Static variable in class com.mongodb.util.UniqueList
-
Deprecated.
- serialVersionUID - Static variable in class com.mongodb.WriteConcern.Majority
-
- serialVersionUID - Static variable in class com.mongodb.WriteConcern
-
- serialVersionUID - Static variable in exception com.mongodb.WriteConcernException
-
- serialVersionUID - Static variable in class org.bson.BasicBSONObject
-
- serialVersionUID - Static variable in exception org.bson.BSONException
-
- serialVersionUID - Static variable in class org.bson.LazyDBList
-
Deprecated.
- serialVersionUID - Static variable in class org.bson.types.BasicBSONList
-
- serialVersionUID - Static variable in class org.bson.types.Binary
-
- serialVersionUID - Static variable in class org.bson.types.BSONTimestamp
-
- serialVersionUID - Static variable in class org.bson.types.Code
-
- serialVersionUID - Static variable in class org.bson.types.CodeWScope
-
- serialVersionUID - Static variable in class org.bson.types.MaxKey
-
- serialVersionUID - Static variable in class org.bson.types.MinKey
-
- serialVersionUID - Static variable in class org.bson.types.ObjectId
-
- serialVersionUID - Static variable in class org.bson.types.Symbol
-
- serialVersionUID - Static variable in class org.bson.util.AbstractCopyOnWriteMap.Immutable
-
- serialVersionUID - Static variable in class org.bson.util.AbstractCopyOnWriteMap.Mutable
-
- serialVersionUID - Static variable in class org.bson.util.AbstractCopyOnWriteMap
-
- serialVersionUID - Static variable in exception org.bson.util.Assertions.NullArgumentException
-
Deprecated.
- serialVersionUID - Static variable in class org.bson.util.CopyOnWriteMap.Hash
-
- serialVersionUID - Static variable in class org.bson.util.CopyOnWriteMap.Linked
-
- serialVersionUID - Static variable in class org.bson.util.CopyOnWriteMap
-
- server - Variable in class com.mongodb.MultiServerCluster.ServerTuple
-
- Server - Interface in com.mongodb
-
A logical connection to a MongoDB server.
- server - Variable in class com.mongodb.SingleServerCluster
-
- server - Variable in class com.mongodb.util.management.jmx.JMXMBeanServer
-
Deprecated.
- serverAddress - Variable in class com.mongodb.BulkWriteBatchCombiner
-
- serverAddress - Variable in exception com.mongodb.BulkWriteException
-
- serverAddress - Variable in class com.mongodb.ConnectionEvent
-
- serverAddress - Variable in class com.mongodb.ConnectionPoolEvent
-
- serverAddress - Variable in class com.mongodb.ConnectionPoolStatistics
-
- serverAddress() - Method in class com.mongodb.DBPort
-
Deprecated.
- serverAddress - Variable in class com.mongodb.DefaultServer
-
- serverAddress - Variable in class com.mongodb.JMXConnectionPoolListener.ClusterIdServerAddressPair
-
- serverAddress - Variable in exception com.mongodb.MongoCursorNotFoundException
-
- serverAddress - Variable in class com.mongodb.PooledConnectionProvider
-
- ServerAddress - Class in com.mongodb
-
Represents the location of a Mongo server - i.e.
- ServerAddress() - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress with default host and port
- ServerAddress(String) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress with default port
- ServerAddress(String, int) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress
- ServerAddress(InetAddress) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress with default port
- ServerAddress(InetAddress, int) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress
- ServerAddress(InetSocketAddress) - Constructor for class com.mongodb.ServerAddress
-
Creates a ServerAddress
- serverAddress - Variable in class com.mongodb.ServerMonitor
-
- serverAddresses - Variable in class com.mongodb.MongoAuthority
-
- ServerAddressSelector - Class in com.mongodb
-
- ServerAddressSelector(ServerAddress) - Constructor for class com.mongodb.ServerAddressSelector
-
- ServerConnectionState - Enum in com.mongodb
-
- ServerConnectionState() - Constructor for enum com.mongodb.ServerConnectionState
-
- ServerDescription - Class in com.mongodb
-
Immutable snapshot state of a server.
- ServerDescription(ServerDescription.Builder) - Constructor for class com.mongodb.ServerDescription
-
- ServerDescription.Builder - Class in com.mongodb
-
- ServerError - Class in com.mongodb
-
- ServerError(DBObject) - Constructor for class com.mongodb.ServerError
-
Deprecated.
- serverFactory - Variable in class com.mongodb.BaseCluster
-
- serverMonitor - Variable in class com.mongodb.DefaultServer
-
- ServerMonitor - Class in com.mongodb
-
- ServerMonitor(ServerAddress, ChangeListener<ServerDescription>, SocketSettings, ServerSettings, String, Mongo, PooledConnectionProvider) - Constructor for class com.mongodb.ServerMonitor
-
- ServerMonitor.ServerMonitorRunnable - Class in com.mongodb
-
- ServerMonitorRunnable() - Constructor for class com.mongodb.ServerMonitor.ServerMonitorRunnable
-
- ServerSelector - Interface in com.mongodb
-
- serverSelectors - Variable in class com.mongodb.CompositeServerSelector
-
- ServerSettings - Class in com.mongodb
-
- ServerSettings(ServerSettings.Builder) - Constructor for class com.mongodb.ServerSettings
-
- ServerSettings.Builder - Class in com.mongodb
-
- serverSignature - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- serverStateListener - Variable in class com.mongodb.DefaultServer
-
- serverStateListener - Variable in class com.mongodb.ServerMonitor
-
- ServerTuple(ClusterableServer, ServerDescription) - Constructor for class com.mongodb.MultiServerCluster.ServerTuple
-
- ServerType - Enum in com.mongodb
-
The type of the server.
- ServerType() - Constructor for enum com.mongodb.ServerType
-
- serverUsed() - Method in class com.mongodb.Response
-
- ServerVersion - Class in com.mongodb
-
Holds an array of three integers representing the server version, e.g.
- ServerVersion() - Constructor for class com.mongodb.ServerVersion
-
Creates a server version which will compare as less than all other valid versions
- ServerVersion(List<Integer>) - Constructor for class com.mongodb.ServerVersion
-
Constructs a new instance with the given version list of integers.
- ServerVersion(int, int) - Constructor for class com.mongodb.ServerVersion
-
Constructs a new instance with the given major and minor versions and a patch version of 0.
- SERVICE_NAME_DEFAULT_VALUE - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- SERVICE_NAME_KEY - Static variable in class com.mongodb.DBPort.GSSAPIAuthenticator
-
Deprecated.
- set(int) - Method in class com.mongodb.Bytes.OptionHolder
-
- set(ReflectionDBObject, String, Object) - Method in class com.mongodb.ReflectionDBObject.JavaWrapper
-
Adds or sets the given field to the given value on the document.
- set(OutputBuffer) - Method in class org.bson.BasicBSONEncoder
-
- set(OutputBuffer) - Method in interface org.bson.BSONEncoder
-
Sets the buffer to wrich the result of encoding will be written.
- set(int, Object) - Method in class org.bson.LazyBSONList
-
- set(M) - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- set_id(Object) - Method in class com.mongodb.ReflectionDBObject
-
Sets the _id
- setActiveState(DBPort.ActiveState) - Method in class com.mongodb.DBPort
-
Deprecated.
- setAlwaysUseMBeans(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setAutoConnectRetry(boolean) - Method in class com.mongodb.MongoOptions
-
- setBatchSize(int) - Method in class com.mongodb.QueryResultIterator
-
- setBypassDocumentValidation(Boolean) - Method in class com.mongodb.BulkWriteOperation
-
Sets whether to bypass document validation.
- setBypassDocumentValidation(Boolean) - Method in class com.mongodb.MapReduceCommand
-
Sets whether to bypass document validation.
- setChunkSize(long) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Set the chunk size.
- setConnectionsPerHost(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
Sets the maximum number of connections allowed per host for this Mongo instance.
- setConnectTimeout(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setContentType(String) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Sets the content type (MIME type) on the GridFS entry.
- setContext(BSONWriter.Context) - Method in class com.mongodb.BSONWriter
-
- setCursorFinalizerEnabled(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setCursorId(long) - Method in class com.mongodb.QueryResultIterator.OptionalFinalizer
-
- setCursorIdOnFinalizer(long) - Method in class com.mongodb.QueryResultIterator
-
- setDBDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCollection
-
Set a customer decoder factory for this collection.
- setDbDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setDBEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.DBCollection
-
Set a customer encoder factory for this collection.
- setDbEncoderFactory(DBEncoderFactory) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setDecoderFactory(DBDecoderFactory) - Method in class com.mongodb.DBCursor
-
Sets the factory that will be used create a DBDecoder that will be used to decode BSON documents into DBObject instances.
- setDescription(String) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setFilename(String) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Sets the file name on the GridFS entry.
- setFinalize(String) - Method in class com.mongodb.MapReduceCommand
-
Sets the Finalize JS Function
- setFsync(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setGridFS(GridFS) - Method in class com.mongodb.gridfs.GridFSFile
-
Sets the GridFS associated with this file.
- setHintFields(List<DBObject>) - Method in class com.mongodb.DBCollection
-
Override MongoDB's default index selection and query optimization process.
- setId(Object) - Method in class com.mongodb.gridfs.GridFSInputFile
-
Sets the ID of this GridFS file.
- setInternalClass(String, Class) - Method in class com.mongodb.DBCollection
-
Sets the internal class for the given path in the document hierarchy
- setJ(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setJsMode(Boolean) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) JavaScript Mode
- setLimit(int) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) limit on input
- setMax(int) - Method in class org.bson.BasicBSONDecoder.BSONInput
-
Deprecated.
- setMaxAutoConnectRetryTime(long) - Method in class com.mongodb.MongoOptions
-
- setMaxTime(long, TimeUnit) - Method in class com.mongodb.MapReduceCommand
-
Sets the max execution time for this command, in the given time unit.
- setMaxWaitTime(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setMetaData(DBObject) - Method in class com.mongodb.gridfs.GridFSFile
-
Gets the file metadata.
- setName - Variable in class com.mongodb.ServerDescription.Builder
-
- setName(String) - Method in class com.mongodb.ServerDescription.Builder
-
- setName - Variable in class com.mongodb.ServerDescription
-
- setNext(ConcurrentLinkedDeque.Node<E>) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
-
Sets next link.
- setObjectClass(Class) - Method in class com.mongodb.DBCollection
-
Sets a default class for objects in this collection; null resets the class to nothing.
- setOptions(int) - Method in class com.mongodb.DB
-
Sets the default query options, overwriting previous value.
- setOptions(int) - Method in class com.mongodb.DBCollection
-
Sets the default query options, overwriting previous value.
- setOptions(int) - Method in class com.mongodb.DBCursor
-
Sets the query option - see Bytes.QUERYOPTION_* for list.
- setOptions(int) - Method in class com.mongodb.Mongo
-
Set the default query options.
- setOutputDB(String) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) database name where the output collection should reside
- setPinnedRequestPortForThread(DBPort) - Method in class com.mongodb.DBTCPConnector.MyPort
-
Deprecated.
- 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
-
- setPrev(ConcurrentLinkedDeque.Node<E>) - Method in class com.mongodb.ConcurrentLinkedDeque.Node
-
Sets prev link.
- setReadOnly(Boolean) - Method in class com.mongodb.DB
-
- setReadPreference(ReadPreference) - Method in class com.mongodb.DB
-
Sets the read preference for this database.
- setReadPreference(ReadPreference) - Method in class com.mongodb.DBCollection
-
- setReadPreference(ReadPreference) - Method in class com.mongodb.DBCursor
-
Sets the read preference for this cursor.
- setReadPreference(ReadPreference) - Method in class com.mongodb.MapReduceCommand
-
Sets the read preference for this command.
- setReadPreference(ReadPreference) - Method in class com.mongodb.Mongo
-
Sets the read preference for this database.
- setReadPreference(ReadPreference) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setRoot(Object) - Method in class org.bson.BasicBSONCallback
-
Sets the root document for this position
- setRootObject(Object) - Method in class org.bson.LazyBSONCallback
-
- setSafe(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setScope(Map<String, Object>) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) JavaScript scope
- setSocketFactory(SocketFactory) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setSocketKeepAlive(boolean) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setSocketTimeout(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setSort(DBObject) - Method in class com.mongodb.MapReduceCommand
-
Sets the (optional) sort specification object
- setState(BSONWriter.State) - Method in class com.mongodb.BSONWriter
-
- setThreadsAllowedToBlockForConnectionMultiplier(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
Sets the multiplier which, when multiplied with the connectionsPerHost setting, gives the maximum number of threads that may be
waiting for a connection to become available from the pool.
- settings - Variable in class com.mongodb.BaseCluster
-
- settings - Variable in class com.mongodb.BSONWriter
-
- settings - Variable in class com.mongodb.ConnectionPoolOpenedEvent
-
- settings - Variable in class com.mongodb.ConnectionPoolStatistics
-
- settings - Variable in class com.mongodb.DefaultClusterableServerFactory
-
- settings - Variable in class com.mongodb.PooledConnectionProvider
-
- settings - Variable in class com.mongodb.RequestMessage
-
- settings - Variable in class com.mongodb.ServerMonitor
-
- setVerbose(Boolean) - Method in class com.mongodb.MapReduceCommand
-
Sets the verbosity of the MapReduce job,
defaults to 'true'
- setVersion - Variable in class com.mongodb.ServerDescription.Builder
-
- setVersion(Integer) - Method in class com.mongodb.ServerDescription.Builder
-
Sets the setVersion reported by this server.
- setVersion - Variable in class com.mongodb.ServerDescription
-
- setW(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setWObject(Object) - Method in class com.mongodb.WriteConcern
-
- setWriteConcern(WriteConcern) - Method in class com.mongodb.DB
-
Sets the write concern for this database.
- setWriteConcern(WriteConcern) - Method in class com.mongodb.DBCollection
-
- setWriteConcern(WriteConcern) - Method in class com.mongodb.Mongo
-
Sets the write concern for this database.
- setWriteConcern(WriteConcern) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- setWtimeout(int) - Method in class com.mongodb.MongoOptions
-
Deprecated.
- shouldEnsureMinSize() - Method in class com.mongodb.PooledConnectionProvider
-
- shouldPrune(T) - Method in interface com.mongodb.ConcurrentPool.ItemFactory
-
- shouldPrune(Connection) - Method in class com.mongodb.PooledConnectionProvider.ConnectionItemFactory
-
- shouldPrune() - Method in class com.mongodb.PooledConnectionProvider
-
- shouldPrune(Connection) - Method in class com.mongodb.PooledConnectionProvider
-
- shouldRetryQuery(ReadPreference, DBCollection, IOException, int) - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- shouldStopSendingMoreBatches() - Method in class com.mongodb.BulkWriteBatchCombiner
-
- 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.
- SimpleHeapByteBufferFactory(int) - Constructor for class com.mongodb.io.ByteBufferFactory.SimpleHeapByteBufferFactory
-
Deprecated.
- SimplePool<T> - Class in com.mongodb.util
-
- SimplePool(String, int) - Constructor for class com.mongodb.util.SimplePool
-
Deprecated.
Initializes a new pool of objects.
- SimplePool<T> - Class in org.bson.util
-
- SimplePool(int) - Constructor for class org.bson.util.SimplePool
-
Deprecated.
- SimplePool() - Constructor for class org.bson.util.SimplePool
-
Deprecated.
- SingleServerCluster - Class in com.mongodb
-
This class needs to be final because we are leaking a reference to "this" from the constructor
- SingleServerCluster(String, ClusterSettings, ClusterableServerFactory, ClusterListener) - Constructor for class com.mongodb.SingleServerCluster
-
- singleton() - Static method in class com.mongodb.Mongo.Holder
-
- SixBitMask - Static variable in class com.mongodb.util.Base64Codec
-
Deprecated.
Mask used to extract 6 bits, used when encoding
- size() - Method in class com.mongodb.ConcurrentLinkedDeque
-
Returns the number of elements in this deque.
- size - Variable in class com.mongodb.ConnectionPoolStatistics
-
- size() - Method in class com.mongodb.DBCollectionImpl.Run
-
- size() - Method in class com.mongodb.DBCursor
-
Counts the number of objects matching the query this does take limit/skip into consideration
- size() - Method in class com.mongodb.OutMessage
-
- 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.RawDBObject.Element
-
Deprecated.
- size() - Method in class com.mongodb.Response
-
- size() - Method in class com.mongodb.util.FastStack
-
Deprecated.
- size() - Method in class com.mongodb.util.IdentitySet
-
Deprecated.
- size() - Method in class com.mongodb.util.WeakBag
-
Deprecated.
Returns the size of the bag.
- size() - Method in class org.bson.io.BasicOutputBuffer
-
- size() - Method in class org.bson.io.BSONByteBuffer
-
Deprecated.
- size() - Method in class org.bson.io.OutputBuffer
-
Gets the output size in bytes.
- size() - Method in class org.bson.io.PoolOutputBuffer
-
Deprecated.
- size() - Method in class org.bson.LazyBSONList
-
- size() - Method in class org.bson.LazyBSONObject.LazyBSONEntrySet
-
- 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.AbstractCopyOnWriteMap.CollectionView
-
- size() - Method in class org.bson.util.AbstractCopyOnWriteMap
-
- size() - Method in class org.bson.util.ClassMap
-
As per java.util.Map, returns the number of key-value mappings in this map.
- size() - Method in class org.bson.util.ComputingMap
-
- size - Variable in class org.bson.util.StringRangeSet
-
Deprecated.
- size() - Method in class org.bson.util.StringRangeSet
-
Deprecated.
- sizeCString(int) - Method in class org.bson.LazyBSONObject
-
- sizeMaintenanceTimer - Variable in class com.mongodb.PooledConnectionProvider
-
- skip(int) - Method in class com.mongodb.DBCursor
-
Discards a given number of elements at the beginning of the cursor.
- skip(long) - Method in class com.mongodb.gridfs.GridFSDBFile.MyInputStream
-
Will smartly skip over chunks without fetching them if possible.
- skip(long) - Method in class com.mongodb.io.ByteBufferInputStream
-
Deprecated.
- skipWS() - Method in class com.mongodb.util.JSONParser
-
Advances the position in the string past any whitespace.
- slaveOk() - Method in class com.mongodb.DB
-
- slaveOk() - Method in class com.mongodb.DBCollection
-
- slaveOk() - Method in class com.mongodb.DBCursor
-
- slaveOk() - Method in class com.mongodb.Mongo
-
- slaveOk - Variable in class com.mongodb.MongoOptions
-
- sleep(long) - Static method in class com.mongodb.util.ThreadUtil
-
Deprecated.
Pauses for a given number of milliseconds
- snapshot() - Method in class com.mongodb.DBCursor
-
Use snapshot mode for the query.
- snapshot - Variable in class com.mongodb.QueryOpBuilder
-
- SNAPSHOT - Static variable in class com.mongodb.QueryOperators
-
- socketFactory - Variable in class com.mongodb.MongoClientOptions.Builder
-
- socketFactory(SocketFactory) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the socket factory.
- socketFactory - Variable in class com.mongodb.MongoClientOptions
-
- socketFactory - Variable in class com.mongodb.MongoOptions
-
Deprecated.
sets the socket factory for creating sockets to mongod
Default is SocketFactory.getDefault()
- socketFactory - Variable in class com.mongodb.SocketSettings.Builder
-
- socketFactory(SocketFactory) - Method in class com.mongodb.SocketSettings.Builder
-
- socketFactory - Variable in class com.mongodb.SocketSettings
-
- socketKeepAlive - Variable in class com.mongodb.MongoClientOptions.Builder
-
- socketKeepAlive(boolean) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets whether socket keep alive is enabled.
- socketKeepAlive - Variable in class com.mongodb.MongoClientOptions
-
- 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.
- socketSettings - Variable in class com.mongodb.ServerMonitor
-
- SocketSettings - Class in com.mongodb
-
- SocketSettings(SocketSettings.Builder) - Constructor for class com.mongodb.SocketSettings
-
- SocketSettings.Builder - Class in com.mongodb
-
- socketTimeout - Variable in class com.mongodb.MongoClientOptions.Builder
-
- socketTimeout(int) - Method in class com.mongodb.MongoClientOptions.Builder
-
Sets the socket timeout.
- socketTimeout - Variable in class com.mongodb.MongoClientOptions
-
- 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.
- source - Variable in class com.mongodb.MongoCredential
-
- specialFields - Variable in class com.mongodb.QueryOpBuilder
-
- splitMapIntoMultipleMaps(DBObject) - Static method in class com.mongodb.ReadPreference.TaggedReadPreference
-
Deprecated.
- stableViews() - Method in class org.bson.util.CopyOnWriteMap.Builder
-
Views are stable (fixed in time) and unmodifiable.
- start() - Static method in class com.mongodb.BasicDBObjectBuilder
-
Creates a builder intialized with an empty document.
- start(String, Object) - Static method in class com.mongodb.BasicDBObjectBuilder
-
Creates a builder initialized with the given key/value.
- start(Map) - Static method in class com.mongodb.BasicDBObjectBuilder
-
Creates an object builder from an existing map of key value pairs.
- start() - Method in class com.mongodb.DBTCPConnector
-
Deprecated.
- start() - Static method in class com.mongodb.QueryBuilder
-
Returns a new QueryBuilder.
- start(String) - Static method in class com.mongodb.QueryBuilder
-
Creates a new query with a document key
- start() - Method in class com.mongodb.ServerMonitor
-
- startIndex - Variable in class com.mongodb.IndexMap.RangeBased
-
- startPosition - Variable in class com.mongodb.BSONBinaryWriter.Context
-
- startTime - Variable in class com.mongodb.DBPort.ActiveState
-
Deprecated.
- state - Variable in class com.mongodb.BSONWriter
-
- State() - Constructor for enum com.mongodb.BSONWriter.State
-
- state - Variable in class com.mongodb.ServerDescription.Builder
-
- state(ServerConnectionState) - Method in class com.mongodb.ServerDescription.Builder
-
- state - Variable in class com.mongodb.ServerDescription
-
- stateChanged(ChangeEvent<T>) - Method in interface com.mongodb.ChangeListener
-
A ChangeEvent has been fired to notify listeners that T has changed.
- stateChanged(ChangeEvent<ServerDescription>) - Method in class com.mongodb.DefaultServer.DefaultServerStateListener
-
- stateChanged(ChangeEvent<ServerDescription>) - Method in class com.mongodb.MultiServerCluster.DefaultServerStateListener
-
- stateHasChanged(ServerDescription, ServerDescription) - Static method in class com.mongodb.ServerMonitor
-
- step - Variable in class com.mongodb.DBPort.ScramSha1Authenticator.ScramSha1SaslClient
-
Deprecated.
- stickTo - Variable in class com.mongodb.MongosHAServerSelector
-
- string(StringBuilder, String) - Static method in class com.mongodb.util.JSON
-
- STRING - Static variable in class org.bson.BSON
-
- StringBuilderPool - Class in com.mongodb.util
-
- StringBuilderPool(String, int) - Constructor for class com.mongodb.util.StringBuilderPool
-
Deprecated.
Initializes a pool of a given number of StringBuilders, each of a certain size.
- StringParseUtil - Class in com.mongodb.util
-
- StringParseUtil() - Constructor for class com.mongodb.util.StringParseUtil
-
Deprecated.
- StringRangeSet - Class in org.bson.util
-
- StringRangeSet(int) - Constructor for class org.bson.util.StringRangeSet
-
Deprecated.
- StringSerializer() - Constructor for class com.mongodb.util.JSONSerializers.StringSerializer
-
- StringType() - Constructor for enum com.mongodb.tools.ConnectionPoolStat.StringType
-
Deprecated.
- StringUtils - Class in com.mongodb
-
- StringUtils() - Constructor for class com.mongodb.StringUtils
-
- subList(int, int) - Method in class org.bson.LazyBSONList
-
- successor() - Method in class com.mongodb.ConcurrentLinkedDeque.Node
-
Returns the next non-deleted node, swinging next pointer
around any encountered deleted nodes, and also patching up
successor's prev link to point back to this.
- SYMBOL - Static variable in class org.bson.BSON
-
- Symbol - Class in org.bson.types
-
Class to hold an instance of the BSON symbol type.
- Symbol(String) - Constructor for class org.bson.types.Symbol
-
Construct a new instance with the given symbol.
- SymbolSerializer(ObjectSerializer) - Constructor for class com.mongodb.util.JSONSerializers.SymbolSerializer
-