Class SettingsConfig.Builder
java.lang.Object
org.elasticsearch.client.transform.transforms.SettingsConfig.Builder
- Enclosing class:
- SettingsConfig
public static class SettingsConfig.Builder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SettingsConfig
build()
SettingsConfig.Builder
setDatesAsEpochMillis(java.lang.Boolean datesAsEpochMillis)
Whether to write the output of a date aggregation as millis since epoch or as formatted string (ISO format).SettingsConfig.Builder
setMaxPageSearchSize(java.lang.Integer maxPageSearchSize)
Sets the paging maximum paging maxPageSearchSize that transform can use when pulling the data from the source index.SettingsConfig.Builder
setRequestsPerSecond(java.lang.Float docsPerSecond)
Sets the docs per second that transform can use when pulling the data from the source index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setMaxPageSearchSize
Sets the paging maximum paging maxPageSearchSize that transform can use when pulling the data from the source index. If OOM is triggered, the paging maxPageSearchSize is dynamically reduced so that the transform can continue to gather data.- Parameters:
maxPageSearchSize
- Integer value between 10 and 10_000- Returns:
- the
SettingsConfig.Builder
with the paging maxPageSearchSize set.
-
setRequestsPerSecond
Sets the docs per second that transform can use when pulling the data from the source index. This setting throttles transform by issuing queries less often, however processing still happens in batches. A value of 0 disables throttling (default).- Parameters:
docsPerSecond
- Integer value- Returns:
- the
SettingsConfig.Builder
with requestsPerSecond set.
-
setDatesAsEpochMillis
Whether to write the output of a date aggregation as millis since epoch or as formatted string (ISO format). Transforms created before 7.11 write dates as epoch_millis. The new default is ISO string. You can use this setter to configure the old style writing as epoch millis. An explicit `null` resets to default.- Parameters:
datesAsEpochMillis
- true if dates should be written as epoch_millis.- Returns:
- the
SettingsConfig.Builder
with datesAsEpochMilli set.
-
build
-