Package fr.gouv.vitam.common.database.server.elasticsearch

# Class ElasticsearchFacetResultHelper

java.lang.Object
fr.gouv.vitam.common.database.server.elasticsearch.ElasticsearchFacetResultHelper

public class ElasticsearchFacetResultHelper extends Object
ElasticsearchFacetResultHelper for mapping ES object to Vitam FacetResult

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ElasticsearchFacetResultHelper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static FacetResult`
  `transformFromEsAggregation(String name, co.elastic.clients.elasticsearch._types.aggregations.Aggregate aggregation)`
  Transform an es Aggregation result to a FacetResult object

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ElasticsearchFacetResultHelper

    public ElasticsearchFacetResultHelper()

- ## Method Details

  - ### transformFromEsAggregation

    public static FacetResult transformFromEsAggregation(String name, co.elastic.clients.elasticsearch._types.aggregations.Aggregate aggregation)
    Transform an es Aggregation result to a FacetResult object
    Parameters:
      `aggregation` - es aggregation result
    Returns:
      FacetResult