Package org.apache.lucene.codecs
Class SegmentInfoReader
- java.lang.Object
-
- org.apache.lucene.codecs.SegmentInfoReader
-
- Direct Known Subclasses:
Lucene3xSegmentInfoReader
,Lucene40SegmentInfoReader
,Lucene46SegmentInfoReader
public abstract class SegmentInfoReader extends java.lang.Object
Specifies an API for classes that can readSegmentInfo
information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract SegmentInfo
read(Directory directory, java.lang.String segmentName, IOContext context)
ReadSegmentInfo
data from a directory.
-
-
-
Method Detail
-
read
public abstract SegmentInfo read(Directory directory, java.lang.String segmentName, IOContext context) throws java.io.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:
java.io.IOException
- If an I/O error occurs
-
-