final class ListIndexesIterableImpl<TResult> extends MongoIterableImpl<TResult> implements ListIndexesIterable<TResult>
| Modifier and Type | Field and Description |
|---|---|
private CodecRegistry |
codecRegistry |
private long |
maxTimeMS |
private MongoNamespace |
namespace |
private java.lang.Class<TResult> |
resultClass |
| Constructor and Description |
|---|
ListIndexesIterableImpl(ClientSession clientSession,
MongoNamespace namespace,
java.lang.Class<TResult> resultClass,
CodecRegistry codecRegistry,
ReadPreference readPreference,
OperationExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
(package private) ReadOperation<BatchCursor<TResult>> |
asReadOperation() |
ListIndexesIterable<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
ListIndexesIterable<TResult> |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
first, forEach, getBatchSize, getClientSession, getExecutor, getReadConcern, getReadPreference, into, iterator, map, toBsonDocumentOrNull, toBsonDocumentOrNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprivate final MongoNamespace namespace
private final java.lang.Class<TResult> resultClass
private final CodecRegistry codecRegistry
private long maxTimeMS
ListIndexesIterableImpl(ClientSession clientSession, MongoNamespace namespace, java.lang.Class<TResult> resultClass, CodecRegistry codecRegistry, ReadPreference readPreference, OperationExecutor executor)
public ListIndexesIterable<TResult> maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
ListIndexesIterablemaxTime in interface ListIndexesIterable<TResult>maxTime - the max timetimeUnit - the time unit, which may not be nullpublic ListIndexesIterable<TResult> batchSize(int batchSize)
MongoIterablebatchSize in interface ListIndexesIterable<TResult>batchSize in interface MongoIterable<TResult>batchSize in class MongoIterableImpl<TResult>batchSize - the batch sizeReadOperation<BatchCursor<TResult>> asReadOperation()
asReadOperation in class MongoIterableImpl<TResult>