Class SegmentInfoReader
Specifies an API for classes that can read Segment
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
SegmentInfoReader
Namespace: Lucene.Net.Codecs
Assembly: Lucene.Net.dll
Syntax
public abstract class SegmentInfoReader : object
Constructors
| Improve this Doc View SourceSegmentInfoReader()
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Declaration
protected SegmentInfoReader()
Methods
| Improve this Doc View SourceRead(Directory, String, IOContext)
Read Segment
Declaration
public abstract SegmentInfo Read(Directory directory, string segmentName, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | Directory to read from. |
System. |
segmentName | Name of the segment to read. |
IOContext | context | IO context. |
Returns
Type | Description |
---|---|
Segment |
Infos instance to be populated with data. |