TermBucket

data class TermBucket<T>(val key: T & Any, val docCount: Long, val docCountErrorUpperBound: Long? = null, val aggs: Map<String, AggregationResult> = emptyMap()) : KeyedBucket<T>

Constructors

Link copied to clipboard
fun <T> TermBucket(key: T & Any, docCount: Long, docCountErrorUpperBound: Long? = null, aggs: Map<String, AggregationResult> = emptyMap())

Functions

Link copied to clipboard
inline fun <A : AggregationResult> agg(name: String): A
Link copied to clipboard
inline fun <A : AggregationResult> aggIfExists(name: String): A?

Properties

Link copied to clipboard
open override val aggs: Map<String, AggregationResult>
Link copied to clipboard
open override val docCount: Long
Link copied to clipboard
Link copied to clipboard
open override val key: T & Any