Class PhaseResultsProcessor
- java.lang.Object
-
- org.opensearch.client.opensearch.search_pipeline.PhaseResultsProcessor
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<PhaseResultsProcessor.Kind,PhaseResultsProcessorVariant>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class PhaseResultsProcessor extends java.lang.Object implements TaggedUnion<PhaseResultsProcessor.Kind,PhaseResultsProcessorVariant>, PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhaseResultsProcessor.Builderstatic classPhaseResultsProcessor.KindPhaseResultsProcessorvariant kinds.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<PhaseResultsProcessor>_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description PhaseResultsProcessor(PhaseResultsProcessorVariant value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PhaseResultsProcessorVariant_get()PhaseResultsProcessor.Kind_kind()Get the of the kind of variant held by this object.static PhaseResultsProcessor.Builderbuilder()booleanequals(java.lang.Object o)inthashCode()booleanisNormalizationProcessor()Is this variant instance of kindnormalization-processor?NormalizationPhaseResultsProcessornormalizationProcessor()Get thenormalization-processorvariant value.static PhaseResultsProcessorof(java.util.function.Function<PhaseResultsProcessor.Builder,ObjectBuilder<PhaseResultsProcessor>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupPhaseResultsProcessorDeserializer(ObjectDeserializer<PhaseResultsProcessor.Builder> op)PhaseResultsProcessor.BuildertoBuilder()-
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
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<PhaseResultsProcessor> _DESERIALIZER
-
-
Constructor Detail
-
PhaseResultsProcessor
public PhaseResultsProcessor(PhaseResultsProcessorVariant value)
-
-
Method Detail
-
_kind
public final PhaseResultsProcessor.Kind _kind()
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<PhaseResultsProcessor.Kind,PhaseResultsProcessorVariant>- Returns:
- the variant kind
-
_get
public final PhaseResultsProcessorVariant _get()
- Specified by:
_getin interfaceTaggedUnion<PhaseResultsProcessor.Kind,PhaseResultsProcessorVariant>
-
of
public static PhaseResultsProcessor of(java.util.function.Function<PhaseResultsProcessor.Builder,ObjectBuilder<PhaseResultsProcessor>> fn)
-
isNormalizationProcessor
public boolean isNormalizationProcessor()
Is this variant instance of kindnormalization-processor?
-
normalizationProcessor
public NormalizationPhaseResultsProcessor normalizationProcessor()
Get thenormalization-processorvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not thenormalization-processorkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
@Nonnull public PhaseResultsProcessor.Builder toBuilder()
-
builder
@Nonnull public static PhaseResultsProcessor.Builder builder()
-
setupPhaseResultsProcessorDeserializer
protected static void setupPhaseResultsProcessorDeserializer(ObjectDeserializer<PhaseResultsProcessor.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-