Class SegmentInfoReader
Specifies an API for classes that can read SegmentInfo information.
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 SegmentInfo data from a directory.
Declaration
public abstract SegmentInfo Read(Directory directory, string segmentName, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | Directory to read from. |
System.String | segmentName | Name of the segment to read. |
IOContext | context | IO context. |
Returns
Type | Description |
---|---|
SegmentInfo | Infos instance to be populated with data. |