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, boolean useLogDocMergePolicy, boolean testReductionCancellation, Consumer<Aggregator> checkAggregator, MappedFieldType[] fieldTypes)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAggTestConfig(org.apache.lucene.search.Query query, AggregationBuilder builder, int maxBuckets, boolean splitLeavesIntoSeparateAggregators, boolean shouldBeCached, boolean incrementalReduce, boolean useLogDocMergePolicy, boolean testReductionCancellation, Consumer<Aggregator> checkAggregator, MappedFieldType... fieldTypes) Creates an instance of aAggTestConfigrecord class.AggTestConfig(AggregationBuilder builder, MappedFieldType... fieldTypes) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns the value of thebuilderrecord component.Returns the value of thecheckAggregatorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldTypesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theincrementalReducerecord component.intReturns the value of themaxBucketsrecord component.org.apache.lucene.search.Queryquery()Returns the value of thequeryrecord component.booleanReturns the value of theshouldBeCachedrecord component.booleanReturns the value of thesplitLeavesIntoSeparateAggregatorsrecord component.booleanReturns the value of thetestReductionCancellationrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseLogDocMergePolicyrecord component.withCheckAggregator(Consumer<Aggregator> checkAggregator) 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, boolean useLogDocMergePolicy, boolean testReductionCancellation, Consumer<Aggregator> checkAggregator, MappedFieldType... fieldTypes) Creates an instance of aAggTestConfigrecord class.- Parameters:
query- the value for thequeryrecord componentbuilder- the value for thebuilderrecord componentmaxBuckets- the value for themaxBucketsrecord componentsplitLeavesIntoSeparateAggregators- the value for thesplitLeavesIntoSeparateAggregatorsrecord componentshouldBeCached- the value for theshouldBeCachedrecord componentincrementalReduce- the value for theincrementalReducerecord componentuseLogDocMergePolicy- the value for theuseLogDocMergePolicyrecord componenttestReductionCancellation- the value for thetestReductionCancellationrecord componentcheckAggregator- the value for thecheckAggregatorrecord componentfieldTypes- the value for thefieldTypesrecord component
-
-
Method Details
-
withQuery
-
withSplitLeavesIntoSeperateAggregators
public AggregatorTestCase.AggTestConfig withSplitLeavesIntoSeperateAggregators(boolean splitLeavesIntoSeparateAggregators) -
withShouldBeCached
-
withMaxBuckets
-
withIncrementalReduce
-
withLogDocMergePolicy
-
noReductionCancellation
-
withCheckAggregator
-
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 thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
builder
Returns the value of thebuilderrecord component.- Returns:
- the value of the
builderrecord component
-
maxBuckets
public int maxBuckets()Returns the value of themaxBucketsrecord component.- Returns:
- the value of the
maxBucketsrecord component
-
splitLeavesIntoSeparateAggregators
public boolean splitLeavesIntoSeparateAggregators()Returns the value of thesplitLeavesIntoSeparateAggregatorsrecord component.- Returns:
- the value of the
splitLeavesIntoSeparateAggregatorsrecord component
-
shouldBeCached
public boolean shouldBeCached()Returns the value of theshouldBeCachedrecord component.- Returns:
- the value of the
shouldBeCachedrecord component
-
incrementalReduce
public boolean incrementalReduce()Returns the value of theincrementalReducerecord component.- Returns:
- the value of the
incrementalReducerecord component
-
useLogDocMergePolicy
public boolean useLogDocMergePolicy()Returns the value of theuseLogDocMergePolicyrecord component.- Returns:
- the value of the
useLogDocMergePolicyrecord component
-
testReductionCancellation
public boolean testReductionCancellation()Returns the value of thetestReductionCancellationrecord component.- Returns:
- the value of the
testReductionCancellationrecord component
-
checkAggregator
Returns the value of thecheckAggregatorrecord component.- Returns:
- the value of the
checkAggregatorrecord component
-
fieldTypes
Returns the value of thefieldTypesrecord component.- Returns:
- the value of the
fieldTypesrecord component
-