Module org.elasticsearch.server
Class ES819TSDBDocValuesFormatFactory
java.lang.Object
org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatFactory
Factory class for creating instances of
DocValuesFormat tailored for time-series
use cases in relation to specific index versions and numeric block size preferences.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.codecs.DocValuesFormatcreateDocValuesFormat(IndexVersion indexCreatedVersion, boolean useLargeNumericBlockSize, boolean useLargeBinaryBlockSize, boolean writePrefixPartitions) Creates and returns a DocValuesFormat instance based on the specified index version and whether to use a large numeric block size.
-
Method Details
-
createDocValuesFormat
public static org.apache.lucene.codecs.DocValuesFormat createDocValuesFormat(IndexVersion indexCreatedVersion, boolean useLargeNumericBlockSize, boolean useLargeBinaryBlockSize, boolean writePrefixPartitions) Creates and returns a DocValuesFormat instance based on the specified index version and whether to use a large numeric block size.- Parameters:
indexCreatedVersion- the version of the index being created, which determines the applicable DocValuesFormat version.useLargeNumericBlockSize- a boolean flag indicating whether to use a large numeric block size.useLargeBinaryBlockSize- a boolean flag indicating whether to use a large binary block size.writePrefixPartitions- a boolean flag indicating whether to write the prefix partition for the primary sort field- Returns:
- the appropriate DocValuesFormat instance based on the index version and block size selection.
-