Class ShardIngestionState
java.lang.Object
org.opensearch.client.opensearch.ingestion.ShardIngestionState
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ShardIngestionState.Builder,ShardIngestionState>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ShardIngestionState
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ShardIngestionState.Builder,ShardIngestionState>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShardIngestionState> Json deserializer forShardIngestionState -
Method Summary
Modifier and TypeMethodDescriptionfinal StringIndicates the shard pointer from where the poller will resume during shard recovery.static ShardIngestionState.Builderbuilder()booleanfinal ErrorPolicyIndicates the policy used to handle failed messages.inthashCode()static ShardIngestionStatefinal BooleanIndicates if the poller has been paused.final PollerStateIndicates the current state of the poller.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integershard()The shard number.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final BooleanIndicates if a write block has been created.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 forShardIngestionState
-
-
Method Details
-
of
public static ShardIngestionState of(Function<ShardIngestionState.Builder, ObjectBuilder<ShardIngestionState>> fn) -
batchStartPointer
Indicates the shard pointer from where the poller will resume during shard recovery.API name:
batch_start_pointer -
errorPolicy
Indicates the policy used to handle failed messages.API name:
error_policy -
pollerPaused
Indicates if the poller has been paused.API name:
poller_paused -
pollerState
Indicates the current state of the poller.API name:
poller_state -
shard
The shard number.API name:
shard -
writeBlockEnabled
Indicates if a write block has been created.API name:
write_block_enabled -
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<ShardIngestionState.Builder,ShardIngestionState> - Returns:
- a new builder instance.
-
builder
-
setupShardIngestionStateDeserializer
protected static void setupShardIngestionStateDeserializer(ObjectDeserializer<ShardIngestionState.Builder> op) -
hashCode
public int hashCode() -
equals
-