- deleteMany($this$deleteMany, filter, options) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
- deleteMany($this$deleteMany, filters, options) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
- deleteMany($this$deleteMany, clientSession, filter, options) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
- deleteMany($this$deleteMany, clientSession, filters, options) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
- deleteOne($this$deleteOne, filter) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not
modified.
- deleteOne($this$deleteOne, filters) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not
modified.
- deleteOne($this$deleteOne, clientSession, filter) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not
modified.
- deleteOne($this$deleteOne, clientSession, filters) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not
modified.
- deleteOneById($this$deleteOneById, id) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Removes at most one document from the id parameter. If no documents match, the collection is not
modified.
- deleteOneById($this$deleteOneById, clientSession, id) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Removes at most one document from the id parameter. If no documents match, the collection is not
modified.
- descendingSort($this$descendingSort, properties) - Static method in class org.litote.kmongo.FindIterablesKt
-
Sets the sort criteria with specified descending properties to apply to the query.
- distinct($this$distinct) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing only distinct elements from the given collection.
- distinctBy($this$distinctBy, selector) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing only elements from the given collection
having distinct keys returned by the given
selector function.
- DistinctIterablesKt - Class in org.litote.kmongo
-
- DistinctIterablesKt() - Constructor for class org.litote.kmongo.DistinctIterablesKt
-
- drop($this$drop, n) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing all elements except first
n elements.
- dropIndex($this$dropIndex, keys) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Drops the index given the keys used to create it.
- dropIndex($this$dropIndex, clientSession, keys) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Drops the index given the keys used to create it.
- dropIndexOfKeys($this$dropIndexOfKeys, json) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Drops the index given the keys used to create it.
- dropIndexOfKeys($this$dropIndexOfKeys, clientSession, json) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Drops the index given the keys used to create it.
- dropWhile($this$dropWhile, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing all elements except first elements that satisfy the given
predicate.
- elementAt($this$elementAt, index) - Static method in class kotlin.collections.KMongoIterableKt
-
- elementAtOrElse($this$elementAtOrElse, index, defaultValue) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns an element at the given
index or the result of calling the
defaultValue function if the
index is out of bounds of this collection.
- elementAtOrNull($this$elementAtOrNull, index) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns an element at the given
index or
null if the
index is out of bounds of this collection.
- ensureIndex($this$ensureIndex, keys, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Create an index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- ensureIndex($this$ensureIndex, properties, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Create an ascending index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- ensureIndex($this$ensureIndex, keys, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Create an index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- ensureIndex($this$ensureIndex, clientSession, keys, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Create an index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- ensureIndex($this$ensureIndex, clientSession, properties, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Create an ascending index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- ensureIndex($this$ensureIndex, clientSession, keys, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Create an index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- ensureUniqueIndex($this$ensureUniqueIndex, properties, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Create an IndexOptions.unique index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- ensureUniqueIndex($this$ensureUniqueIndex, clientSession, properties, indexOptions) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Create an IndexOptions.unique index with the given keys and options.
If the creation of the index is not doable because an index with the same keys but with different IndexOptions
already exists, then drop the existing index and create a new one.
- evaluate($this$evaluate, expression) - Static method in class org.litote.kmongo.MongoIterablesKt
-
Evaluates the current MongoIterable given the
expression of Sequences.
- filter($this$filter, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing only elements matching the given
predicate.
- filter($this$filter, filter) - Static method in class org.litote.kmongo.DistinctIterablesKt
-
Sets the query filter to apply to the query.
- filter($this$filter, filter) - Static method in class org.litote.kmongo.FindIterablesKt
-
Sets the query filter to apply to the query.
- filter($this$filter, filter) - Static method in class org.litote.kmongo.MapReduceIterablesKt
-
Sets the query filter to apply to the query.
- filterIndexed($this$filterIndexed, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing only elements matching the given
predicate.
- filterIndexedTo($this$filterIndexedTo, destination, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
- filterIsInstance($this$filterIsInstance, klass) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing all elements that are instances of specified class.
- filterIsInstanceTo($this$filterIsInstanceTo, destination, klass) - Static method in class kotlin.collections.KMongoIterableKt
-
Appends all elements that are instances of specified class to the given
destination.
- filterNot($this$filterNot, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing all elements not matching the given
predicate.
- filterNotNull($this$filterNotNull) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list containing all elements that are not null.
- filterNotNullTo($this$filterNotNullTo, destination) - Static method in class kotlin.collections.KMongoIterableKt
-
Appends all elements that are not
null to the given
destination.
- filterNotTo($this$filterNotTo, destination, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
- filterTo($this$filterTo, destination, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
- find($this$find, filter) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Finds all documents in the collection.
- find($this$find, filters) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Finds all documents in the collection.
- find($this$find, clientSession, filter) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Finds all documents in the collection.
- find($this$find, clientSession, filters) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Finds all documents in the collection.
- FindIterablesKt - Class in org.litote.kmongo
-
- FindIterablesKt() - Constructor for class org.litote.kmongo.FindIterablesKt
-
- findOne($this$findOne, filter) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Finds the first document that match the filter in the collection.
- findOne($this$findOne, filter) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Finds the first document that match the filter in the collection.
- findOne($this$findOne, filters) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Finds the first document that match the filters in the collection.
- findOne($this$findOne, clientSession, filter) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Finds the first document that match the filter in the collection.
- findOne($this$findOne, clientSession, filter) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Finds the first document that match the filter in the collection.
- findOne($this$findOne, clientSession, filters) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Finds the first document that match the filters in the collection.
- findOneAndDelete($this$findOneAndDelete, filter, options) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Atomically find a document and remove it.
- findOneAndDelete($this$findOneAndDelete, clientSession, filter, options) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Atomically find a document and remove it.
- findOneAndReplace($this$findOneAndReplace, filter, replacement, options) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Atomically find a document and replace it.
- findOneAndReplace($this$findOneAndReplace, clientSession, filter, replacement, options) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Atomically find a document and replace it.
- findOneAndUpdate($this$findOneAndUpdate, filter, update, options) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Atomically find a document and update it.
- findOneAndUpdate($this$findOneAndUpdate, clientSession, filter, update, options) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Atomically find a document and update it.
- findOneById($this$findOneById, id) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Finds the document that match the id parameter.
- findOneById($this$findOneById, clientSession, id) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Finds the document that match the id parameter.
- first($this$first, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the first element matching the given
predicate.
- firstOrNull($this$firstOrNull) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the first element, or null if the collection is empty.
- firstOrNull($this$firstOrNull, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the first element matching the given
predicate, or
null if element was not found.
- flatMap($this$flatMap, transform) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a single list of all elements yielded from results of
transform function being invoked on each element of original collection.
- flatMapTo($this$flatMapTo, destination, transform) - Static method in class kotlin.collections.KMongoIterableKt
-
Appends all elements yielded from results of
transform function being invoked on each element of original collection, to the given
destination.
- flatten($this$flatten) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a single list of all elements from all collections in the given collection.
- fold($this$fold, initial, operation) - Static method in class kotlin.collections.KMongoIterableKt
-
Accumulates value starting with
initial value and applying
operation from left to right to current accumulator value and each element.
- foldIndexed($this$foldIndexed, initial, operation) - Static method in class kotlin.collections.KMongoIterableKt
-
Accumulates value starting with
initial value and applying
operation from left to right
to current accumulator value and each element with its index in the original collection.
- forEach($this$forEach, action) - Static method in class kotlin.collections.KMongoIterableKt
-
- forEachIndexed($this$forEachIndexed, action) - Static method in class kotlin.collections.KMongoIterableKt
-
Performs the given
action on each element, providing sequential index with the element.
- save($this$save, document) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Save the document.
If the document has no id field, or if the document has a null id value, insert the document.
Otherwise, call
replaceOneById with upsert true.
- save($this$save, clientSession, document) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Save the document.
If the document has no id field, or if the document has a null id value, insert the document.
Otherwise, call
replaceOneById with upsert true.
- scope($this$scope, scope) - Static method in class org.litote.kmongo.MapReduceIterablesKt
-
Sets the global variables that are accessible in the map, reduce and finalize functions.
- shuffled($this$shuffled) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a new list with the elements of this list randomly shuffled.
- shuffled($this$shuffled, random) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a new list with the elements of this list randomly shuffled
using the specified
random instance as the source of randomness.
- single($this$single) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the single element, or throws an exception if the collection is empty or has more than one element.
- single($this$single, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the single element matching the given
predicate, or throws exception if there is no or more than one matching element.
- singleOrNull($this$singleOrNull) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns single element, or null if the collection is empty or has more than one element.
- singleOrNull($this$singleOrNull, predicate) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the single element matching the given
predicate, or
null if element was not found or more than one element was found.
- sort($this$sort, sort) - Static method in class org.litote.kmongo.FindIterablesKt
-
Sets the sort criteria to apply to the query.
- sort($this$sort, sort) - Static method in class org.litote.kmongo.MapReduceIterablesKt
-
Sets the sort criteria to apply to the query.
- sorted($this$sorted) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list of all elements sorted according to their natural sort order.
- sortedBy($this$sortedBy, selector) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list of all elements sorted according to natural sort order of the value returned by specified
selector function.
- sortedByDescending($this$sortedByDescending, selector) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list of all elements sorted descending according to natural sort order of the value returned by specified
selector function.
- sortedDescending($this$sortedDescending) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list of all elements sorted descending according to their natural sort order.
- sortedWith($this$sortedWith, comparator) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a list of all elements sorted according to the specified
comparator.
- subtract($this$subtract, other) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a set containing all elements that are contained by this collection and not contained by the specified collection.
- sumBy($this$sumBy, selector) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all values produced by
selector function applied to each element in the collection.
- sumByDouble($this$sumByDouble, selector) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all values produced by
selector function applied to each element in the collection.
- sumOfByte($this$sum) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all elements in the collection.
- sumOfDouble($this$sum) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all elements in the collection.
- sumOfFloat($this$sum) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all elements in the collection.
- sumOfInt($this$sum) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all elements in the collection.
- sumOfLong($this$sum) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all elements in the collection.
- sumOfShort($this$sum) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns the sum of all elements in the collection.
- union($this$union, other) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a set containing all distinct elements from both collections.
- unzip($this$unzip) - Static method in class kotlin.collections.KMongoIterableKt
-
Returns a pair of lists, where
first list is built from the first values of each pair from this collection,
second list is built from the second values of each pair from this collection.
- updateMany($this$updateMany, filter, update, updateOptions) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Update all documents in the collection according to the specified arguments.
- updateMany($this$updateMany, filter, updates, updateOptions) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Update all documents in the collection according to the specified arguments.
- updateMany($this$updateMany, clientSession, filter, update, updateOptions) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Update all documents in the collection according to the specified arguments.
- updateMany($this$updateMany, clientSession, filter, updates, updateOptions) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Update all documents in the collection according to the specified arguments.
- updateOne($this$updateOne, filter, update, options) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Update a single document in the collection according to the specified arguments.
- updateOne($this$updateOne, filter, update, options, updateOnlyNotNullProperties) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Update a single document in the collection according to the specified arguments.
- updateOne($this$updateOne, filter, target, options, updateOnlyNotNullProperties) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Update a single document in the collection according to the specified arguments.
- updateOne($this$updateOne, filter, updates, updateOptions) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Update a single document in the collection according to the specified arguments.
- updateOne($this$updateOne, clientSession, filter, update, options) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Update a single document in the collection according to the specified arguments.
- updateOne($this$updateOne, clientSession, filter, update, options, updateOnlyNotNullProperties) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Update a single document in the collection according to the specified arguments.
- updateOne($this$updateOne, clientSession, filter, target, options, updateOnlyNotNullProperties) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Update a single document in the collection according to the specified arguments.
- updateOne($this$updateOne, clientSession, filter, updates, updateOptions) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Update a single document in the collection according to the specified arguments.
- updateOneById($this$updateOneById, id, update, options, updateOnlyNotNullProperties) - Static method in class org.litote.kmongo.MongoCollectionsKt
-
Update a single document in the collection according to the specified arguments.
- updateOneById($this$updateOneById, clientSession, id, update, options, updateOnlyNotNullProperties) - Static method in class org.litote.kmongo.MongoCollectionsWithClientSessionKt
-
Update a single document in the collection according to the specified arguments.
- useCursor($this$useCursor, block) - Static method in class kotlin.collections.KMongoIterableKt
-
Utility method - this is not part of the KMongo public API.