Codec

Encodes/decodes an inverted index segment.

Note, when extending this class, the name (.getName) is written into the index. 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 codec names.

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

Parameters

name

Returns this codec's name.

See also

ServiceLoader

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard

Encodes/decodes compound files

Link copied to clipboard

Encodes/decodes docvalues

Link copied to clipboard

Encodes/decodes field infos file

Link copied to clipboard

Encodes/decodes numeric vector fields

Link copied to clipboard

Encodes/decodes live docs

Link copied to clipboard
abstract fun normsFormat(): NormsFormat

Encodes/decodes document normalization values

Link copied to clipboard
abstract fun pointsFormat(): PointsFormat

Encodes/decodes points index

Link copied to clipboard

Encodes/decodes postings

Link copied to clipboard

Encodes/decodes segment info file

Link copied to clipboard

Encodes/decodes stored fields

Link copied to clipboard

Encodes/decodes term vectors

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

returns the codec's name. Subclasses can override to provide more detail (such as parameters).