Method Read
Read(Directory, String)
Read a particular segmentFileName. Note that this may throw an IOException if a commit is in process.
Declaration
public void Read(Directory directory, String segmentFileName)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | -- directory containing the segments file |
System.String | segmentFileName | -- segment file to load |
Read(Directory)
This version of read uses the retry logic (for lock-less commits) to find the right segments file to load.
Declaration
public void Read(Directory directory)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory |