Class Lucene3xSegmentInfoReader
java.lang.Object
org.apache.lucene.codecs.SegmentInfoReader
org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader
Deprecated.
Only for reading existing 3.x indexes
Lucene 3x implementation of
SegmentInfoReader
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.ReadSegmentInfo
data from a directory.static void
readLegacyInfos
(SegmentInfos infos, Directory directory, IndexInput input, int format) Deprecated.
-
Constructor Details
-
Lucene3xSegmentInfoReader
public Lucene3xSegmentInfoReader()Deprecated.
-
-
Method Details
-
readLegacyInfos
public static void readLegacyInfos(SegmentInfos infos, Directory directory, IndexInput input, int format) throws IOException Deprecated.- Throws:
IOException
-
read
public SegmentInfo read(Directory directory, String segmentName, IOContext context) throws IOException Deprecated.Description copied from class:SegmentInfoReader
ReadSegmentInfo
data from a directory.- Specified by:
read
in classSegmentInfoReader
- Parameters:
directory
- directory to read fromsegmentName
- name of the segment to read- Returns:
- infos instance to be populated with data
- Throws:
IOException
- If an I/O error occurs
-