DocValuesFormat

Encodes/decodes per-document values.

Note, when extending this class, the name (.getName) may written into the index in certain configurations. In order for the segment to be read, the name must resolve to your implementation via .forName. This method uses Java's ServiceLoader (SPI) to resolve format names.

If you implement your own format, make sure that it has a no-arg constructor so SPI can load it.

See also

ServiceLoader

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open lateinit override var name: String

Unique name that's used to retrieve this format when reading the index.

Functions

Link copied to clipboard

Returns a DocValuesConsumer to write docvalues to the index.

Link copied to clipboard

Returns a DocValuesProducer to read docvalues from the index.

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