类:Mongo::Operation::Explain::Result
- 继承:
-
操作::结果
- 对象
- 操作::结果
- Mongo::Operation::Explain::Result
- 定义于:
- lib/ Mongo/operation/explain/result.rb
Overview
在带有解释的 find 命令中定义结果的自定义行为。
实例方法摘要折叠
-
#cursor_id ⇒ 0
private
获取游标 ID。
-
# 个documents ⇒ Array<BSON::Document>
获取结果中的文档。
实例方法详细信息
# cursor_id ⇒ 0
此方法是私有 API 的一部分。 您应尽可能避免使用此方法,因为它将来可能会被删除或更改。
获取游标 ID。
34 35 36 |
# File 'lib/ Mongo/operation/explain/result.rb', line 34 def cursor_id 0 end |
# 个documents ⇒ Array<BSON::Document>
获取结果中的文档。
47 48 49 |
# File 'lib/ Mongo/operation/explain/result.rb', line 47 def 文档 回复.文档 end |