kmongo / org.litote.kmongo.reactor / com.mongodb.reactor.client.ReactorMongoCollection / distinct

distinct

fun <reified TResult : Any> ReactorMongoCollection<*>.distinct(fieldName: String): DistinctFlux<TResult> (source)

Gets the distinct values of the specified field name.

Parameters

fieldName - the field name

Parameters

Return
an iterable of distinct values

fun <reified TResult : Any> ReactorMongoCollection<*>.distinct(clientSession: ClientSession, fieldName: String): DistinctFlux<TResult> (source)

Gets the distinct values of the specified field name.

Parameters

clientSession - the client session

fieldName - the field name

Parameters

Return
an iterable of distinct values

fun <reified TResult : Any> ReactorMongoCollection<*>.distinct(fieldName: String, filter: String): DistinctFlux<TResult> (source)

Gets the distinct values of the specified field name.

Parameters

fieldName - the field name

filter - the query filter

Parameters

Return
an iterable of distinct values

fun <reified TResult : Any> ReactorMongoCollection<*>.distinct(clientSession: ClientSession, fieldName: String, filter: String): DistinctFlux<TResult> (source)

Gets the distinct values of the specified field name.

Parameters

clientSession - the client session

fieldName - the field name

filter - the query filter

Parameters

Return
an iterable of distinct values

fun <reified T : Any, reified TResult : Any> ReactorMongoCollection<*>.distinct(field: KProperty1<T, TResult>, filter: Bson = EMPTY_BSON): DistinctFlux<TResult> (source)

Gets the distinct values of the specified field name.

Parameters

field - the field name

filter - the query filter

Parameters

Return
an iterable of distinct values

fun <reified T : Any, reified TResult : Any> ReactorMongoCollection<*>.distinct(clientSession: ClientSession, field: KProperty1<T, TResult>, filter: Bson = EMPTY_BSON): DistinctFlux<TResult> (source)

Gets the distinct values of the specified field name.

Parameters

clientSession - the client session

field - the field name

filter - the query filter

Parameters

Return
an iterable of distinct values