Class

reactivemongo.play.json.collection

JSONCollection

Related Doc: package collection

Permalink

final class JSONCollection extends GenericCollection[JSONSerializationPack.type] with CollectionMetaCommands

A Collection that interacts with the Play JSON library, using Reads and Writes.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JSONCollection
  2. GenericCollection
  3. HintFactory
  4. GenericCollectionWithQueryBuilder
  5. GenericCollectionMetaCommands
  6. Aggregator
  7. ChangeStreamOps
  8. DistinctOp
  9. CountOp
  10. DeleteOps
  11. UpdateOps
  12. InsertOps
  13. ImplicitCommandHelpers
  14. CollectionMetaCommands
  15. GenericCollectionWithCommands
  16. Collection
  17. AnyRef
  18. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JSONCollection(db: DB, name: String, failoverStrategy: FailoverStrategy, readPreference: ReadPreference)

    Permalink
  2. new JSONCollection(db: DB, name: String, failoverStrategy: FailoverStrategy)

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC5) Use the constructor with a ReadPreference

Type Members

  1. type AggregationFramework = AggregationFramework.type

    Permalink
    Definition Classes
    GenericCollection
  2. final class Aggregator[T, AC[_] <: Cursor[_]] extends AnyRef

    Permalink
    Definition Classes
    Aggregator
  3. final class AggregatorContext[T] extends AnyRef

    Permalink
    Definition Classes
    Aggregator
  4. final class CollectionQueryBuilder extends GenericQueryBuilder[api.collections.GenericCollection.pack.type]

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollectionWithQueryBuilder
  5. sealed trait DeleteBuilder extends AnyRef

    Permalink
    Definition Classes
    DeleteOps
  6. trait ImplicitlyDocumentProducer extends AnyRef

    Permalink
    Definition Classes
    ImplicitCommandHelpers
  7. sealed trait InsertBuilder extends AnyRef

    Permalink
    Definition Classes
    InsertOps
  8. type PipelineOperator = commands.JSONAggregationFramework.PipelineOperator

    Permalink
    Definition Classes
    GenericCollection
  9. sealed trait UpdateBuilder extends AnyRef

    Permalink
    Definition Classes
    UpdateOps
  10. sealed trait WatchBuilder[T] extends AnyRef

    Permalink
    Definition Classes
    ChangeStreamOps

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to any2stringadd[JSONCollection] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (JSONCollection, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to ArrowAssoc[JSONCollection] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. val BatchCommands: JSONBatchCommands.type

    Permalink
    Definition Classes
    JSONCollection → GenericCollection
  7. object ImplicitlyDocumentProducer

    Permalink
    Definition Classes
    ImplicitCommandHelpers
  8. def MissingMetadata(): ConnectionNotInitialized

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
    Annotations
    @inline()
  9. def aggregateWith[T](explain: Boolean, allowDiskUse: Boolean, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern], readPreference: ReadPreference, batchSize: Option[Int])(f: (AggregationFramework) ⇒ (PipelineOperator, List[PipelineOperator]))(implicit reader: Reader[T], cp: CursorProducer[T]): ProducedCursor

    Permalink
    Definition Classes
    GenericCollection
  10. def aggregatorContext[T](firstOperator: PipelineOperator, otherOperators: List[PipelineOperator], explain: Boolean, allowDiskUse: Boolean, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern], readPreference: ReadPreference, writeConcern: WriteConcern, batchSize: Option[Int], cursorOptions: CursorOptions, maxTimeMS: Option[Long])(implicit reader: Reader[T]): AggregatorContext[T]

    Permalink
    Definition Classes
    GenericCollection
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def convertToCapped(size: Long, maxDocuments: Option[Int])(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
  14. def count(selector: Option[Document], limit: Option[Int], skip: Int, hint: Option[Hint[pack.type]], readConcern: ReadConcern)(implicit ec: ExecutionContext): Future[Long]

    Permalink
    Definition Classes
    GenericCollection
  15. def countDocuments(query: Option[Document], limit: Option[Int], skip: Int, hint: Option[Hint[pack.type]], readConcern: ReadConcern)(implicit ec: ExecutionContext): Future[Long]

    Permalink
    Attributes
    protected
    Definition Classes
    CountOp
  16. def create()(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
  17. def createCapped(size: Long, maxDocuments: Option[Int], autoIndexId: Boolean)(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
  18. def createView(name: String, operator: PipelineOperator, pipeline: Seq[PipelineOperator], collation: Option[Collation])(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    GenericCollectionMetaCommands
  19. val db: DB

    Permalink
    Definition Classes
    JSONCollection → Collection
  20. def defaultCursorBatchSize: Int

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
    Annotations
    @inline()
  21. def delete(ordered: Boolean, writeConcern: WriteConcern): DeleteBuilder

    Permalink
    Definition Classes
    GenericCollection
  22. def delete: DeleteBuilder

    Permalink
    Definition Classes
    GenericCollection
  23. def distinct[T, M[_] <: Iterable[_]](key: String, selector: Option[Document], readConcern: ReadConcern, collation: Option[Collation])(implicit reader: NarrowValueReader[T], ec: ExecutionContext, cbf: CanBuildFrom[M[_], T, M[T]]): Future[M[T]]

    Permalink
    Definition Classes
    GenericCollection
  24. def distinctDocuments[T, M[_] <: Iterable[_]](key: String, query: Option[Document], readConcern: ReadConcern, collation: Option[Collation])(implicit reader: NarrowValueReader[T], ec: ExecutionContext, cbf: CanBuildFrom[M[_], T, M[T]]): Future[M[T]]

    Permalink
    Attributes
    protected
    Definition Classes
    DistinctOp
  25. def drop(failIfNotFound: Boolean)(implicit ec: ExecutionContext): Future[Boolean]

    Permalink
    Definition Classes
    CollectionMetaCommands
  26. def ensuring(cond: (JSONCollection) ⇒ Boolean, msg: ⇒ Any): JSONCollection

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to Ensuring[JSONCollection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: (JSONCollection) ⇒ Boolean): JSONCollection

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to Ensuring[JSONCollection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean, msg: ⇒ Any): JSONCollection

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to Ensuring[JSONCollection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: Boolean): JSONCollection

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to Ensuring[JSONCollection] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  32. val failoverStrategy: FailoverStrategy

    Permalink
    Definition Classes
    JSONCollection → Collection
  33. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def find[S, J](selector: S, projection: Option[J])(implicit swriter: Writer[S], pwriter: Writer[J]): GenericQueryBuilder[pack.type]

    Permalink
    Definition Classes
    GenericCollection
  35. def findAndModify[S](selector: S, modifier: commands.JSONFindAndModifyCommand.Modify, sort: Option[Document], fields: Option[Document], bypassDocumentValidation: Boolean, writeConcern: WriteConcern, maxTime: Option[FiniteDuration], collation: Option[Collation], arrayFilters: Seq[Document])(implicit swriter: Writer[S], ec: ExecutionContext): Future[commands.JSONFindAndModifyCommand.FindAndModifyResult]

    Permalink
    Definition Classes
    GenericCollection
  36. def findAndRemove[S](selector: S, sort: Option[Document], fields: Option[Document])(implicit swriter: Writer[S], ec: ExecutionContext): Future[commands.JSONFindAndModifyCommand.FindAndModifyResult]

    Permalink
    Definition Classes
    GenericCollection
  37. def findAndUpdate[S, T](selector: S, update: T, fetchNewObject: Boolean, upsert: Boolean, sort: Option[Document], fields: Option[Document])(implicit swriter: Writer[S], writer: Writer[T], ec: ExecutionContext): Future[commands.JSONFindAndModifyCommand.FindAndModifyResult]

    Permalink
    Definition Classes
    GenericCollection
  38. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to StringFormat[JSONCollection] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  39. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  40. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  41. def hint(specification: Document): Hint[pack.type]

    Permalink
    Definition Classes
    HintFactory
  42. def hint(name: String): Hint[pack.type]

    Permalink
    Definition Classes
    HintFactory
  43. def indexesManager(implicit ec: ExecutionContext): CollectionIndexesManager

    Permalink
    Definition Classes
    CollectionMetaCommands
  44. def insert(ordered: Boolean, writeConcern: WriteConcern): InsertBuilder

    Permalink
    Definition Classes
    GenericCollection
  45. def insert(ordered: Boolean): InsertBuilder

    Permalink
    Definition Classes
    GenericCollection
  46. def insert: InsertBuilder

    Permalink
    Definition Classes
    GenericCollection
  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. val name: String

    Permalink
    Definition Classes
    JSONCollection → Collection
  49. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  50. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  52. val pack: JSONSerializationPack.type

    Permalink
    Definition Classes
    JSONCollection → GenericCollection → ImplicitCommandHelpers → GenericCollectionWithCommands
  53. def readConcern: ReadConcern

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
    Annotations
    @inline()
  54. val readPreference: ReadPreference

    Permalink
    Definition Classes
    JSONCollection → GenericCollection
  55. def runCommand[C <: CollectionCommand](command: C)(implicit writer: Writer[ResolvedCollectionCommand[C]]): CursorFetcher[pack.type, Cursor]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  56. def runCommand[R, C <: CollectionCommand with CommandWithResult[R]](command: C with CommandWithResult[R], readPreference: ReadPreference)(implicit writer: Writer[ResolvedCollectionCommand[C]], reader: Reader[R], ec: ExecutionContext): Future[R]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  57. def runValueCommand[A <: AnyVal, R <: BoxedAnyVal[A], C <: CollectionCommand with CommandWithResult[R]](command: C with CommandWithResult[R with BoxedAnyVal[A]], rp: ReadPreference)(implicit writer: Writer[ResolvedCollectionCommand[C]], reader: Reader[R], ec: ExecutionContext): Future[A]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  58. def runWithResponse[R, C <: CollectionCommand with CommandWithResult[R]](command: C with CommandWithResult[R], readPreference: ReadPreference)(implicit writer: Writer[ResolvedCollectionCommand[C]], reader: Reader[R], ec: ExecutionContext): Future[ResponseResult[R]]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  59. def runner: CommandWithPackRunner[pack.type]

    Permalink
    Definition Classes
    GenericCollectionWithCommands
  60. def sibling[C <: Collection](name: String, failoverStrategy: FailoverStrategy)(implicit producer: CollectionProducer[C]): C

    Permalink
    Definition Classes
    Collection
  61. def stats(scale: Int)(implicit ec: ExecutionContext): Future[CollStatsResult]

    Permalink
    Definition Classes
    CollectionMetaCommands
  62. def stats()(implicit ec: ExecutionContext): Future[CollStatsResult]

    Permalink
    Definition Classes
    CollectionMetaCommands
  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  64. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  65. implicit lazy val unitBoxReader: Reader[UnitBox.type]

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
  66. def update(ordered: Boolean, writeConcern: WriteConcern): UpdateBuilder

    Permalink
    Definition Classes
    GenericCollection
  67. def update(ordered: Boolean): UpdateBuilder

    Permalink
    Definition Classes
    GenericCollection
  68. def update: UpdateBuilder

    Permalink
    Definition Classes
    GenericCollection
  69. def updateModifier[U](update: U, fetchNewObject: Boolean, upsert: Boolean)(implicit updateWriter: Writer[U]): commands.JSONFindAndModifyCommand.Update

    Permalink
    Definition Classes
    GenericCollection
  70. lazy val version: MongoWireVersion

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
  71. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  73. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  74. final def watch[T](resumeAfter: Option[Value], startAtOperationTime: Option[Value], pipeline: List[PipelineOperator], maxAwaitTimeMS: Option[Long], fullDocumentStrategy: Option[FullDocumentStrategy])(implicit reader: Reader[T]): WatchBuilder[T]

    Permalink
    Definition Classes
    ChangeStreamOps
  75. def watchFailure[T](future: ⇒ Future[T]): Future[T]

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
  76. def withReadPreference(pref: ReadPreference): JSONCollection

    Permalink
    Definition Classes
    JSONCollection → GenericCollection
  77. def writeConcern: WriteConcern

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
    Annotations
    @inline()
  78. def writePreference: ReadPreference

    Permalink
    Attributes
    protected
    Definition Classes
    GenericCollection
    Annotations
    @inline()
  79. def [B](y: B): (JSONCollection, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from JSONCollection to ArrowAssoc[JSONCollection] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. implicit def PackIdentityReader: Reader[Document]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Will be private/internal

  2. implicit def PackIdentityWriter: Writer[Document]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Will be private/internal

  3. def aggregateWith1[T](explain: Boolean, allowDiskUse: Boolean, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern], readPreference: ReadPreference, batchSize: Option[Int])(f: (AggregationFramework) ⇒ (PipelineOperator, List[PipelineOperator]))(implicit ec: ExecutionContext, reader: Reader[T], cf: CursorFlattener[Cursor], cp: CursorProducer[T]): ProducedCursor

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Use aggregateWith

  4. def aggregatorContext[T](firstOperator: PipelineOperator, otherOperators: List[PipelineOperator], explain: Boolean, allowDiskUse: Boolean, bypassDocumentValidation: Boolean, readConcern: Option[ReadConcern], readPreference: ReadPreference, batchSize: Option[Int])(implicit reader: Reader[T]): AggregatorContext[T]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 0.17.0) Use aggregator context with optional writeConcern

  5. def as[C <: Collection](failoverStrategy: FailoverStrategy)(implicit producer: CollectionProducer[C]): C

    Permalink
    Definition Classes
    Collection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.0) Resolve the collection from DB

  6. def count[H](selector: Option[Document], limit: Int, skip: Int, hint: Option[H])(implicit h: (H) ⇒ JSONBatchCommands.JSONCountCommand.Hint, ec: ExecutionContext): Future[Int]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Use count with readConcern parameter

  7. def create(autoIndexId: Boolean)(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
    Annotations
    @deprecated
    Deprecated

    (Since version 0.14.0) Use create without deprecated autoIndexId

  8. def distinct[T, M[_] <: Iterable[_]](key: String, selector: Option[Document], readConcern: ReadConcern)(implicit reader: NarrowValueReader[T], ec: ExecutionContext, cbf: CanBuildFrom[M[_], T, M[T]]): Future[M[T]]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Use distinct with Collation

  9. def drop()(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.0) Use drop(Boolean)

  10. def find[S, J](selector: S, projection: J)(implicit swriter: Writer[S], pwriter: Writer[J]): GenericQueryBuilder[pack.type]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Use find with optional projection

  11. def find[S](selector: S)(implicit swriter: Writer[S]): GenericQueryBuilder[pack.type]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Use find with optional projection

  12. def findAndModify[S](selector: S, modifier: commands.JSONFindAndModifyCommand.Modify, sort: Option[Document], fields: Option[Document])(implicit swriter: Writer[S], ec: ExecutionContext): Future[commands.JSONFindAndModifyCommand.FindAndModifyResult]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.14.0) Use other findAndModify

  13. final def fullCollectionName: String

    Permalink
    Definition Classes
    Collection
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 0.17.0) Will be private

  14. def insert[T](document: T, writeConcern: WriteConcern)(implicit writer: Writer[T], ec: ExecutionContext): Future[WriteResult]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.1) Use .insert(ordered = false).one(..)

  15. def remove[S](selector: S, writeConcern: WriteConcern, firstMatchOnly: Boolean)(implicit swriter: Writer[S], ec: ExecutionContext): Future[WriteResult]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.1) Use delete().one(selector, limit)

  16. lazy val removeModifier: commands.JSONFindAndModifyCommand.Remove.type

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0) Will be private/internal

  17. def rename(to: String, dropExisting: Boolean)(implicit ec: ExecutionContext): Future[Unit]

    Permalink
    Definition Classes
    CollectionMetaCommands
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.4) Use reactivemongo.api.DBMetaCommands.renameCollection on the admin database instead.

  18. def update[S, T](selector: S, update: T, writeConcern: WriteConcern, upsert: Boolean, multi: Boolean)(implicit swriter: Writer[S], writer: Writer[T], ec: ExecutionContext): Future[UpdateWriteResult]

    Permalink
    Definition Classes
    GenericCollection
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.1) Use .update(ordered = false).one(..)

Inherited from HintFactory[JSONSerializationPack.type]

Inherited from ChangeStreamOps[JSONSerializationPack.type]

Inherited from DistinctOp[JSONSerializationPack.type]

Inherited from CountOp[JSONSerializationPack.type]

Inherited from DeleteOps[JSONSerializationPack.type]

Inherited from UpdateOps[JSONSerializationPack.type]

Inherited from InsertOps[JSONSerializationPack.type]

Inherited from CollectionMetaCommands

Inherited from Collection

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from JSONCollection to any2stringadd[JSONCollection]

Inherited by implicit conversion StringFormat from JSONCollection to StringFormat[JSONCollection]

Inherited by implicit conversion Ensuring from JSONCollection to Ensuring[JSONCollection]

Inherited by implicit conversion ArrowAssoc from JSONCollection to ArrowAssoc[JSONCollection]

Ungrouped