Class Lucene3xSegmentInfoReader
Lucene 3x implementation of SegmentInfoReader.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Codecs.Lucene3x
Assembly: Lucene.Net.dll
Syntax
[Obsolete("Only for reading existing 3.x indexes")]
public class Lucene3xSegmentInfoReader : SegmentInfoReader
Methods
Read(Directory, string, IOContext)
Read SegmentInfo data from a directory.
Declaration
public override SegmentInfo Read(Directory directory, string segmentName, IOContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| Directory | directory | Directory to read from. |
| string | segmentName | Name of the segment to read. |
| 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. |
ReadLegacyInfos(SegmentInfos, Directory, IndexInput, int)
Lucene 3x implementation of SegmentInfoReader.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public static void ReadLegacyInfos(SegmentInfos infos, Directory directory, IndexInput input, int format)
Parameters
| Type | Name | Description |
|---|---|---|
| SegmentInfos | infos | |
| Directory | directory | |
| IndexInput | input | |
| int | format |