Package com.mongodb.client
Interface ListSearchIndexesIterable<TResult>
- Type Parameters:
TResult
- The type of the result.
- All Superinterfaces:
Iterable<TResult>
,MongoIterable<TResult>
Iterable for listing Atlas Search indexes.
This interface contains aggregate options and that of applied to
$listSearchIndexes
operation.- Since:
- 4.11
- MongoDB documentation
- ListSearchIndexes
- Since server release
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionallowDiskUse
(Boolean allowDiskUse) Enables writing to temporary files.batchSize
(int batchSize) Sets the number of documents to return per batch.Sets the collation optionsSets the comment for this operation.Sets the comment for this operation.explain()
Explain the execution plan for this operation with the server's default verbosity level.explain
(ExplainVerbosity verbosity) Explain the execution plan for this operation with the given verbosity level.<E> E
Explain the execution plan for this operation with the server's default verbosity level.<E> E
explain
(Class<E> explainResultClass, ExplainVerbosity verbosity) Explain the execution plan for this operation with the given verbosity level.Sets the maximum execution time on the server for this operation.Sets the index name for this operation.timeoutMode
(TimeoutMode timeoutMode) Sets the timeoutMode for the cursor.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
name
Sets the index name for this operation.- Parameters:
indexName
- the index name.- Returns:
- this.
-
allowDiskUse
Enables writing to temporary files. A null value indicates that it's unspecified.- Parameters:
allowDiskUse
- true if writing to temporary files is enabled.- Returns:
- this.
- MongoDB documentation
- Aggregation
-
batchSize
Sets the number of documents to return per batch.- Specified by:
batchSize
in interfaceMongoIterable<TResult>
- Parameters:
batchSize
- the batch size.- Returns:
- this.
- MongoDB documentation
- Batch Size
-
maxTime
Sets the maximum execution time on the server for this operation.- Parameters:
maxTime
- the max time.timeUnit
- the time unit, which may not be null.- Returns:
- this.
- MongoDB documentation
- Max Time
-
collation
Sets the collation optionsA null value represents the server default.
- Parameters:
collation
- the collation options to use- Returns:
- this
-
comment
Sets the comment for this operation. A null value means no comment is set.- Parameters:
comment
- the comment.- Returns:
- this
-
comment
Sets the comment for this operation. A null value means no comment is set.- Parameters:
comment
- the comment.- Returns:
- this.
-
timeoutMode
Sets the timeoutMode for the cursor.Requires the
timeout
to be set, either in theMongoClientSettings
, viaMongoDatabase
or viaMongoCollection
- Parameters:
timeoutMode
- the timeout mode- Returns:
- this
- Since:
- 5.2
-
explain
Document explain()Explain the execution plan for this operation with the server's default verbosity level.- Returns:
- the execution plan.
- MongoDB documentation
- reference/command/explain/
-
explain
Explain the execution plan for this operation with the given verbosity level.- Parameters:
verbosity
- the verbosity of the explanation.- Returns:
- the execution plan.
- MongoDB documentation
- reference/command/explain/
-
explain
Explain the execution plan for this operation with the server's default verbosity level.- Type Parameters:
E
- the type of the document class.- Parameters:
explainResultClass
- the document class to decode into.- Returns:
- the execution plan.
- MongoDB documentation
- reference/command/explain/
-
explain
Explain the execution plan for this operation with the given verbosity level.- Type Parameters:
E
- the type of the document class.- Parameters:
explainResultClass
- the document class to decode into.verbosity
- the verbosity of the explanation.- Returns:
- the execution plan.
- MongoDB documentation
- reference/command/explain/
-