Метод | Описание | |
---|---|---|
IndexStorer ( string documentsFile, string wordsFile, string mappingsFile, IInMemoryIndex index ) : System |
Initializes a new instance of the IndexStorer class.
|
Метод | Описание | |
---|---|---|
DeleteData ( |
Deletes data from the data storage.
|
|
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. |
Метод | Описание | |
---|---|---|
EqualDumpedDocument ( |
Determines whether two DumpedDocuments are equal.
|
|
GetTempFile ( string file ) : string |
Gets a tempDumpedWord file name given an original name.
|
|
InitFiles ( ) : void |
Initializes the data files, if needed.
|
|
ReadCount ( |
Reads the count in a FileStream. The caller must properly seek the stream after calling the method. |
|
ReadDumpedDocument ( |
Reads a DumpedDocument from a BinaryReader.
|
|
ReadDumpedWord ( |
Reads a DumpedWord from a BinaryReader.
|
|
ReadDumpedWordMapping ( |
Reads a DumpedWordMapping from a BinaryReader.
|
|
ReadReserved ( |
Reads the reserved bytes.
|
|
WriteDumpedDocument ( |
Writes a DumpedDocument to a BinaryWriter.
|
|
WriteDumpedWord ( |
Writes a DumpedWord to a BinaryWriter.
|
|
WriteDumpedWordMapping ( |
Writes a DumpedWordMapping to a BinaryWriter.
|
|
WriteHeader ( |
Writes the binary file header.
|
protected DeleteData ( |
||
data | The data to delete. | |
state | object | A state object passed from the index. |
Результат | void |
public IndexStorer ( string documentsFile, string wordsFile, string mappingsFile, IInMemoryIndex index ) : System | ||
documentsFile | string | The file that contains the documents list. |
wordsFile | string | The file that contains the words list. |
mappingsFile | string | The file that contains the index mappings data. |
index | IInMemoryIndex | The index to manage. |
Результат | System |
protected InitDataStore ( object state ) : void | ||
state | object | A state object passed from the index. |
Результат | void |
protected LoadIndexInternal ( |
||
documents | The dumped documents. | |
words | The dumped words. | |
mappings | The dumped word mappings. | |
Результат | void |
protected SaveData ( |
||
data | The data to store. | |
state | object | A state object passed from the index. |
Результат |