Package-level declarations

Types

Link copied to clipboard
abstract class AbstractCompoundOption(name: String, content: BsonNode, context: BsonContext) : AbstractOption

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

Link copied to clipboard
abstract class AbstractOption(val name: String, context: BsonContext) : AbstractBsonNode, Option

Helper to implement Option.

Link copied to clipboard
class LimitOption(val limit: Long, context: BsonContext) : AbstractOption

Maximum number of elements analyzed by this operation.

Link copied to clipboard
class MaxTimeOption(val timeout: ERROR CLASS: Symbol not found for Duration, context: BsonContext) : 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

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

Specifies the read preference for an operation.

Link copied to clipboard
class SkipOption(val skip: Long, context: BsonContext) : AbstractOption

Number of documents to skip before processing the request.

Link copied to clipboard

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: Symbol not found for Duration?? = null)

The level of acknowledgment requested from a write operation.

Link copied to clipboard

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.