Packages

class DocumentCollectionQuery[D <: Document[D], M <: DocumentModel[D]] extends QueryBuilder[D] with DocumentQuery[D]

Linear Supertypes
DocumentQuery[D], QueryBuilder[D], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DocumentCollectionQuery
  2. DocumentQuery
  3. QueryBuilder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DocumentCollectionQuery(collection: DocumentCollection[D, M])

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 all: IO[List[D]]

    Convenience method to get the results from the stream as a List

    Convenience method to get the results from the stream as a List

    Definition Classes
    QueryBuilder
  5. def apply(query: Query): QueryBuilder[D]

    Creates a QueryBuilder from the supplied Query

    Creates a QueryBuilder from the supplied Query

    query

    the query to use

    returns

    QueryBuilder[D]

    Definition Classes
    DocumentCollectionQueryDocumentQuery
  6. def as[T](implicit rw: RW[T]): QueryBuilder[T]

    Translates the results to a return type of T

    Translates the results to a return type of T

    T

    return type

    rw

    the RW for conversion

    returns

    QueryBuilder[T]

    Definition Classes
    QueryBuilder
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def byFilter(filter: => Filter, sort: (Field[_], SortDirection)): QueryBuilder[D]

    Creates a QueryBuilder from the supplied filter and sorts the results

    Creates a QueryBuilder from the supplied filter and sorts the results

    filter

    the filter to apply to this collection

    sort

    the sorting to use

    returns

    QueryBuilder[D]

    Definition Classes
    DocumentCollectionQueryDocumentQuery
  9. def byFilter(filter: => Filter): QueryBuilder[D]

    Creates a QueryBuilder from the supplied filter

    Creates a QueryBuilder from the supplied filter

    filter

    the filter to apply to this collection

    returns

    QueryBuilder[D]

    Definition Classes
    DocumentCollectionQueryDocumentQuery
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. val converter: (Json) => D
    Definition Classes
    QueryBuilder
  12. def count: IO[Int]

    Streams the result to return a count.

    Streams the result to return a count. A query that generates a count would be more efficient.

    Definition Classes
    QueryBuilder
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def first: IO[Option[D]]

    The first result from the stream if there are any results.

    The first result from the stream if there are any results.

    Definition Classes
    QueryBuilder
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def iterator: IO[Iterator[D]]
    Definition Classes
    QueryBuilder
  20. def last: IO[Option[D]]

    The last result from the stream if there are any results.

    The last result from the stream if there are any results.

    Definition Classes
    QueryBuilder
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  24. def one: IO[D]

    Retrieves exactly one result from the query.

    Retrieves exactly one result from the query. If there is zero or more than one an exception will be thrown.

    returns

    IO[R]

    Definition Classes
    QueryBuilder
  25. def process(processor: (DBQueue, D) => IO[DBQueue], batchSize: Int = 1000): IO[ProcessStats]

    Process through the stream with the ability to batch queue db inserts, upserts, and deletes.

    Process through the stream with the ability to batch queue db inserts, upserts, and deletes.

    processor

    the function to handle processing the items in the stream

    batchSize

    the maximum records to hold in memory for a specific collection and operation

    returns

    IO[ProcessStats]

    Definition Classes
    QueryBuilder
  26. val query: Query
    Definition Classes
    QueryBuilder
  27. def stream: Stream[IO, D]

    Creates a Stream to get all the results from the query

    Creates a Stream to get all the results from the query

    returns

    fs2.Stream[IO, R]

    Definition Classes
    QueryBuilder
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    QueryBuilder → AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. def withRef(f: (DocumentRef[D, DocumentModel[D]]) => Unit): QueryBuilder[D]

    Receives a DocumentRef in order to create a DSL query.

    Receives a DocumentRef in order to create a DSL query.

    f

    the function to create the query

    returns

    QueryBuilder[D]

    Definition Classes
    DocumentCollectionQueryDocumentQuery

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from DocumentQuery[D]

Inherited from QueryBuilder[D]

Inherited from AnyRef

Inherited from Any

Ungrouped