Module org.elasticsearch.server
Record Class TSDBDocValuesFormatConfig
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.tsdb.TSDBDocValuesFormatConfig
- Record Components:
version- version identifiers for header validation and feature gatingtermsDict- terms dictionary block layout parametersskipIndex- skip index geometry parametersnumeric- numeric encoding parametersbinary- binary doc values compression parametersdirectMonotonicBlockShift- block shift for DirectMonotonicWriter used across all field typeswritePrefixPartitions- whether to write prefix-based partition metadata for the primary sort field
public record TSDBDocValuesFormatConfig(TSDBDocValuesFormatConfig.VersionConfig version, TSDBDocValuesFormatConfig.TermsDictConfig termsDict, TSDBDocValuesFormatConfig.SkipIndexConfig skipIndex, TSDBDocValuesFormatConfig.NumericConfig numeric, TSDBDocValuesFormatConfig.BinaryConfig binary, int directMonotonicBlockShift, boolean writePrefixPartitions)
extends Record
Format-specific configuration that varies per codec version. Groups related parameters
into sub-records and provides delegation methods for convenient flat access.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionTSDBDocValuesFormatConfig(TSDBDocValuesFormatConfig.VersionConfig version, TSDBDocValuesFormatConfig.TermsDictConfig termsDict, TSDBDocValuesFormatConfig.SkipIndexConfig skipIndex, TSDBDocValuesFormatConfig.NumericConfig numeric, TSDBDocValuesFormatConfig.BinaryConfig binary, int directMonotonicBlockShift, boolean writePrefixPartitions) Creates an instance of aTSDBDocValuesFormatConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbinary()Returns the value of thebinaryrecord component.intintintReturns the value of thedirectMonotonicBlockShiftrecord component.booleanfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnumeric()Returns the value of thenumericrecord component.intintReturns the value of theskipIndexrecord component.intintintintintReturns the value of thetermsDictrecord component.intintfinal StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.intintintintintbooleanReturns the value of thewritePrefixPartitionsrecord component.
-
Constructor Details
-
TSDBDocValuesFormatConfig
public TSDBDocValuesFormatConfig(TSDBDocValuesFormatConfig.VersionConfig version, TSDBDocValuesFormatConfig.TermsDictConfig termsDict, TSDBDocValuesFormatConfig.SkipIndexConfig skipIndex, TSDBDocValuesFormatConfig.NumericConfig numeric, TSDBDocValuesFormatConfig.BinaryConfig binary, int directMonotonicBlockShift, boolean writePrefixPartitions) Creates an instance of aTSDBDocValuesFormatConfigrecord class.- Parameters:
version- the value for theversionrecord componenttermsDict- the value for thetermsDictrecord componentskipIndex- the value for theskipIndexrecord componentnumeric- the value for thenumericrecord componentbinary- the value for thebinaryrecord componentdirectMonotonicBlockShift- the value for thedirectMonotonicBlockShiftrecord componentwritePrefixPartitions- the value for thewritePrefixPartitionsrecord component
-
-
Method Details
-
versionStart
public int versionStart()- Returns:
- minimum format version for header validation
-
versionCurrent
public int versionCurrent()- Returns:
- format version to write in file headers
-
versionLargeBlocks
public int versionLargeBlocks()- Returns:
- version at which large numeric blocks were introduced
-
versionBinaryCompression
public int versionBinaryCompression()- Returns:
- version at which binary DV compression was introduced
-
versionPrefixPartitions
public int versionPrefixPartitions()- Returns:
- version at which prefix partitions were introduced
-
termsBlockLz4Mask
public int termsBlockLz4Mask()- Returns:
- terms dict block mask
-
termsBlockLz4Shift
public int termsBlockLz4Shift()- Returns:
- terms dict block shift
-
termsReverseIndexShift
public int termsReverseIndexShift()- Returns:
- terms dict reverse index shift
-
termsReverseIndexMask
public int termsReverseIndexMask()- Returns:
- terms dict reverse index mask
-
skipIndexLevelShift
public int skipIndexLevelShift()- Returns:
- number of intervals per level, expressed as a shift
-
skipIndexMaxLevel
public int skipIndexMaxLevel()- Returns:
- maximum number of skip index levels
-
skipIndexIntervalSize
public int skipIndexIntervalSize()- Returns:
- number of documents per skip index interval
-
numericBlockShift
public int numericBlockShift()- Returns:
- block shift for numeric encoding
-
ordinalRangeBlockShift
public int ordinalRangeBlockShift()- Returns:
- block shift for ordinal range encoding
-
minDocsPerOrdinalForRangeEncoding
public int minDocsPerOrdinalForRangeEncoding()- Returns:
- minimum docs per ordinal for range encoding
-
blockBytesThreshold
public int blockBytesThreshold()- Returns:
- threshold for binary block size in bytes
-
blockCountThreshold
public int blockCountThreshold()- Returns:
- threshold for binary block value count
-
enablePerBlockCompression
public boolean enablePerBlockCompression()- Returns:
- whether per-block compression is enabled
-
binaryCompressionMode
- Returns:
- compression algorithm for binary doc values
-
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 '=='. -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
termsDict
Returns the value of thetermsDictrecord component.- Returns:
- the value of the
termsDictrecord component
-
skipIndex
Returns the value of theskipIndexrecord component.- Returns:
- the value of the
skipIndexrecord component
-
numeric
Returns the value of thenumericrecord component.- Returns:
- the value of the
numericrecord component
-
binary
Returns the value of thebinaryrecord component.- Returns:
- the value of the
binaryrecord component
-
directMonotonicBlockShift
public int directMonotonicBlockShift()Returns the value of thedirectMonotonicBlockShiftrecord component.- Returns:
- the value of the
directMonotonicBlockShiftrecord component
-
writePrefixPartitions
public boolean writePrefixPartitions()Returns the value of thewritePrefixPartitionsrecord component.- Returns:
- the value of the
writePrefixPartitionsrecord component
-