Class Lucene40SegmentInfoReader
Lucene 4.0 implementation of SegmentInfoReader.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Codecs.Lucene40
Assembly: Lucene.Net.dll
Syntax
[Obsolete("Only for reading old 4.0-4.5 segments")]
public class Lucene40SegmentInfoReader : SegmentInfoReader
Constructors
Lucene40SegmentInfoReader()
Sole constructor.
Declaration
public Lucene40SegmentInfoReader()
See Also
Methods
Read(Directory, string, IOContext)
Read SegmentInfo data from a directory.
Declaration
public override SegmentInfo Read(Directory dir, string segment, IOContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| Directory | dir | |
| string | segment | |
| IOContext | context | IO context. |
Returns
| Type | Description |
|---|---|
| SegmentInfo | Infos instance to be populated with data. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| IOException | If an I/O error occurs. |