com.sksamuel.elastic4s.requests.searches.aggs.GlobalAggregation.scala Maven / Gradle / Ivy
The newest version!
package com.sksamuel.elastic4s.requests.searches.aggs
case class GlobalAggregation(name: String,
subaggs: Seq[AbstractAggregation] = Nil,
metadata: Map[String, AnyRef] = Map.empty)
extends Aggregation {
type T = GlobalAggregation
override def subAggregations(aggs: Iterable[AbstractAggregation]): T = copy(subaggs = aggs.toSeq)
override def metadata(map: Map[String, AnyRef]): T = copy(metadata = map)
}