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 Details

    • AggTestConfig

      public AggTestConfig(AggregationBuilder builder, MappedFieldType... fieldTypes)
    • 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 a AggTestConfig record class.
      Parameters:
      query - the value for the query record component
      builder - the value for the builder record component
      maxBuckets - the value for the maxBuckets record component
      splitLeavesIntoSeparateAggregators - the value for the splitLeavesIntoSeparateAggregators record component
      shouldBeCached - the value for the shouldBeCached record component
      incrementalReduce - the value for the incrementalReduce record component
      fieldTypes - the value for the fieldTypes record component
  • Method Details

    • withQuery

      public AggregatorTestCase.AggTestConfig withQuery(org.apache.lucene.search.Query query)
    • withSplitLeavesIntoSeperateAggregators

      public AggregatorTestCase.AggTestConfig withSplitLeavesIntoSeperateAggregators(boolean splitLeavesIntoSeparateAggregators)
    • withShouldBeCached

      public AggregatorTestCase.AggTestConfig withShouldBeCached(boolean shouldBeCached)
    • withMaxBuckets

      public AggregatorTestCase.AggTestConfig withMaxBuckets(int maxBuckets)
    • withIncrementalReduce

      public AggregatorTestCase.AggTestConfig withIncrementalReduce(boolean incrementalReduce)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • query

      public org.apache.lucene.search.Query query()
      Returns the value of the query record component.
      Returns:
      the value of the query record component
    • builder

      public AggregationBuilder builder()
      Returns the value of the builder record component.
      Returns:
      the value of the builder record component
    • maxBuckets

      public int maxBuckets()
      Returns the value of the maxBuckets record component.
      Returns:
      the value of the maxBuckets record component
    • splitLeavesIntoSeparateAggregators

      public boolean splitLeavesIntoSeparateAggregators()
      Returns the value of the splitLeavesIntoSeparateAggregators record component.
      Returns:
      the value of the splitLeavesIntoSeparateAggregators record component
    • shouldBeCached

      public boolean shouldBeCached()
      Returns the value of the shouldBeCached record component.
      Returns:
      the value of the shouldBeCached record component
    • incrementalReduce

      public boolean incrementalReduce()
      Returns the value of the incrementalReduce record component.
      Returns:
      the value of the incrementalReduce record component
    • fieldTypes

      public MappedFieldType[] fieldTypes()
      Returns the value of the fieldTypes record component.
      Returns:
      the value of the fieldTypes record component