ddc
|
CQueryResult: query results, possibly aggregated by "break". More...
#include <QueryResult.h>
Public Member Functions | |
void | ClearQueryResults () |
clears CQueryResult fields More... | |
template<typename HitIndexLessThanT > | |
void | SortResultsByIndex (HitIndexLessThanT &HitIndexLess) |
template<typename HitLessThanT > | |
void | SortResultsByHit (HitLessThanT &HitLess) |
template<typename HitIndexLessThanT > | |
void | SortResultsByIndexP (HitIndexLessThanT HitIndexLess) |
template<typename HitLessThanT > | |
void | SortResultsByHitP (HitLessThanT HitLess) |
Public Attributes | |
vector< CHit > | m_Hits |
found hits (not more than m_pConcordance->m_MaxCachedHitsCount). More... | |
vector< CTokenNo > | m_HighlightOccurs |
words that should be highlighted in hits; m_HighlightOccurs is the concatenation of CQueryNode::m_Occurrences for all subcorpora More... | |
vector< BYTE > | m_HighlightIds |
highlighting match-ids for m_HighlightOccurs More... | |
size_t | m_AllHitsCount |
the number of all found hits (if m_AllHitsCount < m_pConcordance->m_MaxCachedHitsCount, then m_Hits.size() == m_AllHitsCount) More... | |
size_t | m_RelevantDocumentCount |
the number of documents, where at least one hit is found More... | |
bool | m_bSortByString: 1 |
whether to sort by string-value More... | |
bool | m_bPrune: 1 |
whether primary sort is a prune-sort More... | |
HitSortOrderEnum | m_SortOrder: 4 |
hit sort order More... | |
vector< BYTE > | m_DebugInfo |
? More... | |
CQueryResult: query results, possibly aggregated by "break".
Class CQueryResult contains all information about the first m_pConcordance->m_MaxCachedHitsCount hits for the input query. Other hits (beyond m_pConcordance->m_MaxCachedHitsCount) are not stored but they can be retrieved on user's demand.
void CQueryResult::ClearQueryResults | ( | ) |
clears CQueryResult fields
References ClearVector(), hsoNone, m_AllHitsCount, m_bSortByString, m_DebugInfo, m_HighlightIds, m_HighlightOccurs, m_Hits, m_RelevantDocumentCount, and m_SortOrder.
Referenced by CConcSession::ClearQueryResults().
|
inline |
sort all hits by generic index-comparison function (comparison predicate reference)
References CQueryResultIndex::Apply(), and CQueryResultIndex::SortByIndex().
Referenced by SortResultsByIndexP().
|
inline |
sort hits by generic hit-comparison function (comparison predicate reference)
References CQueryResultIndex::Apply(), and CQueryResultIndex::SortByHit().
Referenced by SortResultsByHitP().
|
inline |
sort all hits by generic index-comparison function (comparison predicate value)
References SortResultsByIndex().
|
inline |
sort hits by generic hit-comparison function (comparsion predicate value)
References SortResultsByHit().
Referenced by CQCount::CountLocal().
vector<CHit> CQueryResult::m_Hits |
found hits (not more than m_pConcordance->m_MaxCachedHitsCount).
Referenced by CQueryResultIndex::Apply(), CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), ClearQueryResults(), CQKeys::Compile(), CQCount::ConvertCountsToHits(), CQCount::CountLocal(), CDDCLeafServer::handle__run_query(), HitOccurrenceStart(), and CResultHitLess< HitLessThanT >::operator()().
vector<CTokenNo> CQueryResult::m_HighlightOccurs |
words that should be highlighted in hits; m_HighlightOccurs is the concatenation of CQueryNode::m_Occurrences for all subcorpora
Referenced by CQueryResultIndex::Apply(), CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), ClearQueryResults(), CQCount::ConvertCountsToHits(), CQCount::CountLocal(), CQCountKeyExprToken::Evaluate(), and HitOccurrenceEnd().
vector<BYTE> CQueryResult::m_HighlightIds |
highlighting match-ids for m_HighlightOccurs
Referenced by CQueryResultIndex::Apply(), CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), ClearQueryResults(), CQCount::ConvertCountsToHits(), CQCount::CountLocal(), and CQCountKeyExprToken::Evaluate().
size_t CQueryResult::m_AllHitsCount |
the number of all found hits (if m_AllHitsCount < m_pConcordance->m_MaxCachedHitsCount, then m_Hits.size() == m_AllHitsCount)
Referenced by CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), ClearQueryResults(), CQCount::ConvertCountsToHits(), CQCount::CountLocal(), CDDCLeafServer::handle__get_first_hits(), and CDDCLeafServer::handle__run_query().
size_t CQueryResult::m_RelevantDocumentCount |
the number of documents, where at least one hit is found
Referenced by CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), ClearQueryResults(), CDDCLeafServer::handle__get_first_hits(), and CDDCLeafServer::handle__run_query().
bool CQueryResult::m_bSortByString |
whether to sort by string-value
Referenced by CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), ClearQueryResults(), and CQCount::ConvertCountsToHits().
bool CQueryResult::m_bPrune |
whether primary sort is a prune-sort
HitSortOrderEnum CQueryResult::m_SortOrder |
hit sort order
Referenced by CConcSessionContext::CacheGet(), CConcSessionContext::CacheSet(), ClearQueryResults(), and CQCount::ConvertCountsToHits().
|
mutable |