Class SlicedScroll
- java.lang.Object
-
- org.opensearch.client.opensearch._types.SlicedScroll
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SlicedScroll.Builder,SlicedScroll>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class SlicedScroll extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<SlicedScroll.Builder,SlicedScroll>
The configuration for a sliced scroll request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlicedScroll.BuilderBuilder forSlicedScroll.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SlicedScroll>_DESERIALIZERJson deserializer forSlicedScroll
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlicedScroll.Builderbuilder()booleanequals(java.lang.Object o)java.lang.Stringfield()The field to slice on.inthashCode()intid()Required - The ID of the slice.intmax()Required - The maximum number of slices.static SlicedScrollof(java.util.function.Function<SlicedScroll.Builder,ObjectBuilder<SlicedScroll>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupSlicedScrollDeserializer(ObjectDeserializer<SlicedScroll.Builder> op)SlicedScroll.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<SlicedScroll> _DESERIALIZER
Json deserializer forSlicedScroll
-
-
Method Detail
-
of
public static SlicedScroll of(java.util.function.Function<SlicedScroll.Builder,ObjectBuilder<SlicedScroll>> fn)
-
field
@Nullable public final java.lang.String field()
The field to slice on.API name:
field
-
id
public final int id()
Required - The ID of the slice.API name:
id
-
max
public final int max()
Required - The maximum number of slices.API name:
max
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public SlicedScroll.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SlicedScroll.Builder,SlicedScroll>- Returns:
- a new builder instance.
-
builder
@Nonnull public static SlicedScroll.Builder builder()
-
setupSlicedScrollDeserializer
protected static void setupSlicedScrollDeserializer(ObjectDeserializer<SlicedScroll.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-