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:
SearchResult.aggregation(AggregationKey)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
name()
static <A> AggregationKey<A>
of(String name)
String
toString()
-
-
-
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.
-
name
public String name()
- Returns:
- The name passed to
of(String)
.
-
-