Package com.mongodb.client.model
This package contains models and options that help describe MongoCollection operations
-
Class Summary Class Description Accumulators Builders for accumulators used in the group pipeline stage of an aggregation pipeline.Aggregates Builders for aggregation pipeline stages.BsonField A representation of a BSON document field whose value is another BSON document.BucketAutoOptions The options for a $bucketAuto aggregation pipeline stageBucketOptions The options for a $bucket aggregation pipeline stageBulkWriteOptions The options to apply to a bulk write.Collation The options regarding collation support in MongoDB 3.4+Collation.Builder A Collation builder.CountOptions The options for a count operation.CreateCollectionOptions Options for creating a collectionCreateIndexOptions The options to apply to the command when creating indexes.CreateViewOptions Options for creating a viewDBCollectionCountOptions The options for a count operation.DBCollectionDistinctOptions The options for a distinct operation.DBCollectionFindAndModifyOptions The oprtions for find and modify operations.DBCollectionFindOptions The options to apply to a find operation (also commonly referred to as a query).DBCollectionRemoveOptions The options to apply when removing documents from the DBCollectionDBCollectionUpdateOptions The options to apply when updating documents in the DBCollectionDBCreateViewOptions The options to apply when creating a viewDeleteManyModel<T> A model describing the removal of all documents matching the query filter.DeleteOneModel<T> A model describing the removal of at most one document matching the query filter.DeleteOptions The options to apply when deleting documents.DropIndexOptions The options to apply to the command when dropping indexes.EstimatedDocumentCountOptions The options an estimated count operation.Facet Defines a Facet for use in $facet pipeline stages.Field<TExpression> Helps define new fields for the $addFields pipeline stageFilters A factory for query filters.FindOneAndDeleteOptions The options to apply to an operation that atomically finds a document and deletes it.FindOneAndReplaceOptions The options to apply to an operation that atomically finds a document and replaces it.FindOneAndUpdateOptions The options to apply to an operation that atomically finds a document and updates it.FindOptions Deprecated. there is no replacement for this classGraphLookupOptions The options for a graphLookup aggregation pipeline stageIndexes A factory for defining index keys.IndexModel A model describing the creation of a single index.IndexOptionDefaults The default options for a collection to apply on the creation of indexes.IndexOptions The options to apply to the creation of an index.InsertManyOptions The options to apply to an operation that inserts multiple documents into a collection.InsertOneModel<T> A model describing an insert of a single document.InsertOneOptions The options to apply to an operation that inserts a single document into a collection.MergeOptions Options to control the behavior of the $merge aggregation stageParallelCollectionScanOptions Deprecated. this is an unused class and there should be no reason to use itProjections A factory for projections.PushOptions The options to apply to a $push update operator.RenameCollectionOptions The options to apply when renaming a collection.ReplaceOneModel<T> A model describing the replacement of at most one document that matches the query filter.ReplaceOptions The options to apply when replacing documents.Sorts A factory for sort specifications.TextSearchOptions Text search options for theFilters.text(String, TextSearchOptions)
helperUnwindOptions The options for an unwind aggregation pipeline stageUpdateManyModel<T> A model describing an update to all documents that matches the query filter.UpdateOneModel<T> A model describing an update to at most one document that matches the query filter.UpdateOptions The options to apply when updating documents.Updates A factory for document updates.ValidationOptions Validation options for documents being inserted or updated in a collectionVariable<TExpression> Helps define new variable for the $lookup pipeline stageWriteModel<T> A base class for models that can be used in a bulk write operations. -
Enum Summary Enum Description AggregationLevel Deprecated. BucketGranularity Granularity values for automatic bucketing.CollationAlternate Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.CollationCaseFirst Collation support allows the specific configuration of how character cases are handled.CollationMaxVariable Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.CollationStrength Collation support allows the specific configuration of how differences between characters are handled.MapReduceAction The map reduce to collection actions.MergeOptions.WhenMatched The behavior of $merge if a result document and an existing document in the collection have the same value for the specified on field(s).MergeOptions.WhenNotMatched The behavior of $merge if a result document does not match an existing document in the out collection.ReturnDocument Indicates which document to return, the original document before change or the document after the changeValidationAction Determines whether to error on invalid documents or just warn about the violations but allow invalid documents.ValidationLevel Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.