Method GetOnlySegmentReader
GetOnlySegmentReader(DirectoryReader)
Some tests expect the directory to contain a single segment, and want to do tests on that segment's reader. this is an utility method to help them.
Declaration
public static SegmentReader GetOnlySegmentReader(DirectoryReader reader)
Parameters
Type | Name | Description |
---|---|---|
DirectoryReader | reader |
Returns
Type | Description |
---|---|
SegmentReader |