Package

org.mongodb.scala

model

Permalink

package model

The model package containing models and options that help describe MongoCollection operations

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. model
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type BsonField = com.mongodb.client.model.BsonField

    Permalink

    A representation of a BSON document field whose value is another BSON document.

  2. type BucketAutoOptions = com.mongodb.client.model.BucketAutoOptions

    Permalink

    The options for a $bucketAuto aggregation pipeline stage

    The options for a $bucketAuto aggregation pipeline stage

    Since

    1.2

  3. type BucketGranularity = com.mongodb.client.model.BucketGranularity

    Permalink

    Granularity values for automatic bucketing.

    Granularity values for automatic bucketing.

    Since

    1.2

    See also

    numbers

  4. type BucketOptions = com.mongodb.client.model.BucketOptions

    Permalink

    The options for a $bucket aggregation pipeline stage

    The options for a $bucket aggregation pipeline stage

    Since

    1.2

  5. type BulkWriteOptions = com.mongodb.client.model.BulkWriteOptions

    Permalink

    The options to apply to a bulk write.

  6. type Collation = com.mongodb.client.model.Collation

    Permalink

    The collation options.

  7. type CollationAlternate = com.mongodb.client.model.CollationAlternate

    Permalink

    The collation alternative options.

  8. type CollationCaseFirst = com.mongodb.client.model.CollationCaseFirst

    Permalink

    The collation configuration of how character cases are handled

  9. type CollationMaxVariable = com.mongodb.client.model.CollationMaxVariable

    Permalink

    The collation max variable options

  10. type CollationStrength = com.mongodb.client.model.CollationStrength

    Permalink

    The collation configuration of how differences between characters are handled.

  11. type CountOptions = com.mongodb.client.model.CountOptions

    Permalink

    The options to apply to a count operation.

  12. type CreateCollectionOptions = com.mongodb.client.model.CreateCollectionOptions

    Permalink

    Options for creating a collection

  13. type CreateViewOptions = com.mongodb.client.model.CreateViewOptions

    Permalink

    Options for creating a view

    Options for creating a view

    Since

    1.2

    Note

    Requires MongoDB 3.4 or greater

  14. type DeleteManyModel[TResult] = com.mongodb.client.model.DeleteManyModel[TResult]

    Permalink

    A model describing the removal of all documents matching the query filter.

  15. type DeleteOneModel[TResult] = com.mongodb.client.model.DeleteOneModel[TResult]

    Permalink

    A model describing the removal of at most one document matching the query filter.

  16. type DeleteOptions = com.mongodb.client.model.DeleteOptions

    Permalink

    The options to apply for delete operations

  17. type Facet = com.mongodb.client.model.Facet

    Permalink

    Defines a Facet for use in $facet pipeline stages.

    Defines a Facet for use in $facet pipeline stages.

    Since

    1.2

  18. type Field[TExpression] = com.mongodb.client.model.Field[TExpression]

    Permalink

    A helper to define new fields for the $addFields pipeline stage

    A helper to define new fields for the $addFields pipeline stage

    Since

    1.2

  19. type FindOneAndDeleteOptions = com.mongodb.client.model.FindOneAndDeleteOptions

    Permalink

    The options to apply to an operation that atomically finds a document and deletes it.

  20. type FindOneAndReplaceOptions = com.mongodb.client.model.FindOneAndReplaceOptions

    Permalink

    The options to apply to an operation that atomically finds a document and replaces it.

  21. type FindOneAndUpdateOptions = com.mongodb.client.model.FindOneAndUpdateOptions

    Permalink

    The options to apply to an operation that atomically finds a document and updates it.

  22. type FindOptions = com.mongodb.client.model.FindOptions

    Permalink

    The options to apply to a find operation.

  23. type GraphLookupOptions = com.mongodb.client.model.GraphLookupOptions

    Permalink

    The options for a graphLookup aggregation pipeline stage

    The options for a graphLookup aggregation pipeline stage

    Since

    1.2

  24. type IndexModel = com.mongodb.client.model.IndexModel

    Permalink

    A model describing the creation of a single index.

  25. type IndexOptionDefaults = com.mongodb.client.model.IndexOptionDefaults

    Permalink

    The default options for a collection to apply on the creation of indexes.

    The default options for a collection to apply on the creation of indexes.

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

    See also

    Index options

  26. type IndexOptions = com.mongodb.client.model.IndexOptions

    Permalink

    The options to apply to the creation of an index.

  27. type InsertManyOptions = com.mongodb.client.model.InsertManyOptions

    Permalink

    The options to apply to an operation that inserts multiple documents into a collection.

  28. type InsertOneModel[TResult] = com.mongodb.client.model.InsertOneModel[TResult]

    Permalink

    A model describing an insert of a single document.

  29. type InsertOneOptions = com.mongodb.client.model.InsertOneOptions

    Permalink

    The options to apply to an operation that inserts a single document into a collection.

    The options to apply to an operation that inserts a single document into a collection.

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  30. type MapReduceAction = com.mongodb.client.model.MapReduceAction

    Permalink

    The map reduce to collection actions.

    The map reduce to collection actions.

    These actions are only available when passing out a collection that already exists. This option is not available on secondary members of replica sets. The Enum values dictate what to do with the output collection if it already exists when the map reduce is run.

  31. type PushOptions = com.mongodb.client.model.PushOptions

    Permalink

    The options to apply to a $push update operator.

  32. type RenameCollectionOptions = com.mongodb.client.model.RenameCollectionOptions

    Permalink

    The options to apply when renaming a collection

  33. type ReplaceOneModel[TResult] = com.mongodb.client.model.ReplaceOneModel[TResult]

    Permalink

    A model describing the replacement of at most one document that matches the query filter.

  34. type ReturnDocument = com.mongodb.client.model.ReturnDocument

    Permalink

    Indicates which document to return, the original document before change or the document after the change

  35. type TextSearchOptions = com.mongodb.client.model.TextSearchOptions

    Permalink

    Text search options for the Filters text helper

    Text search options for the Filters text helper

    Since

    1.1

    See also

    $text

  36. type UnwindOptions = com.mongodb.client.model.UnwindOptions

    Permalink

    The options for an unwind aggregation pipeline stage

    The options for an unwind aggregation pipeline stage

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  37. type UpdateManyModel[TResult] = com.mongodb.client.model.UpdateManyModel[TResult]

    Permalink

    A model describing an update to all documents that matches the query filter.

    A model describing an update to all documents that matches the query filter. The update to apply must include only update operators.

  38. type UpdateOneModel[TResult] = com.mongodb.client.model.UpdateOneModel[TResult]

    Permalink

    A model describing an update to at most one document that matches the query filter.

    A model describing an update to at most one document that matches the query filter. The update to apply must include only update operators.

  39. type UpdateOptions = com.mongodb.client.model.UpdateOptions

    Permalink

    The options to apply when updating documents.

  40. type ValidationAction = com.mongodb.client.model.ValidationAction

    Permalink

    Determines whether to error on invalid documents or just warn about the violations but allow invalid documents.

    Determines whether to error on invalid documents or just warn about the violations but allow invalid documents.

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  41. type ValidationLevel = com.mongodb.client.model.ValidationLevel

    Permalink

    Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.

    Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  42. type ValidationOptions = com.mongodb.client.model.ValidationOptions

    Permalink

    Validation options for documents being inserted or updated in a collection

    Validation options for documents being inserted or updated in a collection

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  43. type WriteModel[TResult] = com.mongodb.client.model.WriteModel[TResult]

    Permalink

    A base class for models that can be used in a bulk write operations.

