@API(value=UNSTABLE) public static class OnlineIndexer.Config.Builder extends Object
OnlineIndexer.Config
. These are the mutable configuration parameters used while building indexes and are
designed to be safe to be updated while a build is running.Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
OnlineIndexer.Config |
build()
Build a
OnlineIndexer.Config . |
OnlineIndexer.Config.Builder |
setIncreaseLimitAfter(int increaseLimitAfter)
Set the number of successful range builds before re-increasing the number of records to process in a single
transaction.
|
OnlineIndexer.Config.Builder |
setMaxLimit(int limit)
Set the maximum number of records to process in one transaction.
|
OnlineIndexer.Config.Builder |
setMaxRetries(int maxRetries)
Set the maximum number of times to retry a single range rebuild.
|
OnlineIndexer.Config.Builder |
setProgressLogIntervalMillis(long progressLogIntervalMillis)
Set the minimum time between successful progress logs when building across transactions.
|
OnlineIndexer.Config.Builder |
setRecordsPerSecond(int recordsPerSecond)
Set the maximum number of records to process in a single second.
|
@Nonnull public OnlineIndexer.Config.Builder setMaxLimit(int limit)
OnlineIndexer.DEFAULT_LIMIT
= .limit
- the maximum number of records to process in one transaction@Nonnull public OnlineIndexer.Config.Builder setMaxRetries(int maxRetries)
OnlineIndexer.DEFAULT_MAX_RETRIES
= .maxRetries
- the maximum number of times to retry a single range rebuild@Nonnull public OnlineIndexer.Config.Builder setRecordsPerSecond(int recordsPerSecond)
OnlineIndexer.DEFAULT_RECORDS_PER_SECOND
= .recordsPerSecond
- the maximum number of records to process in a single second@Nonnull public OnlineIndexer.Config.Builder setProgressLogIntervalMillis(long progressLogIntervalMillis)
progressLogIntervalMillis
- the number of milliseconds to wait between successful logs@Nonnull public OnlineIndexer.Config.Builder setIncreaseLimitAfter(int increaseLimitAfter)
OnlineIndexer.Config.getMaxLimit()
.
By default this is OnlineIndexer.DO_NOT_RE_INCREASE_LIMIT
, which means it will not re-increase after successes.increaseLimitAfter
- the number of successful range builds before increasing the number of records
processed in a single transaction@Nonnull public OnlineIndexer.Config build()
OnlineIndexer.Config
.OnlineIndexer