Package

reactivemongo.api

indexes

Permalink

package indexes

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CollectionIndexesManager extends AnyRef

    Permalink

  2. final class DefaultIndexesManager extends IndexesManager

    Permalink

    A helper class to manage the indexes on a Mongo 3.x database.

  3. sealed abstract class Index extends Product with Serializable

    Permalink

    A MongoDB index (excluding the namespace).

    A MongoDB index (excluding the namespace).

    Consider reading the documentation about indexes in MongoDB.

    import reactivemongo.api.bson.BSONDocument
    import reactivemongo.api.bson.collection.BSONSerializationPack
    import reactivemongo.api.indexes.{ Index, IndexType }
    
    val bsonIndex = Index(BSONSerializationPack)(
      key = Seq("name" -> IndexType.Ascending),
      name = Some("name_idx"),
      unique = false,
      background = false,
      dropDups = false,
      sparse = false,
      version = None,
      partialFilter = None,
      options = BSONDocument.empty)
  4. sealed trait IndexType extends AnyRef

    Permalink

    Type of Index

  5. sealed trait IndexesManager extends AnyRef

    Permalink

    Indexes manager at database level.

  6. final class LegacyIndexesManager extends IndexesManager

    Permalink

    A helper class to manage the indexes on a Mongo 2.x database.

  7. case class NSIndex(namespace: String, index: Index) extends Product with Serializable

    Permalink

    A MongoDB namespaced index.

    A MongoDB namespaced index. A MongoDB index is composed with the namespace (the fully qualified collection name) and the other fields of reactivemongo.api.indexes.Index.

    Consider reading the documentation about indexes in MongoDB.

    namespace

    The fully qualified name of the indexed collection.

    index

    The other fields of the index.

Value Members

  1. object CollectionIndexesManager

    Permalink

    Factory for indexes manager scoped with a specified collection.

  2. object Index extends Serializable

    Permalink
  3. object IndexType

    Permalink
  4. object IndexesManager

    Permalink

Ungrouped