Record Class BucketSpecHandler.CreatedAggregations<T>
java.lang.Object
java.lang.Record
org.graylog.plugins.views.search.searchtypes.pivot.BucketSpecHandler.CreatedAggregations<T>
- Enclosing interface:
- BucketSpecHandler<SPEC_TYPE extends BucketSpec,
AGGREGATION_BUILDER, QUERY_CONTEXT>
-
Constructor Summary
ConstructorsConstructorDescriptionCreatedAggregations(T root, T leaf, List<T> metrics) Creates an instance of aCreatedAggregationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> BucketSpecHandler.CreatedAggregations<T>create(T singleAggregation) static <T> BucketSpecHandler.CreatedAggregations<T>create(T rootAggregation, T leafAggregation) static <T> BucketSpecHandler.CreatedAggregations<T>final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.leaf()Returns the value of theleafrecord component.metrics()Returns the value of themetricsrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreatedAggregations
Creates an instance of aCreatedAggregationsrecord class.- Parameters:
root- the value for therootrecord componentleaf- the value for theleafrecord componentmetrics- the value for themetricsrecord component
-
-
Method Details
-
create
-
create
public static <T> BucketSpecHandler.CreatedAggregations<T> create(T rootAggregation, T leafAggregation) -
create
public static <T> BucketSpecHandler.CreatedAggregations<T> create(T rootAggregation, T leafAggregation, List<T> metricsAggregations) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
leaf
Returns the value of theleafrecord component.- Returns:
- the value of the
leafrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-