TermsIndexWriterBase (Lucene 10.5.1 codecs API)
Description: declaration: package: org.apache.lucene.codecs.blockterms, class: TermsIndexWriterBase

Package org.apache.lucene.codecs.blockterms

# Class TermsIndexWriterBase

java.lang.Object
org.apache.lucene.codecs.blockterms.TermsIndexWriterBase

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

Direct Known Subclasses:
  `FixedGapTermsIndexWriter`, `VariableGapTermsIndexWriter`

public abstract class TermsIndexWriterBase extends Object implements Closeable
Base class for terms index implementations to plug into `BlockTermsWriter`.

See Also:
  - `TermsIndexReaderBase`
WARNING: This API is experimental and might change in incompatible ways in the next release.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `class`
  `TermsIndexWriterBase.FieldWriter`
  Terms index API for a single field.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TermsIndexWriterBase()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract TermsIndexWriterBase.FieldWriter`
  `addField(FieldInfo fieldInfo, long termsFilePointer)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.io.Closeable

  `close`

- ## Constructor Details

  - ### TermsIndexWriterBase

    public TermsIndexWriterBase()

- ## Method Details

  - ### addField

    public abstract TermsIndexWriterBase.FieldWriter addField(FieldInfo fieldInfo, long termsFilePointer) throws IOException
    Throws:
      `IOException`