Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitep committed Jun 24, 2023
1 parent 121c637 commit e3d0038
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,17 @@ object ElasticAggregation {
final def maxAggregation(name: String, field: String): MaxAggregation =
Max(name = name, field = field, missing = None)


/**
* Constructs a type-safe instance of [[zio.elasticsearch.aggregation.MinAggregation]] using the specified parameters.
*
* @param name
* aggregation name
* aggregation name
* @param field
* the type-safe field for which min aggregation will be executed
* the type-safe field for which min aggregation will be executed
* @tparam A
* expected number type
* expected number type
* @return
* an instance of [[zio.elasticsearch.aggregation.MinAggregation]] that represents min aggregation to be performed.
* an instance of [[zio.elasticsearch.aggregation.MinAggregation]] that represents min aggregation to be performed.
*/
final def minAggregation[A: Numeric](name: String, field: Field[_, A]): MinAggregation =
Min(name = name, field = field.toString, missing = None)
Expand All @@ -161,15 +160,15 @@ object ElasticAggregation {
* Constructs an instance of [[zio.elasticsearch.aggregation.MinAggregation]] using the specified parameters.
*
* @param name
* aggregation name
* aggregation name
* @param field
* the field for which min aggregation will be executed
* the field for which min aggregation will be executed
* @return
* an instance of [[zio.elasticsearch.aggregation.MinAggregation]] that represents min aggregation to be performed.
* an instance of [[zio.elasticsearch.aggregation.MinAggregation]] that represents min aggregation to be performed.
*/
final def minAggregation(name: String, field: String): MinAggregation =
Min(name = name, field = field, missing = None)

/**
* Constructs an empty instance of the [[zio.elasticsearch.aggregation.MultipleAggregations]].
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private[elasticsearch] final case class Max(name: String, field: String, missing
sealed trait MinAggregation extends SingleElasticAggregation with HasMissing[MinAggregation] with WithAgg

private[elasticsearch] final case class Min(name: String, field: String, missing: Option[Double])
extends MinAggregation { self =>
extends MinAggregation { self =>
def missing(value: Double): MinAggregation =
self.copy(missing = Some(value))

Expand Down

0 comments on commit e3d0038

Please sign in to comment.