Module org.elasticsearch.server
Record Class TSDBDocValuesFormatConfig.NumericConfig
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.tsdb.TSDBDocValuesFormatConfig.NumericConfig
- Record Components:
numericBlockShift- block shift for numeric value encodingordinalRangeBlockShift- block shift for ordinal range encodingminDocsPerOrdinalForRangeEncoding- minimum docs per ordinal for range encoding
- Enclosing class:
TSDBDocValuesFormatConfig
public static record TSDBDocValuesFormatConfig.NumericConfig(int numericBlockShift, int ordinalRangeBlockShift, int minDocsPerOrdinalForRangeEncoding)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNumericConfig(int numericBlockShift, int ordinalRangeBlockShift, int minDocsPerOrdinalForRangeEncoding) Creates an instance of aNumericConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theminDocsPerOrdinalForRangeEncodingrecord component.intReturns the value of thenumericBlockShiftrecord component.intReturns the value of theordinalRangeBlockShiftrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NumericConfig
public NumericConfig(int numericBlockShift, int ordinalRangeBlockShift, int minDocsPerOrdinalForRangeEncoding) Creates an instance of aNumericConfigrecord class.- Parameters:
numericBlockShift- the value for thenumericBlockShiftrecord componentordinalRangeBlockShift- the value for theordinalRangeBlockShiftrecord componentminDocsPerOrdinalForRangeEncoding- the value for theminDocsPerOrdinalForRangeEncodingrecord component
-
-
Method Details
-
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 with '=='. -
numericBlockShift
public int numericBlockShift()Returns the value of thenumericBlockShiftrecord component.- Returns:
- the value of the
numericBlockShiftrecord component
-
ordinalRangeBlockShift
public int ordinalRangeBlockShift()Returns the value of theordinalRangeBlockShiftrecord component.- Returns:
- the value of the
ordinalRangeBlockShiftrecord component
-
minDocsPerOrdinalForRangeEncoding
public int minDocsPerOrdinalForRangeEncoding()Returns the value of theminDocsPerOrdinalForRangeEncodingrecord component.- Returns:
- the value of the
minDocsPerOrdinalForRangeEncodingrecord component
-