net.fehmicansaglam.tepkin.api

MongoCollection

Related Doc: package api

class MongoCollection extends AnyRef

Java 8 API for MongoCollection

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoCollection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoCollection(proxy: tepkin.MongoCollection)

    proxy

    Wrapped Scala MongoCollection

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def aggregate(pipeline: List[BsonDocument], options: AggregationOptions, timeout: FiniteDuration): Source[List[BsonDocument], ActorRef]

    Calculates aggregate values for the data in this collection.

    Calculates aggregate values for the data in this collection.

    pipeline

    A sequence of data aggregation operations or stages.

    options

    Additional options that aggregate() passes to the aggregate command.

  5. def aggregate(pipeline: List[BsonDocument], timeout: FiniteDuration): Source[List[BsonDocument], ActorRef]

    Calculates aggregate values for the data in this collection.

    Calculates aggregate values for the data in this collection.

    pipeline

    A sequence of data aggregation operations or stages.

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def count(query: BsonDocument, options: CountOptions, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[CountResult]

    Returns the count of documents that would match a find() query.

    Returns the count of documents that would match a find() query. The count() method does not perform the find() operation but instead counts and returns the number of results that match a query.

  9. def count(query: BsonDocument, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[CountResult]

    Returns the count of documents that would match a find() query.

    Returns the count of documents that would match a find() query. The count() method does not perform the find() operation but instead counts and returns the number of results that match a query.

  10. def count(ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[CountResult]

    Returns the count of documents that would match a find() query.

    Returns the count of documents that would match a find() query. The count() method does not perform the find() operation but instead counts and returns the number of results that match a query.

  11. def createIndexes(indexes: List[Index], ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[CreateIndexesResult]

    Creates indexes on this collection.

  12. def delete(query: BsonDocument, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[DeleteResult]

  13. def distinct(field: String, query: BsonDocument, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[DistinctResult]

    Finds the distinct values for a specified field across a single collection and returns the results in an array.

    Finds the distinct values for a specified field across a single collection and returns the results in an array.

    field

    The field for which to return distinct values.

    query

    A query that specifies the documents from which to retrieve the distinct values.

  14. def distinct(field: String, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[DistinctResult]

    Finds the distinct values for a specified field across a single collection and returns the results in an array.

    Finds the distinct values for a specified field across a single collection and returns the results in an array.

    field

    The field for which to return distinct values.

  15. def drop(ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[Reply]

    Drops this collection

  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def find(query: BsonDocument, fields: BsonDocument, timeout: FiniteDuration): Source[List[BsonDocument], ActorRef]

    Selects documents in this collection.

  20. def find(query: BsonDocument, timeout: FiniteDuration): Source[List[BsonDocument], ActorRef]

    Selects documents in this collection.

  21. def findAndRemove(query: Optional[BsonDocument], sort: Optional[BsonDocument], fields: Optional[List[String]], ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[Optional[BsonDocument]]

    Removes and returns a single document.

    Removes and returns a single document.

    query

    The selection criteria for the remove.

    sort

    Determines which model the operation removes if the query selects multiple models. findAndRemove() removes the first model in the sort order specified by this argument.

    fields

    A subset of fields to return.

  22. def findAndUpdate(query: Optional[BsonDocument], sort: Optional[BsonDocument], update: BsonDocument, returnNew: Boolean, fields: Optional[List[String]], upsert: Boolean, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[Optional[BsonDocument]]

    Updates and returns a single document.

    Updates and returns a single document. It returns the old document by default.

    query

    The selection criteria for the update.

    sort

    Determines which model the operation updates if the query selects multiple models. findAndUpdate() updates the first model in the sort order specified by this argument.

    update

    Performs an update of the selected model.

    returnNew

    When true, returns the updated model rather than the original.

    fields

    A subset of fields to return.

    upsert

    When true, findAndUpdate() creates a new model if no model matches the query.

  23. def findOne(query: BsonDocument, skip: Integer, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[Optional[BsonDocument]]

    Retrieves at most one document matching the given selector.

    Retrieves at most one document matching the given selector.

    query

    Selector document.

    skip

    number of documents to skip. Set to 0 if you don't want to skip any documents.

  24. def findOne(query: BsonDocument, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[Optional[BsonDocument]]

    Retrieves at most one document matching the given selector.

    Retrieves at most one document matching the given selector.

    query

    Selector document.

  25. def findRandom(query: Optional[BsonDocument], ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[Optional[BsonDocument]]

    Retrieves a random document matching the given selector.

  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. def getIndexes(ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[List[Index]]

    Returns a list of documents that identify and describe the existing indexes on the collection.

  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. def insert(documents: List[BsonDocument], ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[InsertResult]

  30. def insert(document: BsonDocument, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[InsertResult]

  31. def insertFromSource[M](source: Source[List[BsonDocument], M], ordered: Boolean, writeConcern: WriteConcern, ec: ExecutionContext, timeout: FiniteDuration): Source[InsertResult, M]

  32. def insertFromSource[M](source: Source[List[BsonDocument], M], ordered: Boolean, ec: ExecutionContext, timeout: FiniteDuration): Source[InsertResult, M]

  33. def insertFromSource[M](source: Source[List[BsonDocument], M], ec: ExecutionContext, timeout: FiniteDuration): Source[InsertResult, M]

  34. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def update(query: BsonDocument, update: BsonDocument, upsert: Boolean, multi: Boolean, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[UpdateResult]

  41. def update(query: BsonDocument, update: BsonDocument, upsert: Boolean, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[UpdateResult]

  42. def update(query: BsonDocument, update: BsonDocument, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[UpdateResult]

  43. def validate(full: Boolean, scandata: Boolean, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[BsonDocument]

    Validates this collection.

    Validates this collection. The method scans a collection’s data structures for correctness and returns a single document that describes the relationship between the logical collection and the physical representation of the data.

    full

    Specify true to enable a full validation and to return full statistics. MongoDB disables full validation by default because it is a potentially resource-intensive operation.

    scandata

    if false skips the scan of the base collection without skipping the scan of the index.

  44. def validate(full: Boolean, ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[BsonDocument]

    Validates this collection.

    Validates this collection. The method scans a collection’s data structures for correctness and returns a single document that describes the relationship between the logical collection and the physical representation of the data.

    full

    Specify true to enable a full validation and to return full statistics. MongoDB disables full validation by default because it is a potentially resource-intensive operation.

  45. def validate(ec: ExecutionContext, timeout: FiniteDuration): CompletableFuture[BsonDocument]

    Validates this collection.

    Validates this collection. The method scans a collection’s data structures for correctness and returns a single document that describes the relationship between the logical collection and the physical representation of the data.

  46. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped