Lucene90CompressingStoredFieldsFormat

class Lucene90CompressingStoredFieldsFormat(formatName: String, segmentSuffix: String, compressionMode: CompressionMode, chunkSize: Int, maxDocsPerChunk: Int, blockShift: Int) : StoredFieldsFormat

A StoredFieldsFormat that compresses documents in chunks in order to improve the compression ratio.

For a chunk size of chunkSize bytes, this StoredFieldsFormat does not support documents larger than (2<sup>31</sup> - chunkSize) bytes.

For optimal performance, you should use a MergePolicy that returns segments that have the biggest byte size first.

Constructors

Link copied to clipboard
constructor(formatName: String, segmentSuffix: String, compressionMode: CompressionMode, chunkSize: Int, maxDocsPerChunk: Int, blockShift: Int)
constructor(formatName: String, compressionMode: CompressionMode, chunkSize: Int, maxDocsPerChunk: Int, blockShift: Int)

Create a new Lucene90CompressingStoredFieldsFormat with an empty segment suffix.

Functions

Link copied to clipboard
open override fun fieldsReader(directory: Directory, si: SegmentInfo, fn: FieldInfos?, context: IOContext): StoredFieldsReader

Returns a StoredFieldsReader to load stored fields.

Link copied to clipboard
open override fun fieldsWriter(directory: Directory, si: SegmentInfo, context: IOContext): StoredFieldsWriter

Returns a StoredFieldsWriter to write stored fields.

Link copied to clipboard
open override fun toString(): String