Class IngestionSource.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IngestionSource.Builder
- All Implemented Interfaces:
CopyableBuilder<IngestionSource.Builder,,IngestionSource> MutableBuilder<IngestionSource.Builder,,IngestionSource> ObjectBuilder<IngestionSource>
- Enclosing class:
IngestionSource
public static class IngestionSource.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IngestionSource.Builder,IngestionSource>
Builder for
IngestionSource.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IngestionSource.BuilderIndicates if all-active ingestion is enabled for this index.build()Builds aIngestionSource.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IngestionSource.BuildererrorStrategy(ErrorPolicy value) Defines the policy for error handling.final IngestionSource.BuilderinternalQueueSize(Integer value) Defines the size of the internal blocking queue in pull-based ingestion.final IngestionSource.BuildernumProcessorThreads(Integer value) Defines the number of processor or writer threads.final IngestionSource.BuilderCustom parameters for the ingestion source.final IngestionSource.BuilderCustom parameters for the ingestion source.final IngestionSource.BuilderAPI name:pointerfinal IngestionSource.Builderpointer(IngestionSourcePointer value) API name:pointerfinal IngestionSource.BuilderAPI name:pointer.init.resetfinal IngestionSource.BuilderpointerInitResetValue(String value) Specifies the offset value or timestamp in milliseconds.final IngestionSource.BuilderAPI name:pollfinal IngestionSource.Builderpoll(IngestionSourcePoll value) API name:pollfinal IngestionSource.BuilderpollMaxBatchSize(Long value) The maximum number of records to retrieve in each poll operation.final IngestionSource.BuilderpollTimeout(Integer value) Determines the Poll timeout value.final IngestionSource.Buildertype(IngestionSourceType value) The streaming source type.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<IngestionSource.Builder,IngestionSource> - Returns:
- a new builder instance.
-
allActive
Indicates if all-active ingestion is enabled for this index.API name:
all_active -
errorStrategy
Defines the policy for error handling.API name:
error_strategy -
internalQueueSize
Defines the size of the internal blocking queue in pull-based ingestion.API name:
internal_queue_size -
numProcessorThreads
Defines the number of processor or writer threads.API name:
num_processor_threads -
param
Custom parameters for the ingestion source.API name:
paramAdds all elements of
maptoparam. -
param
Custom parameters for the ingestion source.API name:
paramAdds an entry to
param. -
pointer
API name:pointer -
pointer
@Nonnull public final IngestionSource.Builder pointer(Function<IngestionSourcePointer.Builder, ObjectBuilder<IngestionSourcePointer>> fn) API name:pointer -
pointerInitReset
@Nonnull public final IngestionSource.Builder pointerInitReset(@Nullable IngestionSourcePointerInitReset value) API name:pointer.init.reset -
pointerInitResetValue
Specifies the offset value or timestamp in milliseconds.API name:
pointer.init.reset.value -
poll
API name:poll -
poll
@Nonnull public final IngestionSource.Builder poll(Function<IngestionSourcePoll.Builder, ObjectBuilder<IngestionSourcePoll>> fn) API name:poll -
pollMaxBatchSize
The maximum number of records to retrieve in each poll operation.API name:
poll.max_batch_size -
pollTimeout
Determines the Poll timeout value.API name:
poll.timeout -
type
The streaming source type.API name:
type -
build
Builds aIngestionSource.- Specified by:
buildin interfaceObjectBuilder<IngestionSource>- Throws:
NullPointerException- if some of the required fields are null.
-