ddc
|
#include <ConcCommon.h>
Public Member Functions | |
CHit (DWORD BreakNo=0) | |
Public Attributes | |
DWORD | m_BreakNo |
the index of the break, which this hit represents (in the break collection CConcHolder::GetBreaks) More... | |
DWORD | m_HighlightOccurrenceEnd |
the end offset of token occurrences to be highlighted in CQueryNode::m_Occurrences and later in CConcHolder::m_HighlightOccurs More... | |
DWORD | m_FileNo |
the index of coprus file, where this hit is found, it is equal to m_BreakNo if user searches within files More... | |
union { | |
size_t m_DebugRankNo | |
the string which displays how the rank was calculated (for rank-sorted queries) More... | |
size_t m_Count | |
count for this item (for count-queries) More... | |
} | m_Value |
CHitSortKey | m_SortKey |
CHit is a structure that holds one found hit and its properties. The calculation of its slots starts in CQueryNode class and its inheritors and proceeds in CConcHolder class.
|
inline |
DWORD CHit::m_BreakNo |
the index of the break, which this hit represents (in the break collection CConcHolder::GetBreaks)
Referenced by dumpHitIndex(), dumpHits(), CQCountKeyExprToken::Evaluate(), CConcSession::GenerateOneHitString(), CConcSession::GenerateOneHitStringJson(), CConcSession::InitFileReferences(), CConcSession::InitSortByContext(), CConcSession::InitSortByRank(), CConcSession::InitSortBySize(), IsLessByBreakNo::operator()(), and CHitCompareByBreak::operator()().
DWORD CHit::m_HighlightOccurrenceEnd |
the end offset of token occurrences to be highlighted in CQueryNode::m_Occurrences and later in CConcHolder::m_HighlightOccurs
Referenced by CQueryNode::ConvertOccurrencesToHits(), CQueryNode::ConvertOccurrencesToHitsForPatterns(), dumpHitIndex(), dumpHits(), CConcSession::GenerateOneHitStringJson(), CConcSession::GetAllHits(), HitOccurrenceEnd(), CQueryBinaryOperationNode::hits_add(), CConcSession::InitSortByContext(), CConcSession::InitSortByRank(), and CQueryBinaryOperationNode::pushHit().
DWORD CHit::m_FileNo |
the index of coprus file, where this hit is found, it is equal to m_BreakNo if user searches within files
Referenced by CQCount::CountUniversal(), dumpHitIndex(), dumpHits(), CQCountKeyExprFileId::Evaluate(), CQCountKeyExprFileName::Evaluate(), CQCountKeyExprDate::Evaluate(), CQCountKeyExprDateSlice::Evaluate(), CQCountKeyExprBibl::Evaluate(), CQCountKeyExprRegex::Evaluate(), CQCountKeyExprRegex::EvaluateRegex(), CConcSession::GenerateOneHitString(), CConcSession::GenerateOneHitStringJson(), CConcSession::InitFileReferences(), CBiblIndex::InitSortByBiblIntegerField(), CBiblIndex::InitSortByDate(), IsLessByFileNo::operator()(), CConcSession::ShowBibliographyForTable(), and CConcSession::ShowBibliographyForTextOrHtml().
size_t CHit::m_DebugRankNo |
the string which displays how the rank was calculated (for rank-sorted queries)
Referenced by dumpHitIndex(), dumpHits(), CConcSession::GenerateOneHitString(), CConcSession::GenerateOneHitStringJson(), CConcSession::InitSortByRank(), CConcSession::ShowBibliographyForTable(), and CConcSession::ShowBibliographyForTextOrHtml().
size_t CHit::m_Count |
count for this item (for count-queries)
Referenced by GenerateCountString(), and HitLessByCountValue::operator()().
union { ... } CHit::m_Value |
Referenced by dumpHitIndex(), dumpHits(), GenerateCountString(), CConcSession::GenerateOneHitString(), CConcSession::GenerateOneHitStringJson(), CConcSession::InitSortByRank(), HitLessByCountValue::operator()(), CConcSession::ShowBibliographyForTable(), and CConcSession::ShowBibliographyForTextOrHtml().
CHitSortKey CHit::m_SortKey |
key for sorting and/or filtering, which is calculated either by an instance of CDDCFilterWithBounds or by CConcHolder. formerly m_OrderId
Referenced by dumpHitIndex(), dumpHits(), GenerateCountString(), CConcSession::GenerateOneHitString(), CConcSession::GenerateOneHitStringJson(), CConcSession::GetHitIds(), CConcSession::InitFileReferences(), CBiblIndex::InitNoSort(), CBiblIndex::InitSortByBiblIntegerField(), CConcSession::InitSortByContext(), CBiblIndex::InitSortByDate(), CConcSession::InitSortByRandom(), CConcSession::InitSortByRank(), CConcSession::InitSortBySize(), and CConcSession::ShowBibliographyForTable().