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
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Codecs
Assembly: Lucene.Net.dll
Syntax
public abstract class SegmentInfoReader
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. |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | If an I/O error occurs. |