Module org.elasticsearch.server
Record Class TSDBDocValuesFormatConfig.SkipIndexConfig
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.tsdb.TSDBDocValuesFormatConfig.SkipIndexConfig
- Record Components:
levelShift- number of intervals per level, expressed as a shiftmaxLevel- maximum number of skip index levelsintervalSize- number of documents per skip index interval
- Enclosing class:
TSDBDocValuesFormatConfig
public static record TSDBDocValuesFormatConfig.SkipIndexConfig(int levelShift, int maxLevel, int intervalSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSkipIndexConfig(int levelShift, int maxLevel, int intervalSize) Creates an instance of aSkipIndexConfigrecord 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 theintervalSizerecord component.intReturns the value of thelevelShiftrecord component.intmaxLevel()Returns the value of themaxLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkipIndexConfig
public SkipIndexConfig(int levelShift, int maxLevel, int intervalSize) Creates an instance of aSkipIndexConfigrecord class.- Parameters:
levelShift- the value for thelevelShiftrecord componentmaxLevel- the value for themaxLevelrecord componentintervalSize- the value for theintervalSizerecord 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 '=='. -
levelShift
public int levelShift()Returns the value of thelevelShiftrecord component.- Returns:
- the value of the
levelShiftrecord component
-
maxLevel
public int maxLevel()Returns the value of themaxLevelrecord component.- Returns:
- the value of the
maxLevelrecord component
-
intervalSize
public int intervalSize()Returns the value of theintervalSizerecord component.- Returns:
- the value of the
intervalSizerecord component
-