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

Specifies which array elements should be updated by UpdateQuery.filter.

Link copied to clipboard
class BypassDocumentValidationOption(val bypassDocumentValidation: Boolean, context: BsonContext) : AbstractOption

Whether this operation is allowed to bypass document validation.

Link copied to clipboard
class CappedMaxOption(val max: Long, context: BsonContext) : AbstractOption

The maximum number of documents in a capped collection.

Link copied to clipboard
class CappedOption(val capped: Boolean, context: BsonContext) : AbstractOption

Whether this collection is a capped collection.

Link copied to clipboard
class CappedSizeOption(val sizeBytes: Long, context: BsonContext) : AbstractOption

The maximum size of a capped collection.

Link copied to clipboard

User-defined message associated with an operation, which is repeated in the logs.

Link copied to clipboard

Specifies which array elements should be updated by UpdateQuery.filter.

Link copied to clipboard

Whether this operation is allowed to bypass document validation.

Link copied to clipboard
interface HasCapped : Options

Whether this collection is a capped collection.

Link copied to clipboard
interface HasComment : Options

User-defined message associated with an operation, which is repeated in the logs.

Link copied to clipboard
interface HasLimit : Options

Limits the number of elements returned by a query.

Link copied to clipboard
interface HasMaxTime : Options

Maximum duration spent processing the request.

Link copied to clipboard
interface HasOrdered : Options

Specifies whether operations in a bulk are independent.

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 HasSkip : Options

Number of documents to skip before processing the request.

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

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

Link copied to clipboard

Specifies validation rules for documents in a collection.

Link copied to clipboard

Consistency guarantees for this request.

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: 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
class OrderedOption(val ordered: Boolean, context: BsonContext) : AbstractOption

Whether the operations in this bulk are independent.

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

Specifies how MongoDB reacts when a document doesn't pass validation.

Link copied to clipboard

Specifies the validation action in a collection.

Link copied to clipboard

Specifies how strictly MongoDB applies the validation rules.

Link copied to clipboard

Specifies the validation level in a collection.

Link copied to clipboard
class ValidatorOption(val validator: BsonNode, context: BsonContext) : AbstractOption

Specifies a validator for documents in a collection.

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: 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.