Record Class AggregatorTestCase.AggTestConfig
java.lang.Object
java.lang.Record
org.elasticsearch.search.aggregations.AggregatorTestCase.AggTestConfig
- Enclosing class:
- AggregatorTestCase
public static record AggregatorTestCase.AggTestConfig(org.apache.lucene.search.Query query, AggregationBuilder builder, int maxBuckets, boolean splitLeavesIntoSeparateAggregators, boolean shouldBeCached, boolean incrementalReduce, MappedFieldType[] fieldTypes)
extends Record
-
Constructor Summary
ConstructorDescriptionAggTestConfig
(org.apache.lucene.search.Query query, AggregationBuilder builder, int maxBuckets, boolean splitLeavesIntoSeparateAggregators, boolean shouldBeCached, boolean incrementalReduce, MappedFieldType... fieldTypes) Creates an instance of aAggTestConfig
record class.AggTestConfig
(AggregationBuilder builder, MappedFieldType... fieldTypes) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the value of thebuilder
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefieldTypes
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theincrementalReduce
record component.int
Returns the value of themaxBuckets
record component.org.apache.lucene.search.Query
query()
Returns the value of thequery
record component.boolean
Returns the value of theshouldBeCached
record component.boolean
Returns the value of thesplitLeavesIntoSeparateAggregators
record component.final String
toString()
Returns a string representation of this record class.withIncrementalReduce
(boolean incrementalReduce) withMaxBuckets
(int maxBuckets) withQuery
(org.apache.lucene.search.Query query) withShouldBeCached
(boolean shouldBeCached) withSplitLeavesIntoSeperateAggregators
(boolean splitLeavesIntoSeparateAggregators)
-
Constructor Details
-
AggTestConfig
-
AggTestConfig
public AggTestConfig(org.apache.lucene.search.Query query, AggregationBuilder builder, int maxBuckets, boolean splitLeavesIntoSeparateAggregators, boolean shouldBeCached, boolean incrementalReduce, MappedFieldType... fieldTypes) Creates an instance of aAggTestConfig
record class.- Parameters:
query
- the value for thequery
record componentbuilder
- the value for thebuilder
record componentmaxBuckets
- the value for themaxBuckets
record componentsplitLeavesIntoSeparateAggregators
- the value for thesplitLeavesIntoSeparateAggregators
record componentshouldBeCached
- the value for theshouldBeCached
record componentincrementalReduce
- the value for theincrementalReduce
record componentfieldTypes
- the value for thefieldTypes
record component
-
-
Method Details
-
withQuery
-
withSplitLeavesIntoSeperateAggregators
public AggregatorTestCase.AggTestConfig withSplitLeavesIntoSeperateAggregators(boolean splitLeavesIntoSeparateAggregators) -
withShouldBeCached
-
withMaxBuckets
-
withIncrementalReduce
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
query
public org.apache.lucene.search.Query query()Returns the value of thequery
record component.- Returns:
- the value of the
query
record component
-
builder
Returns the value of thebuilder
record component.- Returns:
- the value of the
builder
record component
-
maxBuckets
public int maxBuckets()Returns the value of themaxBuckets
record component.- Returns:
- the value of the
maxBuckets
record component
-
splitLeavesIntoSeparateAggregators
public boolean splitLeavesIntoSeparateAggregators()Returns the value of thesplitLeavesIntoSeparateAggregators
record component.- Returns:
- the value of the
splitLeavesIntoSeparateAggregators
record component
-
shouldBeCached
public boolean shouldBeCached()Returns the value of theshouldBeCached
record component.- Returns:
- the value of the
shouldBeCached
record component
-
incrementalReduce
public boolean incrementalReduce()Returns the value of theincrementalReduce
record component.- Returns:
- the value of the
incrementalReduce
record component
-
fieldTypes
Returns the value of thefieldTypes
record component.- Returns:
- the value of the
fieldTypes
record component
-