ddc
Public Member Functions | Protected Attributes | List of all members
CFreeBiblStringConstant Class Reference

#include <FreeBiblIndex.h>

Inheritance diagram for CFreeBiblStringConstant:
Inheritance graph
[legend]
Collaboration diagram for CFreeBiblStringConstant:
Collaboration graph
[legend]

Public Member Functions

 CFreeBiblStringConstant (const string &value="")
 
virtual ~CFreeBiblStringConstant ()
 
virtual void clear ()
 
virtual string GetTypeStr () const
 
virtual CFreeBiblIndexTypeId GetTypeId () const
 return bibl-field subtype identifier More...
 
virtual const string & GetXpathStr () const
 
virtual string GetStringValue (DWORD FileNo) const
 
virtual int GetIntegerValue (DWORD FileNo) const
 
virtual void ReadFromDisk (string Path, DWORD FileBreaksSize, bool useMMap=false)
 
virtual bool ConvertAndSaveToDiskAfterIndexing (string Path)
 
virtual void CreateUnion (const string &Path, const vector< const CFreeBiblIndex *> &Indices, const vector< size_t > &FileCounts)
 
virtual void CreatePartitions (vector< CFreeBiblIndex *> &Parts, const vector< string > &Paths, const vector< DWORD > &EndFileNo) const
 
void setValue (const string &value)
 
- Public Member Functions inherited from CFreeBiblStringIndex
 CFreeBiblStringIndex ()
 
virtual ~CFreeBiblStringIndex ()
 
virtual void RegisterBiblStringItemId (const string &Value)
 
bool DeleteBiblFiles (string Path) const
 
virtual bool GetFilterBounds (CDDCFilterWithBounds &Filter, const string &LoValue, const string &HiValue) const
 
virtual bool GetFilterValue (CDDCFilterWithBounds &Filter, const string &Value) const
 
virtual bool GetFilterValues (CDDCFilterWithBounds &Filter, const string &Regex) const
 
virtual bool GetFilterValues (CDDCFilterWithBounds &Filter, const set< string > &Values) const
 initialize CDDCFilterWithBounds for a set of target values (default throws errLogic) More...
 
virtual size_t size (void) const
 for server info More...
 
virtual DWORD GetIntegerLowerBound (const string &Value) const
 for key-based pruning (v2.1.9): map a single value-string to its value-id More...
 
- Public Member Functions inherited from CFreeBiblIndex
 CFreeBiblIndex ()
 
virtual ~CFreeBiblIndex ()
 
string GetDescriptionStr () const
 
virtual bool FileMatches (DWORD FileNo, const CDDCFilterWithBounds &Filter) const
 test whether a given file matches the filter condition (for count(*) queries) More...
 
- Public Member Functions inherited from CFreeBiblIndexInterface
virtual ~CFreeBiblIndexInterface ()
 

Protected Attributes

string m_Value
 
- Protected Attributes inherited from CFreeBiblStringIndex
BuildStringItemsMapT m_BuildStringItemsMap
 
size_t m_BuildStringItemsSize
 
ddcStringEnum m_ValuesE
 a set of all possible string values for this index More...
 

Additional Inherited Members

- Public Attributes inherited from CFreeBiblIndex
string m_Name
 the name of the index (from options file) More...
 
string m_Xpath
 the XPath to this information (from options file) More...
 
ddcVecFile< DWORDm_ValuesForEachFile
 integer references to m_Values for each corpus file More...
 
bool m_bShowInHeader
 should DDC show this field for each header? More...
 
RML_RE::Optionsm_pRegexOpts
 regex options More...
 
- Protected Types inherited from CFreeBiblStringIndex
typedef map< string, DWORDBuildStringItemsMapT
 
- Protected Member Functions inherited from CFreeBiblStringIndex
string GetStringFileName (string Path) const
 
void ReadBiblStringItems (string FileName, bool useMMap=false)
 
bool WriteBiblStringItems (const vector< string > &Set, string FileName) const
 
- Protected Member Functions inherited from CFreeBiblIndex
string GetIndexFileName (string Path) const
 

Constructor & Destructor Documentation

◆ CFreeBiblStringConstant()

CFreeBiblStringConstant::CFreeBiblStringConstant ( const string &  value = "")

◆ ~CFreeBiblStringConstant()

CFreeBiblStringConstant::~CFreeBiblStringConstant ( )
virtual

Member Function Documentation

◆ clear()

void CFreeBiblStringConstant::clear ( void  )
virtual

Reimplemented from CFreeBiblStringIndex.

References CFreeBiblStringIndex::clear(), and ClearString().

Here is the call graph for this function:

◆ GetTypeStr()

string CFreeBiblStringConstant::GetTypeStr ( ) const
virtual

Reimplemented from CFreeBiblStringIndex.

References StringConstantTypeStr.

◆ GetTypeId()

CFreeBiblIndexTypeId CFreeBiblStringConstant::GetTypeId ( ) const
virtual

return bibl-field subtype identifier

Reimplemented from CFreeBiblStringIndex.

References cfbiStringConstant.

◆ GetXpathStr()

const string & CFreeBiblStringConstant::GetXpathStr ( ) const
virtual

Reimplemented from CFreeBiblIndex.

◆ GetStringValue()

string CFreeBiblStringConstant::GetStringValue ( DWORD  FileNo) const
virtual

Reimplemented from CFreeBiblStringIndex.

◆ GetIntegerValue()

int CFreeBiblStringConstant::GetIntegerValue ( DWORD  FileNo) const
virtual

Reimplemented from CFreeBiblIndex.

◆ ReadFromDisk()

void CFreeBiblStringConstant::ReadFromDisk ( string  Path,
DWORD  FileBreaksSize,
bool  useMMap = false 
)
virtual

Reimplemented from CFreeBiblStringIndex.

◆ ConvertAndSaveToDiskAfterIndexing()

bool CFreeBiblStringConstant::ConvertAndSaveToDiskAfterIndexing ( string  Path)
virtual

Reimplemented from CFreeBiblStringIndex.

◆ CreateUnion()

void CFreeBiblStringConstant::CreateUnion ( const string &  Path,
const vector< const CFreeBiblIndex *> &  Indices,
const vector< size_t > &  FileCounts 
)
virtual

Reimplemented from CFreeBiblStringIndex.

References cfbiStringConstant, ddcLogWarn, CFreeBiblIndex::GetTypeId(), CFreeBiblIndex::m_Name, and m_Value.

Here is the call graph for this function:

◆ CreatePartitions()

void CFreeBiblStringConstant::CreatePartitions ( vector< CFreeBiblIndex *> &  Parts,
const vector< string > &  Paths,
const vector< DWORD > &  EndFileNo 
) const
virtual

Reimplemented from CFreeBiblStringIndex.

References ddcLogDebug, and CFreeBiblIndex::m_Name.

◆ setValue()

void CFreeBiblStringConstant::setValue ( const string &  value)

References CFreeBiblIndex::clear().

Here is the call graph for this function:

Member Data Documentation

◆ m_Value

string CFreeBiblStringConstant::m_Value
protected

Referenced by CreateUnion().


The documentation for this class was generated from the following files: