ddc
|
#include "StdConc.h"
#include "ConcCommon.h"
#include "ConcSession.h"
#include "ConcSessionContext.h"
#include "QueryCompiler.h"
#include "ConcXml.h"
#include "math.h"
#include "../CommonLib/ddcString.h"
Classes | |
struct | IsLessByHitSortKey |
struct | IsLessByHitSortKeyStr |
struct | COccurrenceAndQueryNodeIndex |
struct | CHitRank |
Macros | |
#define | HIT_TRIM_DEBUG(x) |
#define | HIT_SORT_DEBUG(x) |
#define | DDC_FILEREF_BINSEARCH_COEF 8 |
Functions | |
static void | dumpHits (const std::string &Label, const vector< CHit > &Hits) |
static void | dumpHitIndex (const std::string &IndexLabel, const vector< size_t > &HitIndex, const std::string &Label, const vector< CHit > &Hits) |
template<class IndexIterator > | |
IndexIterator | my_lower_bound (IndexIterator First, IndexIterator Last, const CHitSortKey &Key, const vector< CHit > &Base) |
template<class IndexIterator > | |
IndexIterator | my_upper_bound (IndexIterator First, IndexIterator Last, const CHitSortKey &Key, const vector< CHit > &Base) |
void | DeleteEOLN (string &txt) |
void | SpaceStartQuoteMarks (string &s) |
string | BuildHtmlHitStrWithHighlighting (const vector< COutputToken > &Tokens, bool bConvertASCIIToHtmlSymbols, const CHighlightTags &HighlightTags, bool bUseAnchorSpan, const string &tokenDelimiter="") |
void | GetHitRankLen (vector< COccurrenceAndQueryNodeIndex > &OccurrenceAndQueryNodeIndex, int start_pos, int end_pos, CHitRank &Result) |
Variables | |
const time_t | TheEndOfTheWorld = 0xffffffff |
#define HIT_TRIM_DEBUG | ( | x | ) |
Referenced by CConcSession::GetAllHits(), and CConcSession::GetHits().
#define HIT_SORT_DEBUG | ( | x | ) |
#define DDC_FILEREF_BINSEARCH_COEF 8 |
Referenced by CConcSession::InitFileReferences().
|
static |
References CHitSortKey::i, jsonStr(), CHit::m_BreakNo, CHit::m_DebugRankNo, CHit::m_FileNo, CHit::m_HighlightOccurrenceEnd, CHit::m_SortKey, CHit::m_Value, and CHitSortKey::s.
Referenced by CConcSession::GenerateCountStrings(), and CConcSession::GetHits().
|
static |
References CHitSortKey::i, jsonStr(), CHit::m_BreakNo, CHit::m_DebugRankNo, CHit::m_FileNo, CHit::m_HighlightOccurrenceEnd, CHit::m_SortKey, CHit::m_Value, and CHitSortKey::s.
Referenced by CConcSession::GetAllHits().
IndexIterator my_lower_bound | ( | IndexIterator | First, |
IndexIterator | Last, | ||
const CHitSortKey & | Key, | ||
const vector< CHit > & | Base | ||
) |
References CHitSortKey::i.
Referenced by CConcSession::GetAllHits().
IndexIterator my_upper_bound | ( | IndexIterator | First, |
IndexIterator | Last, | ||
const CHitSortKey & | Key, | ||
const vector< CHit > & | Base | ||
) |
References CHitSortKey::i.
Referenced by CConcSession::GetAllHits().
void DeleteEOLN | ( | string & | txt | ) |
void SpaceStartQuoteMarks | ( | string & | s | ) |
string BuildHtmlHitStrWithHighlighting | ( | const vector< COutputToken > & | Tokens, |
bool | bConvertASCIIToHtmlSymbols, | ||
const CHighlightTags & | HighlightTags, | ||
bool | bUseAnchorSpan, | ||
const string & | tokenDelimiter = "" |
||
) |
References ConvertASCIIToHtmlSymbols(), CHighlightTags::m_FirstCloser, CHighlightTags::m_FirstOpener, CHighlightTags::m_RestCloser, CHighlightTags::m_RestOpener, SpaceStartQuoteMarks(), and Trim().
Referenced by CConcSession::GenerateOneHitString(), and CConcSession::GetContext().
void GetHitRankLen | ( | vector< COccurrenceAndQueryNodeIndex > & | OccurrenceAndQueryNodeIndex, |
int | start_pos, | ||
int | end_pos, | ||
CHitRank & | Result | ||
) |
References CHitRank::m_PassageEnd, CHitRank::m_PassageStart, and CHitRank::m_QueryNodeFreqs.
Referenced by CConcSession::InitSortByRank().
const time_t TheEndOfTheWorld = 0xffffffff |
Referenced by CConcSession::CConcSession(), CConcSession::GetAllHits(), and CConcSession::SetTimeOut().