ListIndexesQuery

io.github.zeal18.zio.mongodb.driver.query.ListIndexesQuery
case class ListIndexesQuery[TResult](wrapped: ListIndexesPublisher[TResult]) extends Query[TResult]

Observable interface for ListIndexes.

Attributes

TResult

The type of the result.

wrapped

the underlying java ListIndexesQuery

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Query[TResult]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def batchSize(batchSize: Int): ListIndexesQuery[TResult]

Sets the number of documents to return per batch.

Sets the number of documents to return per batch.

Attributes

batchSize

the batch size

Returns:

this

def comment(comment: String): ListIndexesQuery[TResult]

Sets the comment for this operation. A null value means no comment is set.

Sets the comment for this operation. A null value means no comment is set.

Attributes

comment

the comment

Returns:

this

Note:

Requires MongoDB 4.4 or greater

def comment(comment: BsonValue): ListIndexesQuery[TResult]

Sets the comment for this operation. A null value means no comment is set.

Sets the comment for this operation. A null value means no comment is set.

Attributes

comment

the comment

Returns:

this

Note:

Requires MongoDB 4.4 or greater

def maxTime(duration: Duration): ListIndexesQuery[TResult]

Sets the maximum execution time on the server for this operation.

Sets the maximum execution time on the server for this operation.

Max Time

Attributes

duration

the duration

Returns:

this

override def run: Publisher[TResult]

Runs query returning low level reactive Publisher

Runs query returning low level reactive Publisher

It could be useful for dealing with special cases, otherwise it's recommended to use one of high level run* methods

Attributes

See also:
Definition Classes
override def runHead: Task[Option[TResult]]

Runs query returning the first element

Runs query returning the first element

Attributes

See also:
Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def runToChunk: Task[Chunk[A]]

Runs query to a zio.Chunk

Runs query to a zio.Chunk

NOTE: this method collects all data in memory, use it only for queries with limited capacity

Attributes

See also:
Inherited from:
Query
def runToList: Task[List[A]]

Runs query to a List

Runs query to a List

NOTE: this method collects all data in memory, use it only for queries with limited capacity

Attributes

See also:
Inherited from:
Query
def runToSeq: Task[Seq[A]]

Runs query to a Seq

Runs query to a Seq

NOTE: this method collects all data in memory, use it only for queries with limited capacity

Attributes

See also:
Inherited from:
Query
def runToSet: Task[Set[A]]

Runs query to a Set

Runs query to a Set

NOTE: this method collects all data in memory, use it only for queries with limited capacity

Attributes

See also:
Inherited from:
Query
def runToVector: Task[Vector[A]]

Runs query to a Vector

Runs query to a Vector

NOTE: this method collects all data in memory, use it only for queries with limited capacity

Attributes

See also:
Inherited from:
Query
def runToZStream(qSize: Int): ZStream[Any, Throwable, A]

Runs query to a ZStream

Runs query to a ZStream

Use this method for potentially big or unlimited queries

Attributes

qSize

internal buffer size

See also:
Inherited from:
Query

Deprecated and Inherited methods

def execute: ZStream[Any, Throwable, A]

Attributes

Deprecated
true
Inherited from:
Query
def first(): Task[Option[A]]

Attributes

Deprecated
true
Inherited from:
Query