C# Class SIL.FieldWorks.FDO.DomainServices.SemanticDomainSearch.SemDomSearchStrategy.SemDomSearchResults

Search Results object for accumulating SemDomSearchEngine search results from a particular SemDomSearchStrategy.
ファイルを表示 Open project: sillsdev/FieldWorks

Public Methods

Method Description
AddResultToBucketX ( int bucketIndex, ICmSemanticDomain domain ) : void

The buckets are ordered in priority so adding a result to one bucket should remove that result from all lower (higher index) ones. N.B. Strategy subclasses should take care not to add a domain to a bucket if it is already in a higher priority bucket.

SemDomSearchResults ( int numberOfNeededBuckets ) : System

Create new (empty) buckets for collecting results The semantics behind each bucket are determined by the SearchStrategy using the results object

SortedBucketX ( int bucketIndex ) : IEnumerable

Returns the contents of a Bucket sorted by hierarchical code (e.g. 1.1.8)

Method Details

AddResultToBucketX() public method

The buckets are ordered in priority so adding a result to one bucket should remove that result from all lower (higher index) ones. N.B. Strategy subclasses should take care not to add a domain to a bucket if it is already in a higher priority bucket.
public AddResultToBucketX ( int bucketIndex, ICmSemanticDomain domain ) : void
bucketIndex int
domain ICmSemanticDomain
return void

SemDomSearchResults() public method

Create new (empty) buckets for collecting results The semantics behind each bucket are determined by the SearchStrategy using the results object
public SemDomSearchResults ( int numberOfNeededBuckets ) : System
numberOfNeededBuckets int
return System

SortedBucketX() public method

Returns the contents of a Bucket sorted by hierarchical code (e.g. 1.1.8)
public SortedBucketX ( int bucketIndex ) : IEnumerable
bucketIndex int
return IEnumerable