ZIOAggregationsOps

zio.elasticsearch.package$.ZIOAggregationsOps
final implicit class ZIOAggregationsOps[R](zio: RIO[R, ResultWithAggregation])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce an optional result.AggregationResult.

def aggregationAs[A <: AggregationResult](name: String): RIO[R, Option[A]]

Type parameters

A

type of the aggregation to retrieve, must be subtype of result.AggregationResult

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of parameter A.

Attributes

Returns

a RIO effect that, when executed, will produce a Map of the aggregations name and result.AggregationResult.

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of result.AvgAggregationResult.

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of result.CardinalityAggregationResult.

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of result.MaxAggregationResult.

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of result.MinAggregationResult.

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of result.MissingAggregationResult.

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of result.SumAggregationResult.

Value parameters

name

the name of the aggregation to retrieve

Attributes

Returns

a RIO effect that, when executed, will produce the aggregation as instance of result.TermsAggregationResult.