Class Mongo::Operation::ParallelScan::Result
In: lib/mongo/operation/parallel_scan/result.rb
Parent: Operation::Result

Defines custom behavior of results in a parallel scan.

@since 2.0.0

Methods

Constants

CURSORS = 'cursors'.freeze   The name of the cursors field in the result.

@since 2.0.0

Public Instance methods

Get all the cursor ids from the result.

@example Get the cursor ids.

  result.cursor_ids

@return [ Array<Integer> ] The cursor ids.

@since 2.0.0

Get the documents from parallel scan.

@example Get the documents.

  result.documents

@return [ Array<BSON::Document> ] The documents.

@since 2.0.0

[Validate]