DistinctQueryBuilder

final case class DistinctQueryBuilder[F[_], T] extends QueryBuilder[[TResult <: <FromJavaObject>] =>> DistinctPublisher[TResult], T]
trait Serializable
trait Product
trait Equals
trait QueryBuilder[[TResult <: <FromJavaObject>] =>> DistinctPublisher[TResult], T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def all: F[Iterable[T]]
def batchSize(size: Int): DistinctQueryBuilder[F, T]

Sets the number of documents to return per batch.

Sets the number of documents to return per batch.

Overrides the Subscription#request value for setting the batch size, allowing for fine grained control over the underlying cursor.

Value parameters:
size

the batch size

Returns:

DistinctQueryBuilder

Since:

1.8

def boundedStream(capacity: Int): Stream[F, T]
def collation(collation: Collation): DistinctQueryBuilder[F, T]

Sets the collation options

Sets the collation options

Value parameters:
collation

the collation options to use

Returns:

DistinctQueryBuilder

Since:

1.3

def filter(filter: Bson): DistinctQueryBuilder[F, T]

Sets the query filter to apply to the query.

Sets the query filter to apply to the query.

Value parameters:
filter

the filter.

Returns:

DistinctQueryBuilder

def filter(filters: Filter): DistinctQueryBuilder[F, T]
def first: F[Option[T]]
def maxTime(duration: Duration): DistinctQueryBuilder[F, T]

Sets the maximum execution time on the server for this operation.

Sets the maximum execution time on the server for this operation.

Value parameters:
duration

the max time

Returns:

DistinctQueryBuilder

def stream: Stream[F, T]

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product