Свойство | Type | Description | |
---|---|---|---|
id | uint | ||
occurrences | OccurrenceDictionary | ||
text | string |
Méthode | Description | |
---|---|---|
AddOccurrence ( IDocument document, ushort firstCharIndex, ushort wordIndex, WordLocation location ) : void |
Stores an occurrence. Adding an occurrence is O(n), where n is the number of occurrences of the word already stored for the same document. If there were no occurrences previously stored, the operation is O(1). |
|
BulkAddOccurrences ( IDocument document, SortedBasicWordInfoSet positions ) : void |
Adds a bulk of occurrences of the word in a document, removing all the old positions, if any. If positions is empty, the effect of the invocation of the method is equal to that of RemoveOccurrences with the same document. Bulk-adding the occurrences is O(1). |
|
RemoveOccurrences ( IDocument document ) : List |
Removes all the occurrences for a document. Removing the occurrences for the document is O(1). |
|
ToString ( ) : string |
Gets a string representation of the current instance.
|
|
Word ( uint id, string text ) : System |
Initializes a new instance of the Word class.
|
|
Word ( uint id, string text, OccurrenceDictionary occurrences ) : System |
Initializes a new instance of the Word class.
|
public AddOccurrence ( IDocument document, ushort firstCharIndex, ushort wordIndex, WordLocation location ) : void | ||
document | IDocument | The document the occurrence is referred to. |
firstCharIndex | ushort | The index of the first character of the word in the document. |
wordIndex | ushort | The index of the word in the document. |
location | WordLocation | The location of the word. |
Résultat | void |
public BulkAddOccurrences ( IDocument document, SortedBasicWordInfoSet positions ) : void | ||
document | IDocument | The document. |
positions | SortedBasicWordInfoSet | The positions. |
Résultat | void |
public RemoveOccurrences ( IDocument document ) : List |
||
document | IDocument | The document to remove the occurrences of. |
Résultat | List |
public Word ( uint id, string text ) : System | ||
id | uint | The word ID. |
text | string | The text of the word (lowercase). |
Résultat | System |
public Word ( uint id, string text, OccurrenceDictionary occurrences ) : System | ||
id | uint | The word ID. |
text | string | The text of the word (lowercase). |
occurrences | OccurrenceDictionary | The occurrences. |
Résultat | System |
protected OccurrenceDictionary occurrences | ||
Résultat | OccurrenceDictionary |