C# Class Bamboo.Prevalence.Indexing.FullText.TermOccurrenceCollection

Inheritance: System.Collections.CollectionBase
Datei anzeigen Open project: bamboo/Bamboo.Prevalence Class Usage Examples

Public Methods

Method Description
Add ( IndexedField field, int position ) : void

Adds the information related to the new occurrence of the term in the field and position passed as argument. If a TermOccurrence object for the specified field is already in the collection, the new position information is simply added to the existing TermOccurrence object. Otherwise a new TermOccurrence object will be created and added to the collection.

TermOccurrenceCollection ( ) : System

Creates an empty collection.

ToString ( ) : string

Builds a readable representation of this object.

Method Details

Add() public method

Adds the information related to the new occurrence of the term in the field and position passed as argument. If a TermOccurrence object for the specified field is already in the collection, the new position information is simply added to the existing TermOccurrence object. Otherwise a new TermOccurrence object will be created and added to the collection.
public Add ( IndexedField field, int position ) : void
field IndexedField field where the term /// was found
position int /// position in the field where the term was found
return void

TermOccurrenceCollection() public method

Creates an empty collection.
public TermOccurrenceCollection ( ) : System
return System

ToString() public method

Builds a readable representation of this object.
public ToString ( ) : string
return string