Class ScriptedMetricAggregation
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase
org.opensearch.client.opensearch._types.aggregations.ScriptedMetricAggregation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,AggregationVariant,ToCopyableBuilder<ScriptedMetricAggregation.Builder,ScriptedMetricAggregation>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ScriptedMetricAggregation
extends MetricAggregationBase
implements AggregationVariant, ToCopyableBuilder<ScriptedMetricAggregation.Builder,ScriptedMetricAggregation>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase
MetricAggregationBase.AbstractBuilder<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ScriptedMetricAggregation> Json deserializer forScriptedMetricAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregationvariant kind.builder()final ScriptAPI name:combine_scriptbooleaninthashCode()final ScriptAPI name:init_scriptfinal ScriptAPI name:map_scriptstatic ScriptedMetricAggregationparams()A global object with script parameters forinit,mapandcombinescripts.final ScriptAPI name:reduce_scriptprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupScriptedMetricAggregationDeserializer(ObjectDeserializer<ScriptedMetricAggregation.Builder> op) Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.aggregations.MetricAggregationBase
field, missing, script, serialize, setupMetricAggregationBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.aggregations.AggregationVariant
toAggregationMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forScriptedMetricAggregation
-
-
Method Details
-
of
public static ScriptedMetricAggregation of(Function<ScriptedMetricAggregation.Builder, ObjectBuilder<ScriptedMetricAggregation>> fn) -
_aggregationKind
Aggregationvariant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
combineScript
API name:combine_script -
initScript
API name:init_script -
mapScript
API name:map_script -
params
A global object with script parameters forinit,mapandcombinescripts. It is shared between the scripts.API name:
params -
reduceScript
API name:reduce_script -
serializeInternal
- Overrides:
serializeInternalin classMetricAggregationBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ScriptedMetricAggregation.Builder,ScriptedMetricAggregation> - Returns:
- a new builder instance.
-
builder
-
setupScriptedMetricAggregationDeserializer
protected static void setupScriptedMetricAggregationDeserializer(ObjectDeserializer<ScriptedMetricAggregation.Builder> op) -
hashCode
public int hashCode()- Overrides:
hashCodein classMetricAggregationBase
-
equals
- Overrides:
equalsin classMetricAggregationBase
-