Class IngestionSource
java.lang.Object
org.opensearch.client.opensearch.indices.IngestionSource
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<IngestionSource.Builder,IngestionSource>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class IngestionSource
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<IngestionSource.Builder,IngestionSource>
The pull-based ingestion settings controlling how data is read from streaming sources.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<IngestionSource> Json deserializer forIngestionSource -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanIndicates if all-active ingestion is enabled for this index.static IngestionSource.Builderbuilder()booleanfinal ErrorPolicyDefines the policy for error handling.inthashCode()final IntegerDefines the size of the internal blocking queue in pull-based ingestion.final IntegerDefines the number of processor or writer threads.static IngestionSourceparam()Custom parameters for the ingestion source.final IngestionSourcePointerpointer()API name:pointerAPI name:pointer.init.resetfinal StringSpecifies the offset value or timestamp in milliseconds.final IngestionSourcePollpoll()API name:pollfinal LongThe maximum number of records to retrieve in each poll operation.final IntegerDetermines the Poll timeout value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final IngestionSourceTypetype()The streaming source type.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forIngestionSource
-
-
Method Details
-
of
public static IngestionSource of(Function<IngestionSource.Builder, ObjectBuilder<IngestionSource>> fn) -
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:
param -
pointer
API name:pointer -
pointerInitReset
API name:pointer.init.reset -
pointerInitResetValue
Specifies the offset value or timestamp in milliseconds.API name:
pointer.init.reset.value -
poll
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<IngestionSource.Builder,IngestionSource> - Returns:
- a new builder instance.
-
builder
-
setupIngestionSourceDeserializer
protected static void setupIngestionSourceDeserializer(ObjectDeserializer<IngestionSource.Builder> op) -
hashCode
public int hashCode() -
equals
-