ScriptedMetricAgg

data class ScriptedMetricAgg<T>(val resultProcessor: (Deserializer.ObjectCtx) -> T, val initScript: Script? = null, val mapScript: Script, val combineScript: Script? = null, val reduceScript: Script? = null, val params: Params = Params()) : MetricAggregation<ScriptedMetricAggResult<T>>

Constructors

Link copied to clipboard
fun <T> ScriptedMetricAgg(resultProcessor: (Deserializer.ObjectCtx) -> T, initScript: Script? = null, mapScript: Script, combineScript: Script? = null, reduceScript: Script? = null, params: Params = Params())

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun accept(ctx: Serializer.ObjectCtx, compiler: BaseSearchQueryCompiler)
Link copied to clipboard
open fun children(): Iterator<Expression<*>>?
Link copied to clipboard
open override fun clone(): ScriptedMetricAgg<T>
Link copied to clipboard

Processes corresponding aggregation response.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun visit(ctx: Serializer.ObjectCtx, compiler: BaseSearchQueryCompiler)

Properties

Link copied to clipboard
val combineScript: Script? = null
Link copied to clipboard
val initScript: Script? = null
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
val reduceScript: Script? = null
Link copied to clipboard