ddc
Classes | Macros | Functions | Variables
ConcSession.cpp File Reference
#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"
Include dependency graph for ConcSession.cpp:

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
 

Macro Definition Documentation

◆ HIT_TRIM_DEBUG

#define HIT_TRIM_DEBUG (   x)

◆ HIT_SORT_DEBUG

#define HIT_SORT_DEBUG (   x)

◆ DDC_FILEREF_BINSEARCH_COEF

#define DDC_FILEREF_BINSEARCH_COEF   8

Function Documentation

◆ dumpHits()

static void dumpHits ( const std::string &  Label,
const vector< CHit > &  Hits 
)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpHitIndex()

static void dumpHitIndex ( const std::string &  IndexLabel,
const vector< size_t > &  HitIndex,
const std::string &  Label,
const vector< CHit > &  Hits 
)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ my_lower_bound()

template<class IndexIterator >
IndexIterator my_lower_bound ( IndexIterator  First,
IndexIterator  Last,
const CHitSortKey Key,
const vector< CHit > &  Base 
)

References CHitSortKey::i.

Referenced by CConcSession::GetAllHits().

Here is the caller graph for this function:

◆ my_upper_bound()

template<class IndexIterator >
IndexIterator my_upper_bound ( IndexIterator  First,
IndexIterator  Last,
const CHitSortKey Key,
const vector< CHit > &  Base 
)

References CHitSortKey::i.

Referenced by CConcSession::GetAllHits().

Here is the caller graph for this function:

◆ DeleteEOLN()

void DeleteEOLN ( string &  txt)

◆ SpaceStartQuoteMarks()

void SpaceStartQuoteMarks ( string &  s)

Referenced by BuildHtmlHitStrWithHighlighting().

Here is the caller graph for this function:

◆ BuildHtmlHitStrWithHighlighting()

string BuildHtmlHitStrWithHighlighting ( const vector< COutputToken > &  Tokens,
bool  bConvertASCIIToHtmlSymbols,
const CHighlightTags HighlightTags,
bool  bUseAnchorSpan,
const string &  tokenDelimiter = "" 
)

◆ GetHitRankLen()

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().

Here is the caller graph for this function:

Variable Documentation

◆ TheEndOfTheWorld

const time_t TheEndOfTheWorld = 0xffffffff