Class Slices
java.lang.Object
org.opensearch.client.opensearch._types.Slices
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<Slices.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Slices
extends Object
implements TaggedUnion<Slices.Kind,Object>, PlainJsonSerializable
The slice configuration used to parallelize a process.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Slices.Kind_kind()Get the of the kind of variant held by this object.static Slices.Builderbuilder()Get thecalculationvariant value.count()Get thecountvariant value.booleaninthashCode()booleanIs this variant instance of kindcalculation?booleanisCount()Is this variant instance of kindcount?static Slicesvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Slices.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Slices.Kind,Object>
-
of
-
_toJsonString
-
isCalculation
public boolean isCalculation()Is this variant instance of kindcalculation? -
calculation
Get thecalculationvariant value.- Throws:
IllegalStateException- if the current variant is not thecalculationkind.
-
isCount
public boolean isCount()Is this variant instance of kindcount? -
count
Get thecountvariant value.- Throws:
IllegalStateException- if the current variant is not thecountkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-