Method DoOpenIfChanged
DoOpenIfChanged()
Implement this method to support OpenIfChanged(DirectoryReader).
If this reader does not support reopen, return null
, so
client code is happy. This should be consistent with IsCurrent()
(should always return true
) if reopen is not supported.
Declaration
protected abstract DirectoryReader DoOpenIfChanged()
Returns
Type | Description |
---|---|
DirectoryReader |
|
DoOpenIfChanged(IndexCommit)
Implement this method to support OpenIfChanged(DirectoryReader, IndexCommit).
If this reader does not support reopen from a specific IndexCommit,
throw
Declaration
protected abstract DirectoryReader DoOpenIfChanged(IndexCommit commit)
Parameters
Type | Name | Description |
---|---|---|
IndexCommit | commit |
Returns
Type | Description |
---|---|
DirectoryReader |
|
DoOpenIfChanged(IndexWriter, Boolean)
Implement this method to support OpenIfChanged(DirectoryReader, IndexWriter, Boolean).
If this reader does not support reopen from IndexWriter,
throw
Declaration
protected abstract DirectoryReader DoOpenIfChanged(IndexWriter writer, bool applyAllDeletes)
Parameters
Type | Name | Description |
---|---|---|
IndexWriter | writer | |
System.Boolean | applyAllDeletes |
Returns
Type | Description |
---|---|
DirectoryReader |
|