Class AggregationKey<A>

java.lang.Object
org.hibernate.search.engine.search.aggregation.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:
  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • name

      public String name()
      Returns:
      The name passed to of(String).