Value Members

  1. object Accumulators

    Permalink

    Builders for accumulators used in the group pipeline stage of an aggregation pipeline.

    Builders for accumulators used in the group pipeline stage of an aggregation pipeline.

    Since

    1.0

    See also

    Expressions

    Accumulators

    Aggregation pipeline

  2. object Aggregates

    Permalink

    Builders for aggregation pipeline stages.

    Builders for aggregation pipeline stages.

    Since

    1.0

    See also

    Aggregation pipeline

  3. object BsonField

    Permalink

    A representation of a BSON document field whose value is another BSON document.

  4. object BucketAutoOptions

    Permalink

    The options for a $bucketAuto aggregation pipeline stage

    The options for a $bucketAuto aggregation pipeline stage

    Since

    1.2

  5. object BucketGranularity

    Permalink

    Granularity values for automatic bucketing.

    Granularity values for automatic bucketing.

    Since

    1.2

    See also

    numbers

    $bucketAuto

  6. object BucketOptions

    Permalink

    The options for a $bucket aggregation pipeline stage

    The options for a $bucket aggregation pipeline stage

    Since

    1.2

  7. object BulkWriteOptions

    Permalink

    The options to apply to a bulk write.

  8. object Collation

    Permalink

    The options regarding collation support in MongoDB 3.4+

    The options regarding collation support in MongoDB 3.4+

    Since

    1.2

    Note

    Requires MongoDB 3.4 or greater

  9. object CollationAlternate

    Permalink

    Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.

    Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.

    Since

    1.2

    Note

    Requires MongoDB 3.4 or greater

  10. object CollationCaseFirst

    Permalink

    Collation support allows the specific configuration of how character cases are handled.

    Collation support allows the specific configuration of how character cases are handled.

    Since

    1.2

    Note

    Requires MongoDB 3.4 or greater

  11. object CollationMaxVariable

    Permalink

    Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.

    Collation support allows the specific configuration of whether or not spaces and punctuation are considered base characters.

    CollationMaxVariable controls which characters are affected by CollationAlternate$.SHIFTED.

    Since

    1.2

    Note

    Requires MongoDB 3.4 or greater

  12. object CollationStrength

    Permalink

    Collation support allows the specific configuration of how character cases are handled.

    Collation support allows the specific configuration of how character cases are handled.

    Since

    1.2

    Note

    Requires MongoDB 3.4 or greater

  13. object CountOptions

    Permalink

    The options to apply to a count operation.

  14. object CreateCollectionOptions

    Permalink

    Options for creating a collection

  15. object CreateViewOptions

    Permalink

    Options for creating a view

    Options for creating a view

    Since

    1.2

    Note

    Requires MongoDB 3.4 or greater

  16. object DeleteManyModel

    Permalink

    A model describing the removal of all documents matching the query filter.

  17. object DeleteOneModel

    Permalink

    A model describing the removal of at most one document matching the query filter.

  18. object DeleteOptions

    Permalink

    The options to apply for delete operations.

  19. object Facet

    Permalink

    Defines a Facet for use in $facet pipeline stages.

    Defines a Facet for use in $facet pipeline stages.

    Since

    1.2

  20. object Field

    Permalink

    A helper to define new fields for the $addFields pipeline stage

    A helper to define new fields for the $addFields pipeline stage

    Since

    1.2

  21. object Filters

    Permalink

    A factory for query filters.

    A factory for query filters. A convenient way to use this class is to statically import all of its methods, which allows usage like:

    collection.find(and(eq("x", 1), lt("y", 3)))

    Since

    1.0

  22. object FindOneAndDeleteOptions

    Permalink

    The options to apply to an operation that atomically finds a document and deletes it.

  23. object FindOneAndReplaceOptions

    Permalink

    The options to apply to an operation that atomically finds a document and replaces it.

  24. object FindOneAndUpdateOptions

    Permalink

    The options to apply to an operation that atomically finds a document and updates it.

  25. object FindOptions

    Permalink

    The options to apply to a find operation.

  26. object GraphLookupOptions

    Permalink

    The options for a graphLookup aggregation pipeline stage

    The options for a graphLookup aggregation pipeline stage

    Since

    1.2

  27. object IndexModel

    Permalink

    A model describing the creation of a single index.

  28. object IndexOptionDefaults

    Permalink

    Options for creating an index

  29. object IndexOptions

    Permalink

    The options to apply to the creation of an index.

  30. object Indexes

    Permalink

    A factory for defining index keys.

    A factory for defining index keys. A convenient way to use this class is to statically import all of its methods, which allows usage like:

    collection.createIndex(compoundIndex(ascending("x"), descending("y")))
    Since

    1.0

  31. object InsertManyOptions

    Permalink

    The options to apply to an operation that inserts multiple documents into a collection.

  32. object InsertOneModel

    Permalink

    A model describing an insert of a single document.

  33. object InsertOneOptions

    Permalink

    The options to apply to an operation that inserts a single document into a collection.

    The options to apply to an operation that inserts a single document into a collection.

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  34. object MapReduceAction

    Permalink

    The map reduce to collection actions.

    The map reduce to collection actions.

    These actions are only available when passing out a collection that already exists. This option is not available on secondary members of replica sets. The Enum values dictate what to do with the output collection if it already exists when the map reduce is run.

    Since

    1.0

  35. object Projections

    Permalink

    A factory for projections.

    A factory for projections. A convenient way to use this class is to statically import all of its methods, which allows usage like:

    collection.find().projection(fields(include("x", "y"), excludeId()))

    Since

    1.0

  36. object PushOptions

    Permalink

    The options to apply to a $push update operator.

  37. object RenameCollectionOptions

    Permalink

    The options to apply when renaming a collection

  38. object ReplaceOneModel

    Permalink

    A model describing the replacement of at most one document that matches the query filter.

  39. object ReturnDocument

    Permalink

    Indicates which document to return, the original document before change or the document after the change

    Indicates which document to return, the original document before change or the document after the change

    Since

    1.0

  40. object Sorts

    Permalink

    A factory for sort specifications.

    A factory for sort specifications. A convenient way to use this class is to statically import all of its methods, which allows usage like:

    collection.find().sort(orderBy(ascending("x", "y"), descending("z")))

    Since

    1.0

  41. object TextSearchOptions

    Permalink

    Text search options for the Filters text helper

    Text search options for the Filters text helper

    Since

    1.1

  42. object UnwindOptions

    Permalink

    The options for an unwind aggregation pipeline stage

    The options for an unwind aggregation pipeline stage

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  43. object UpdateManyModel

    Permalink

    A model describing an update to all documents that matches the query filter.

    A model describing an update to all documents that matches the query filter. The update to apply must include only update operators.

  44. object UpdateOneModel

    Permalink

    A model describing an update to at most one document that matches the query filter.

    A model describing an update to at most one document that matches the query filter. The update to apply must include only update operators.

  45. object UpdateOptions

    Permalink

    The options to apply when updating documents.

  46. object Updates

    Permalink

    A factory for document updates.

    A factory for document updates. A convenient way to use this class is to statically import all of its methods, which allows usage like:

    collection.updateOne(eq("x", 1), set("x", 2))

    Since

    1.0

  47. object ValidationAction

    Permalink

    Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.

    Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  48. object ValidationLevel

    Permalink

    Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.

    Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  49. object ValidationOptions

    Permalink

    Validation options for documents being inserted or updated in a collection

    Validation options for documents being inserted or updated in a collection

    Since

    1.1

    Note

    Requires MongoDB 3.2 or greater

  50. package geojson

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped