## Uses of Class
org.apache.lucene.codecs.Codec

- Packages that use Codec
  Package | Description
  --- | ---
  org.apache.lucene.codecs | Codecs API: API for customization of the encoding and structure of the index.
  org.apache.lucene.codecs.lucene99 | Lucene 9.9 file format.
  org.apache.lucene.index | Code to maintain and access indices.

- - ### Uses of Codec in org.apache.lucene.codecs

    Subclasses of Codec in org.apache.lucene.codecs
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `FilterCodec` | A codec that forwards all its method calls to another codec.

    Fields in org.apache.lucene.codecs declared as Codec
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected Codec` | FilterCodec.`delegate` | The codec to filter.

    Methods in org.apache.lucene.codecs that return Codec
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Codec` | Codec.`forName​(String name)` | looks up a codec by name
    `static Codec` | Codec.`getDefault()` | expert: returns the default codec used for newly created `IndexWriterConfig`s.

    Methods in org.apache.lucene.codecs with parameters of type Codec
    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | Codec.`setDefault​(Codec codec)` | expert: sets the default codec used for newly created `IndexWriterConfig`s.

    Constructors in org.apache.lucene.codecs with parameters of type Codec
    Constructor | Description
    --- | ---
    `FilterCodec​(String name, Codec delegate)` | Sole constructor.

  - ### Uses of Codec in org.apache.lucene.codecs.lucene99

    Subclasses of Codec in org.apache.lucene.codecs.lucene99
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `Lucene99Codec` | Implements the Lucene 9.9 index format

  - ### Uses of Codec in org.apache.lucene.index

    Fields in org.apache.lucene.index declared as Codec
    Modifier and Type | Field | Description
    --- | --- | ---
    `Codec` | CheckIndex.Status.SegmentInfoStatus.`codec` | Codec used to read this segment.
    `protected Codec` | LiveIndexWriterConfig.`codec` | `Codec` used to write new segments.

    Methods in org.apache.lucene.index that return Codec
    Modifier and Type | Method | Description
    --- | --- | ---
    `Codec` | IndexWriterConfig.`getCodec()` |
    `Codec` | LiveIndexWriterConfig.`getCodec()` | Returns the current `Codec`.
    `Codec` | SegmentInfo.`getCodec()` | Return `Codec` that wrote this segment.

    Methods in org.apache.lucene.index with parameters of type Codec
    Modifier and Type | Method | Description
    --- | --- | ---
    `IndexWriterConfig` | IndexWriterConfig.`setCodec​(Codec codec)` | Set the `Codec`.
    `void` | SegmentInfo.`setCodec​(Codec codec)` | Can only be called once.

    Constructors in org.apache.lucene.index with parameters of type Codec
    Constructor | Description
    --- | ---
    `SegmentInfo​(Directory dir, Version version, Version minVersion, String name, int maxDoc, boolean isCompoundFile, boolean hasBlocks, Codec codec, Map<String,​String> diagnostics, byte[] id, Map<String,​String> attributes, Sort indexSort)` | Construct a new complete SegmentInfo instance from input.