Property | Type | Description | |
---|---|---|---|
dataCorrupted | bool | ||
disposed | bool | ||
index | IInMemoryIndex | ||
indexChangedHandler | EventHandler |
||
reasonForDataCorruption |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Disposes the current object.
|
|
IndexStorerBase ( IInMemoryIndex index ) : System |
Initializes a new instance of the IndexStorerBase class.
|
|
LoadIndex ( ) : void |
Loads the index from the data store the first time.
|
Method | Description | |
---|---|---|
DeleteData ( |
Deletes data from the data storage.
|
|
Find ( |
Determines whether a DumpedWord is contained in a list.
|
|
Find ( |
Determines whether a DumpedWordMapping is contained in a list.
|
|
IndexChangedHandler ( object sender, |
Handles the IInMemoryIndex.IndexChanged events.
|
|
InitDataStore ( object state ) : void |
Initializes the data storage.
|
|
LoadIndexInternal ( |
Loads the index from the data store the first time.
|
|
SaveData ( |
Stores new data into the data storage. When saving a new document, the document ID in data.Mappings must be replaced with the currect document ID, generated by the concrete implementation of this method. data.Words should have IDs numbered from uint.MaxValue downwards. The method re-numbers the words appropriately. |
protected abstract DeleteData ( |
||
data | The data to delete. | |
state | object | A state object passed from the index. |
return | void |
protected static Find ( |
||
word | The word. | |
list | IEnumerable |
The list. |
return | bool |
protected static Find ( |
||
mapping | The mapping. | |
list | IEnumerable |
The list. |
return | bool |
protected IndexChangedHandler ( object sender, |
||
sender | object | The sender. |
e | The event arguments. | |
return | void |
public IndexStorerBase ( IInMemoryIndex index ) : System | ||
index | IInMemoryIndex | The index to manage. |
return | System |
protected abstract InitDataStore ( object state ) : void | ||
state | object | A state object passed from the index. |
return | void |
protected abstract LoadIndexInternal ( |
||
documents | The dumped documents. | |
words | The dumped words. | |
mappings | The dumped word mappings. | |
return | void |
protected abstract SaveData ( |
||
data | The data to store. | |
state | object | A state object passed by the index. |
return |
protected EventHandler |
||
return | EventHandler |