Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.internal.validator | |
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
org.bson |
Contains the base BSON classes.
|
Modifier and Type | Field and Description |
---|---|
private FieldNameValidator |
CommandProtocolImpl.commandFieldNameValidator |
private FieldNameValidator |
CommandMessage.commandFieldNameValidator |
private FieldNameValidator |
CommandProtocolImpl.payloadFieldNameValidator |
private FieldNameValidator |
CommandMessage.payloadFieldNameValidator |
Modifier and Type | Method and Description |
---|---|
private FieldNameValidator |
CommandMessage.getPayloadArrayFieldNameValidator() |
Modifier and Type | Method and Description |
---|---|
protected void |
RequestMessage.addCollectibleDocument(BsonDocument document,
BsonOutput bsonOutput,
FieldNameValidator validator)
Appends a document to the message that is intended for storage in a collection.
|
protected void |
RequestMessage.addDocument(BsonDocument document,
BsonOutput bsonOutput,
FieldNameValidator validator)
Appends a document to the message.
|
protected void |
RequestMessage.addDocument(BsonDocument document,
BsonOutput bsonOutput,
FieldNameValidator validator,
java.util.List<BsonElement> extraElements) |
private <T> void |
RequestMessage.addDocument(T obj,
Encoder<T> encoder,
EncoderContext encoderContext,
BsonOutput bsonOutput,
FieldNameValidator validator,
int maxDocumentSize,
java.util.List<BsonElement> extraElements) |
<T> T |
DefaultServerConnection.command(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder) |
<T> T |
Connection.command(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder)
|
<T> T |
DefaultServerConnection.command(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext) |
<T> T |
Connection.command(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext)
Execute the command.
|
<T> T |
DefaultServerConnection.command(java.lang.String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator) |
<T> T |
Connection.command(java.lang.String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator)
Executes the command, consuming as much of the
SplittablePayload as possible. |
<T> void |
DefaultServerConnection.commandAsync(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
SingleResultCallback<T> callback) |
<T> void |
AsyncConnection.commandAsync(java.lang.String database,
BsonDocument command,
boolean slaveOk,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
SingleResultCallback<T> callback)
|
<T> void |
DefaultServerConnection.commandAsync(java.lang.String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator,
SingleResultCallback<T> callback) |
<T> void |
AsyncConnection.commandAsync(java.lang.String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator,
SingleResultCallback<T> callback)
Executes the command, consuming as much of the
SplittablePayload as possible. |
<T> void |
DefaultServerConnection.commandAsync(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
SingleResultCallback<T> callback) |
<T> void |
AsyncConnection.commandAsync(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
SessionContext sessionContext,
SingleResultCallback<T> callback)
Execute the command.
|
Constructor and Description |
---|
CommandMessage(MongoNamespace namespace,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
MessageSettings settings) |
CommandMessage(MongoNamespace namespace,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
MessageSettings settings,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator,
ClusterConnectionMode clusterConnectionMode) |
CommandProtocolImpl(java.lang.String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder) |
CommandProtocolImpl(java.lang.String database,
BsonDocument command,
FieldNameValidator commandFieldNameValidator,
ReadPreference readPreference,
Decoder<T> commandResultDecoder,
boolean responseExpected,
SplittablePayload payload,
FieldNameValidator payloadFieldNameValidator,
ClusterConnectionMode clusterConnectionMode) |
Modifier and Type | Class and Description |
---|---|
class |
CollectibleDocumentFieldNameValidator
A field name validator for document that are meant for storage in MongoDB collections.
|
class |
MappedFieldNameValidator
A field name validator that serves as a root validator for a map of validators that are applied to child fields.
|
class |
NoOpFieldNameValidator
A field name validator that treats all fields as valid.
|
class |
UpdateFieldNameValidator
A field name validator for update documents.
|
Modifier and Type | Field and Description |
---|---|
private FieldNameValidator |
MappedFieldNameValidator.defaultValidator |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,FieldNameValidator> |
MappedFieldNameValidator.fieldNameToValidatorMap |
Modifier and Type | Method and Description |
---|---|
FieldNameValidator |
UpdateFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
NoOpFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
MappedFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
CollectibleDocumentFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
Constructor and Description |
---|
MappedFieldNameValidator(FieldNameValidator defaultValidator,
java.util.Map<java.lang.String,FieldNameValidator> fieldNameToValidatorMap)
The default validator will be use to validate all fields whose names are not contained int the fieldNameToValidator map.
|
Constructor and Description |
---|
MappedFieldNameValidator(FieldNameValidator defaultValidator,
java.util.Map<java.lang.String,FieldNameValidator> fieldNameToValidatorMap)
The default validator will be use to validate all fields whose names are not contained int the fieldNameToValidator map.
|
Modifier and Type | Field and Description |
---|---|
private FieldNameValidator |
CommandOperationHelper.CommandProtocolExecutingCallback.fieldNameValidator |
private static FieldNameValidator |
QueryBatchCursor.NO_OP_FIELD_NAME_VALIDATOR |
private static FieldNameValidator |
MixedBulkWriteOperation.NO_OP_FIELD_NAME_VALIDATOR |
private static FieldNameValidator |
BulkWriteBatch.NO_OP_FIELD_NAME_VALIDATOR |
private static FieldNameValidator |
AsyncQueryBatchCursor.NO_OP_FIELD_NAME_VALIDATOR |
Modifier and Type | Method and Description |
---|---|
protected FieldNameValidator |
FindAndUpdateOperation.getFieldNameValidator() |
protected FieldNameValidator |
FindAndReplaceOperation.getFieldNameValidator() |
protected FieldNameValidator |
FindAndDeleteOperation.getFieldNameValidator() |
FieldNameValidator |
BulkWriteBatch.getFieldNameValidator() |
protected abstract FieldNameValidator |
BaseFindAndModifyOperation.getFieldNameValidator() |
Modifier and Type | Method and Description |
---|---|
private static <T,R> SingleResultCallback<T> |
CommandOperationHelper.createCommandCallback(AsyncWriteBinding binding,
AsyncConnectionSource oldSource,
AsyncConnection oldConnection,
java.lang.String database,
ReadPreference readPreference,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
CommandOperationHelper.CommandTransformer<T,R> transformer,
SingleResultCallback<R> callback) |
(package private) static <T,R> void |
CommandOperationHelper.executeRetryableCommand(AsyncWriteBinding binding,
java.lang.String database,
ReadPreference readPreference,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
CommandOperationHelper.CommandCreator commandCreator,
CommandOperationHelper.CommandTransformer<T,R> transformer,
SingleResultCallback<R> originalCallback) |
(package private) static <T,R> R |
CommandOperationHelper.executeRetryableCommand(WriteBinding binding,
java.lang.String database,
ReadPreference readPreference,
FieldNameValidator fieldNameValidator,
Decoder<T> commandResultDecoder,
CommandOperationHelper.CommandCreator commandCreator,
CommandOperationHelper.CommandTransformer<T,R> transformer) |
private static <D,T> T |
CommandOperationHelper.executeWrappedCommandProtocol(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
Connection connection,
ReadPreference readPreference,
CommandOperationHelper.CommandTransformer<D,T> transformer,
SessionContext sessionContext) |
private static <T> T |
CommandOperationHelper.executeWrappedCommandProtocol(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<T> decoder,
ConnectionSource source,
ReadPreference readPreference) |
(package private) static <T> T |
CommandOperationHelper.executeWrappedCommandProtocol(WriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<BsonDocument> decoder,
Connection connection,
CommandOperationHelper.CommandTransformer<BsonDocument,T> transformer) |
(package private) static <D,T> T |
CommandOperationHelper.executeWrappedCommandProtocol(WriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
CommandOperationHelper.CommandTransformer<D,T> transformer) |
(package private) static <T> void |
CommandOperationHelper.executeWrappedCommandProtocolAsync(AsyncWriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<BsonDocument> decoder,
AsyncConnection connection,
CommandOperationHelper.CommandTransformer<BsonDocument,T> transformer,
SingleResultCallback<T> callback) |
(package private) static <D,T> void |
CommandOperationHelper.executeWrappedCommandProtocolAsync(AsyncWriteBinding binding,
java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
CommandOperationHelper.CommandTransformer<D,T> transformer,
SingleResultCallback<T> callback) |
private static <D,T> void |
CommandOperationHelper.executeWrappedCommandProtocolAsync(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
AsyncConnection connection,
ReadPreference readPreference,
CommandOperationHelper.CommandTransformer<D,T> transformer,
SessionContext sessionContext,
SingleResultCallback<T> callback) |
Constructor and Description |
---|
CommandProtocolExecutingCallback(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
ReadPreference readPreference,
CommandOperationHelper.CommandTransformer<D,R> transformer,
SessionContext sessionContext,
SingleResultCallback<R> callback) |
Modifier and Type | Field and Description |
---|---|
private java.util.Stack<FieldNameValidator> |
AbstractBsonWriter.fieldNameValidatorStack |
Modifier and Type | Method and Description |
---|---|
FieldNameValidator |
NoOpFieldNameValidator.getValidatorForField(java.lang.String fieldName) |
FieldNameValidator |
FieldNameValidator.getValidatorForField(java.lang.String fieldName)
Gets a new validator to use for the value of the field with the given name.
|
Constructor and Description |
---|
AbstractBsonWriter(BsonWriterSettings settings,
FieldNameValidator validator)
Initializes a new instance of the BsonWriter class.
|
BsonBinaryWriter(BsonOutput bsonOutput,
FieldNameValidator validator)
Construct an instance.
|
BsonBinaryWriter(BsonWriterSettings settings,
BsonBinaryWriterSettings binaryWriterSettings,
BsonOutput bsonOutput,
FieldNameValidator validator)
Construct an instance.
|