C# 클래스 QACExperimenter.Data.IndexCore.TermIndex

Maintains an index of BaseIndexEntry objects, indexed by term. This is effectively an inverted index to the queries in the PrefixIndex. This class is NOT thread-safe.
파일 보기 프로젝트 열기: stewhir/recent-robust-qac

공개 메소드들

메소드 설명
AddBaseIndexEntry ( BaseIndexEntry indexEntry ) : void

Index the BaseIndexEntry in the inverted index, by query term

GetIndexEntriesForQueryTerm ( string term ) : List

Get the BaseIndexEntries containing the provided query term. Returns null if there are no index entries.

GetTermFrequencyInIndex ( string term ) : double

Get the frequency of the term in the index. This is how many unique queries contain the term.

TermIndex ( ) : System

메소드 상세

AddBaseIndexEntry() 공개 메소드

Index the BaseIndexEntry in the inverted index, by query term
public AddBaseIndexEntry ( BaseIndexEntry indexEntry ) : void
indexEntry BaseIndexEntry
리턴 void

GetIndexEntriesForQueryTerm() 공개 메소드

Get the BaseIndexEntries containing the provided query term. Returns null if there are no index entries.
public GetIndexEntriesForQueryTerm ( string term ) : List
term string
리턴 List

GetTermFrequencyInIndex() 공개 메소드

Get the frequency of the term in the index. This is how many unique queries contain the term.
public GetTermFrequencyInIndex ( string term ) : double
term string
리턴 double

TermIndex() 공개 메소드

public TermIndex ( ) : System
리턴 System