Package org.apache.lucene.codecs
Class SegmentInfoReader
java.lang.Object
org.apache.lucene.codecs.SegmentInfoReader
- Direct Known Subclasses:
Lucene3xSegmentInfoReader
,Lucene40SegmentInfoReader
,Lucene46SegmentInfoReader
Specifies an API for classes that can read
SegmentInfo
information.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SegmentInfoReader
protected SegmentInfoReader()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
read
public abstract SegmentInfo read(Directory directory, String segmentName, IOContext context) throws IOException ReadSegmentInfo
data from a directory.- 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
-