DEFAULT_BATCH_SIZE
Constructor and Description |
---|
BasicBatchCursor() |
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize() |
void |
remove() |
void |
setBatchSize(int n)
Sets the configured batch size when retrieving more elements from the
database.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public void setBatchSize(int n) throws IllegalArgumentException
Cursor
Sets the configured batch size when retrieving more elements from the database. That is, no more elements will be loaded into memory than the configured batch size. Note that the new batch size will only take effect once the current batch is exhausted.
The default batch size is 100.
setBatchSize
in interface Cursor<T extends Pojo>
n
- The number of results to fetch from storage in a single batch.IllegalArgumentException
- If n
is < 1public int getBatchSize()
getBatchSize
in interface Cursor<T extends Pojo>
setBatchSize
or
BatchCursor#DEFAULT_BATCH_SIZE
if it was never set
explicitly.Copyright © 2017. All rights reserved.