HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::sphinx::IndexMerge Class Reference

#include <SphinxAdminCommand.hpp>

Inheritance diagram for HCE::sphinx::IndexMerge:
Collaboration diagram for HCE::sphinx::IndexMerge:

Public Types

typedef IndexRebuild inherited

Public Member Functions

 IndexMerge (SphinxFunctionalObject &fObj)
virtual ~IndexMerge (void)
bool execute (void)
- Public Member Functions inherited from HCE::sphinx::IndexRebuild
 IndexRebuild (SphinxFunctionalObject &fObj)
virtual ~IndexRebuild (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
void setIndexName (const std::string &indexName_)
std::string getIndexName (void) const
void addBranch (const std::string &branch)
std::vector< std::string > & getBranches (void)
- Public Member Functions inherited from HCE::sphinx::SphinxAdminCommand
 SphinxAdminCommand (SphinxFunctionalObject &fObj_)
virtual ~SphinxAdminCommand (void)
void setResultData (const std::string &resultData_)
std::string getResultData (void) const
- Public Member Functions inherited from HCE::IJsonSerializable
 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
void setErrorMsg (const std::string &errorMsg_)
std::string getErrorMsg (void) const
void setErrorCode (unsigned int errorCode_)
unsigned int getErrorCode (void) const
bool isError (void) const

Protected Member Functions

bool makeMerge (const std::string &branchName, const std::string &configPath, const std::string &trunkName, unsigned long long &maxDocId)
bool makeTrunk (const std::string &trunkName, const std::string &configPath, std::vector< std::string > &vIndexes, unsigned long long &maxDocId) throw (Poco::Exception)
- Protected Member Functions inherited from HCE::sphinx::IndexRebuild
bool makeSource (const std::string &schemaFile, const std::string &branchName, const std::string &sourcePath, const std::string &configPath)
bool makeIndex (const std::string &sourceFile, const std::string &branchName, const std::string &configPath, unsigned long long maxDocId)
- Protected Member Functions inherited from HCE::sphinx::SphinxAdminCommand
bool makeDir (const std::string &path)
bool cleanDir (const std::string &path)
bool isExistDir (const std::string &path)
bool isExistFile (const std::string &file)
bool isAllowedString (const std::string &str)
bool copyFile (const std::string &srcFile, const std::string &dstFile)
bool moveFile (const std::string &srcFile, const std::string &dstFile)
bool removeFile (const std::string &file)
bool moveIndexFiles (const std::string &indexFileName, const std::string &srcPath, const std::string &dstPath)
bool copyIndexFiles (const std::string &indexFileName, const std::string &srcPath, const std::string &dstPath)
bool removeIndexFile (const std::string &indexFileName, const std::string &path)
bool getFileList (const std::string &path, std::vector< std::string > &vFiles, const std::string &ext)
bool getIndexList (const std::string &path, std::vector< std::string > &vIndexes)
bool getFreeAllowedPort (unsigned int &res)
bool makeTrunkConfig (const std::string &trunkName, const std::string &indexName, const std::string &indexFileName, SphinxConfigOptions &configOptions)
bool isExistError (const std::string &shellExecMsg)
std::string getPropertyFileName (const std::string &indexPath, const std::string &branchName)
std::string getConfigFileName (const std::string &indexPath, const std::string &branchName)
void writePropertyOptions (SphinxConfigCreator &configCreator, const SphinxConfigOptions &configOptions)
- Protected Member Functions inherited from HCE::IJsonSerializable
template<class T = unsigned long long>
convertVarToNumeric (Poco::Dynamic::Var &var, T defaultValue)

Additional Inherited Members

- Protected Types inherited from HCE::sphinx::IndexRebuild
typedef SphinxAdminCommand inherited
- Protected Attributes inherited from HCE::sphinx::IndexRebuild
std::string indexName
std::vector< std::string > branches

Detailed Description

Definition at line 261 of file SphinxAdminCommand.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

HCE::sphinx::IndexMerge::IndexMerge ( SphinxFunctionalObject fObj)
explicit

Definition at line 1507 of file SphinxAdminCommand.cpp.

virtual HCE::sphinx::IndexMerge::~IndexMerge ( void  )
inlinevirtual

Definition at line 274 of file SphinxAdminCommand.hpp.

Member Function Documentation

bool HCE::sphinx::IndexMerge::execute ( void  )
virtual

Reimplemented from HCE::sphinx::IndexRebuild.

Reimplemented in HCE::sphinx::IndexDeleteDataFile, and HCE::sphinx::IndexMergeTrunk.

Definition at line 1721 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::IndexMerge::makeMerge ( const std::string &  branchName,
const std::string &  configPath,
const std::string &  trunkName,
unsigned long long &  maxDocId 
)
protected

Definition at line 1512 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::IndexMerge::makeTrunk ( const std::string &  trunkName,
const std::string &  configPath,
std::vector< std::string > &  vIndexes,
unsigned long long &  maxDocId 
) throw (Poco::Exception)
protected

Definition at line 1626 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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