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
ConstructorDescriptionCreatedAggregations
(T root, T leaf, List<T> metrics) Creates an instance of aCreatedAggregations
record 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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.leaf()
Returns the value of theleaf
record component.metrics()
Returns the value of themetrics
record component.root()
Returns the value of theroot
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CreatedAggregations
Creates an instance of aCreatedAggregations
record class.- Parameters:
root
- the value for theroot
record componentleaf
- the value for theleaf
record componentmetrics
- the value for themetrics
record 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 theroot
record component.- Returns:
- the value of the
root
record component
-
leaf
Returns the value of theleaf
record component.- Returns:
- the value of the
leaf
record component
-
metrics
Returns the value of themetrics
record component.- Returns:
- the value of the
metrics
record component
-