Package-level declarations

Types

Link copied to clipboard
abstract class AbstractCompoundOption(val name: String, content: BsonNode, val context: <Error class: unknown class>) : AbstractOption

Utility to easily implement options that contain a document as content.

Link copied to clipboard
abstract class AbstractOption(val name: String, val context: <Error class: unknown class>) : AbstractBsonNode, Option

Helper to implement Option.

Link copied to clipboard
class LimitOption(val limit: Long, val context: <Error class: unknown class>) : AbstractOption

Maximum number of elements analyzed by this operation.

Link copied to clipboard
class MaxTimeOption(val timeout: <Error class: unknown class>, val context: <Error class: unknown class>) : AbstractOption

Maximum timeout spent processing the request.

Link copied to clipboard
interface Option : BsonNode

Additional parameters that are passed to MongoDB operations.

Link copied to clipboard

Parent interface for all option containers.

Link copied to clipboard

The read concern allows configuring the level of consistency required for each operation.

Link copied to clipboard
class ReadConcernOption(val concern: ReadConcern, val context: <Error class: unknown class>) : AbstractOption

Specifies the read concern for an operation.

Link copied to clipboard

The read preference allows configuring which instance the request will be sent to.

Link copied to clipboard
class ReadPreferenceOption(val concern: ReadPreference, val context: <Error class: unknown class>) : AbstractOption

Specifies the read preference for an operation.

Link copied to clipboard
class SkipOption(val skip: Long, val context: <Error class: unknown class>) : AbstractOption

Number of documents to skip before processing the request.

Link copied to clipboard
class SortOption<Document : Any>(config: SortOptionDsl<Document>, val context: <Error class: unknown class>) : AbstractCompoundOption

Describes in which order elements should be returned.

Link copied to clipboard

DSL to describe a sort order.

Link copied to clipboard
interface WithLimit : Options

Limits the number of elements returned by a query.

Link copied to clipboard
interface WithMaxTime : Options

Maximum duration spent processing the request.

Link copied to clipboard

Consistency guarantees for this request.

Link copied to clipboard

Declares which nodes should receive the request.

Link copied to clipboard
interface WithSkip : Options

Number of documents to skip before processing the request.

Link copied to clipboard
interface WithSort<Document : Any> : Options

Describes in which order elements should be returned by the query.

Link copied to clipboard

Consistency guarantees for this request.

Link copied to clipboard
sealed class WriteAcknowledgment

Describes how many nodes must acknowledge this write operation.

Link copied to clipboard
class WriteConcern(val acknowledgment: WriteAcknowledgment? = null, val writeToJournal: Boolean? = null, val writeTimeout: <Error class: unknown class>? = null)

The level of acknowledgment requested from a write operation.

Link copied to clipboard
class WriteConcernOption(val concern: WriteConcern, val context: <Error class: unknown class>) : AbstractOption

Specifies the write concern for an operation.

Functions

Link copied to clipboard
inline fun <O : Option> Options.option(): O?

Accesses the value of a given Option.