Class AggregationKey<A>

  • Type Parameters:
    A - The type of result for this aggregation.

    public final class AggregationKey<A>
    extends Object
    A key allowing to retrieve an aggregation from the search result.
    See Also:
    SearchResult.aggregation(AggregationKey)
    • Method Detail

      • of

        public static <A> AggregationKey<A> of​(String name)
        Type Parameters:
        A - The type of result for this aggregation.
        Parameters:
        name - The name of the aggregation. All root aggregation names must be unique within a single query.
        Returns:
        A new aggregation key.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object