AggValue

sealed class AggValue<T> : ObjExpression

Represents value source for an aggregation:

  • Field takes values from a field.

  • Script gets values as a script result.

  • ValueScript combines a field with a script. There is special variable _value that contains field value.

Types

Link copied to clipboard
data class Field<T>(val field: FieldOperations<T>) : AggValue<T>
Link copied to clipboard
data class Script<T>(val script: Script, val type: FieldType<*, T>) : AggValue<T>
Link copied to clipboard
data class ValueScript<T>(val field: FieldOperations<*>, val script: Script, val type: FieldType<*, T>) : AggValue<T>

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
Link copied to clipboard
Link copied to clipboard
abstract fun getValueType(): FieldType<*, T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun serializeTerm(v: T & Any): Any

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard