Package

reactivemongo.api

indexes

Permalink

package indexes

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait CollectionIndexesManager extends AnyRef

    Permalink

  2. 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(
      key = Seq("name" -> IndexType.Ascending),
      name = Some("name_idx"),
      unique = false,
      background = false,
      sparse = false,
      expireAfterSeconds = None,
      storageEngine = None,
      weights = None,
      defaultLanguage = None,
      languageOverride = None,
      textIndexVersion = None,
      sphereIndexVersion = None,
      bits = None,
      min = None,
      max = None,
      bucketSize = None,
      collation = None,
      wildcardProjection = None,
      version = None,
      partialFilter = None,
      options = BSONDocument.empty)
  3. sealed trait IndexType extends AnyRef

    Permalink

    Type of Index

  4. sealed trait IndexesManager extends AnyRef

    Permalink

    Indexes manager at database level.

  5. class NSIndex extends Product2[String, Index] 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.

  6. class DefaultIndexesManager extends AbstractIndexesManager

    Permalink

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 0.20.3) Internal: will be made private

  7. class LegacyIndexesManager extends AbstractLegacyManager

    Permalink

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 0.20.3) Internal: will be made private

Value Members

  1. object CollectionIndexesManager

    Permalink

    Factory for indexes manager scoped with a specified collection.

  2. object Index extends AbstractFunction9[Seq[(String, IndexType)], Option[String], Boolean, Boolean, Boolean, Boolean, Option[Int], Option[BSONDocument], BSONDocument, Index] with Serializable

    Permalink
  3. object IndexType

    Permalink
  4. object IndexesManager

    Permalink
  5. object NSIndex extends AbstractFunction2[String, Aux[Pack], NSIndex { type Pack = reactivemongo.api.Serialization.Pack }] with Serializable

    Permalink

Ungrouped