org.apache.lucene.codecs.lucene40

## Class Lucene40SegmentInfoFormat

- java.lang.Object
- - org.apache.lucene.codecs.SegmentInfoFormat
  - - org.apache.lucene.codecs.lucene40.Lucene40SegmentInfoFormat

- Deprecated.
  Only for reading old 4.0-4.5 segments

      @Deprecated
      public class Lucene40SegmentInfoFormat
      extends SegmentInfoFormat

  Lucene 4.0 Segment info format.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Lucene40SegmentInfoFormat()` Deprecated. Sole constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `SegmentInfo` | `read(Directory dir, String segment, byte[] segmentID, IOContext context)` Deprecated.
    `void` | `write(Directory dir, SegmentInfo info, IOContext ioContext)` Deprecated.

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

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

- - ### Constructor Detail

    - #### Lucene40SegmentInfoFormat

          public Lucene40SegmentInfoFormat()

      Deprecated.
      Sole constructor.

  - ### Method Detail

    - #### read

          public final SegmentInfo read(Directory dir,
                         String segment,
                         byte[] segmentID,
                         IOContext context)
                                 throws IOException

      Deprecated.
      Specified by:
        `read` in class `SegmentInfoFormat`
      Throws:
        `IOException`

    - #### write

          public void write(Directory dir,
                   SegmentInfo info,
                   IOContext ioContext)
                     throws IOException

      Deprecated.
      Specified by:
        `write` in class `SegmentInfoFormat`
      Throws:
        `IOException`

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.