SortFieldProvider

Reads/Writes a named SortField from a segment info file, used to record index sorts

Creates a new SortFieldProvider.

The provided name will be written into the index segment: in order to for the segment to be read this class should be registered with Java's SPI mechanism (registered in META-INF/ of your jar file, etc).

Parameters

name

The name this SortFieldProvider is registered under. must be all ascii alphanumeric, and less than 128 characters in length.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
abstract fun readSortField(in: DataInput): SortField

Reads a SortField from serialized bytes

Link copied to clipboard
abstract fun writeSortField(sf: SortField, out: DataOutput)

Writes a SortField to a DataOutput