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::SphinxFunctionalObject Class Reference

#include <SphinxFunctionalObject.hpp>

Inheritance diagram for HCE::sphinx::SphinxFunctionalObject:
Collaboration diagram for HCE::sphinx::SphinxFunctionalObject:

Public Member Functions

 SphinxFunctionalObject (const std::string &nodeName_="", const std::string &homeDir_=sphinx_search_const::defaultHomeDir, const std::string &indexName_="", bool startSearchd_=false, bool stopSearchd_=false)
 SphinxFunctionalObject (const std::string &nodeName_, unsigned int nodeNumber, const std::string &homeDir_=sphinx_search_const::defaultHomeDir, const std::string &indexName_="", bool startSearchd_=false, bool stopSearchd_=false)
virtual ~SphinxFunctionalObject (void)
bool loadConfiguration (const std::string &indexName)
std::string Process (const std::string &json)
SphinxOutputJsonMessage Process (SphinxInputJsonMessage &inputJsonMessage)
void resizeResultData (size_t matchesCount, size_t attributesCount)
bool isLoadedConfig (void) const
bool easyStart (void)
bool startSearchd (void)
bool stopSearchd (void)
bool isActiveSearchd (void)
bool isConnected (void) const
bool open (void)
bool close (void)
void resetError (void)
void applyError (const std::string &msg, unsigned int code)
std::string getErrorMsg (void)
unsigned int getErrorCode (void)
void setServerHost (const std::string &serverHost_)
std::string getServerHost (void) const
void setServerPort (int serverPort_)
int getServerPort (void) const
bool setIndexFileName (const std::string &indexFileName_)
std::string getIndexFileName (void) const
unsigned long long getTimeoutedRequests (void) const
void resetTimeoutedRequests (void)
void setDefaultRequestTimeout (unsigned long defaultRequestTimeout_)
unsigned long getDefaultRequestTimeout (void) const
void setCheckIncomingDocuments (bool checkIncomingDocuments_)
bool getCheckIncomingDocuments (void) const
void setPackIncomingDocuments (bool packIncomingDocuments_)
bool getPackIncomingDocuments (void) const
void setMinNumberFieldsPacking (unsigned int minNumberFieldsPacking_)
unsigned int getMinNumberFieldsPacking (void) const
void resetLogStream (void)
void setLogStream (std::ostream &os)
std::string logMsg (bool isReset=true)
std::ostream & log (void)
void setLoggable (Loggable loggable)
void resetLoggable (void)
void parseHostPort (const std::string &in, std::string &host, unsigned int &port) throw (std::exception)
CustomMessagegetCustomMessage (void)
void setMatchMode (unsigned int matchMode_)
unsigned int getMatchMode (void) const
void setSortMode (unsigned int sortMode_)
unsigned int getSortMode (void) const
void setRankingMode (unsigned int rankingMode_, const std::string &rankExpression_="")
unsigned int getRankingMode (void) const
void setRankExpression (const std::string &rankExpression_)
std::string getRankExpression (void) const
- Public Member Functions inherited from HCE::sphinx::SphinxSearchInterface
 SphinxSearchInterface (void)
virtual ~SphinxSearchInterface (void)
void setErrorMsg (const std::string &errorMsg_)
std::string getErrorMsg (void) const
void setErrorCode (unsigned int errorCode_)
unsigned int getErrorCode (void) const
void isError (bool isError_)
bool isError (void) const
- Public Member Functions inherited from HCE::sphinx::SphinxNodeOptions
 SphinxNodeOptions (const std::string &nodeName_="", unsigned int nodeNumber_=0, const std::string &homeDir_=sphinx_search_const::defaultHomeDir, const std::string &indexName_="")
virtual ~SphinxNodeOptions (void)
void setNodeName (const std::string &nodeName_)
std::string getNodeName (void) const
void setNodeNumber (unsigned int nodeNumber_)
unsigned int getNodeNumber (void) const
void setHomeDir (const std::string &homeDir_)
std::string getHomeDir (void) const
void setIndexName (const std::string &indexName_)
std::string getIndexName (void) const
std::string getDataDir (void) const
std::string getRunDir (void) const
std::string getLogDir (void) const
std::string getEtcDir (void) const

Additional Inherited Members

- Static Public Member Functions inherited from HCE::sphinx::SphinxSearchInterface
static size_t getTimeInterval (timeval &start, timeval &stop)
- Protected Member Functions inherited from HCE::sphinx::SphinxSearchInterface
bool insensitiveCompare (const std::string &lhs, const std::string &rhs)
- Protected Attributes inherited from HCE::sphinx::SphinxSearchInterface
std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 32 of file SphinxFunctionalObject.hpp.

Constructor & Destructor Documentation

HCE::sphinx::SphinxFunctionalObject::SphinxFunctionalObject ( const std::string &  nodeName_ = "",
const std::string &  homeDir_ = sphinx_search_const::defaultHomeDir,
const std::string &  indexName_ = "",
bool  startSearchd_ = false,
bool  stopSearchd_ = false 
)
explicit

Definition at line 19 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

HCE::sphinx::SphinxFunctionalObject::SphinxFunctionalObject ( const std::string &  nodeName_,
unsigned int  nodeNumber,
const std::string &  homeDir_ = sphinx_search_const::defaultHomeDir,
const std::string &  indexName_ = "",
bool  startSearchd_ = false,
bool  stopSearchd_ = false 
)

Definition at line 38 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

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

Definition at line 39 of file SphinxFunctionalObject.hpp.

Member Function Documentation

void HCE::sphinx::SphinxFunctionalObject::applyError ( const std::string &  msg,
unsigned int  code 
)

Definition at line 259 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::close ( void  )

Definition at line 241 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::easyStart ( void  )

Definition at line 208 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::getCheckIncomingDocuments ( void  ) const
inline

Definition at line 78 of file SphinxFunctionalObject.hpp.

Here is the caller graph for this function:

CustomMessage& HCE::sphinx::SphinxFunctionalObject::getCustomMessage ( void  )
inline

Definition at line 97 of file SphinxFunctionalObject.hpp.

unsigned long HCE::sphinx::SphinxFunctionalObject::getDefaultRequestTimeout ( void  ) const

Definition at line 335 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

unsigned int HCE::sphinx::SphinxFunctionalObject::getErrorCode ( void  )

Definition at line 278 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxFunctionalObject::getErrorMsg ( void  )

Definition at line 266 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxFunctionalObject::getIndexFileName ( void  ) const

Definition at line 315 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int HCE::sphinx::SphinxFunctionalObject::getMatchMode ( void  ) const
inline

Definition at line 100 of file SphinxFunctionalObject.hpp.

unsigned int HCE::sphinx::SphinxFunctionalObject::getMinNumberFieldsPacking ( void  ) const
inline

Definition at line 84 of file SphinxFunctionalObject.hpp.

bool HCE::sphinx::SphinxFunctionalObject::getPackIncomingDocuments ( void  ) const
inline

Definition at line 81 of file SphinxFunctionalObject.hpp.

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxFunctionalObject::getRankExpression ( void  ) const
inline

Definition at line 109 of file SphinxFunctionalObject.hpp.

unsigned int HCE::sphinx::SphinxFunctionalObject::getRankingMode ( void  ) const
inline

Definition at line 106 of file SphinxFunctionalObject.hpp.

std::string HCE::sphinx::SphinxFunctionalObject::getServerHost ( void  ) const

Definition at line 295 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int HCE::sphinx::SphinxFunctionalObject::getServerPort ( void  ) const

Definition at line 305 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int HCE::sphinx::SphinxFunctionalObject::getSortMode ( void  ) const
inline

Definition at line 103 of file SphinxFunctionalObject.hpp.

unsigned long long HCE::sphinx::SphinxFunctionalObject::getTimeoutedRequests ( void  ) const

Definition at line 320 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::isActiveSearchd ( void  )

Definition at line 223 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::isConnected ( void  ) const

Definition at line 228 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::isLoadedConfig ( void  ) const
inline

Definition at line 46 of file SphinxFunctionalObject.hpp.

bool HCE::sphinx::SphinxFunctionalObject::loadConfiguration ( const std::string &  indexName)

Definition at line 110 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::ostream & HCE::sphinx::SphinxFunctionalObject::log ( void  )

Definition at line 73 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxFunctionalObject::logMsg ( bool  isReset = true)

Definition at line 68 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::open ( void  )

Definition at line 233 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::parseHostPort ( const std::string &  in,
std::string &  host,
unsigned int &  port 
) throw (std::exception)

Definition at line 88 of file SphinxFunctionalObject.cpp.

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxFunctionalObject::Process ( const std::string &  json)
virtual

Implements HCE::sphinx::SphinxSearchInterface.

Definition at line 340 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

SphinxOutputJsonMessage HCE::sphinx::SphinxFunctionalObject::Process ( SphinxInputJsonMessage inputJsonMessage)
virtual

Implements HCE::sphinx::SphinxSearchInterface.

Definition at line 405 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::resetError ( void  )

Definition at line 246 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::sphinx::SphinxFunctionalObject::resetLoggable ( void  )

Definition at line 83 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::resetLogStream ( void  )

Definition at line 58 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::resetTimeoutedRequests ( void  )

Definition at line 325 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::resizeResultData ( size_t  matchesCount,
size_t  attributesCount 
)

Definition at line 203 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::setCheckIncomingDocuments ( bool  checkIncomingDocuments_)
inline

Definition at line 77 of file SphinxFunctionalObject.hpp.

void HCE::sphinx::SphinxFunctionalObject::setDefaultRequestTimeout ( unsigned long  defaultRequestTimeout_)

Definition at line 330 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::setIndexFileName ( const std::string &  indexFileName_)

Definition at line 310 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::setLoggable ( Loggable  loggable)

Definition at line 78 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

void HCE::sphinx::SphinxFunctionalObject::setLogStream ( std::ostream &  os)

Definition at line 63 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::sphinx::SphinxFunctionalObject::setMatchMode ( unsigned int  matchMode_)
inline

Definition at line 99 of file SphinxFunctionalObject.hpp.

void HCE::sphinx::SphinxFunctionalObject::setMinNumberFieldsPacking ( unsigned int  minNumberFieldsPacking_)
inline

Definition at line 83 of file SphinxFunctionalObject.hpp.

void HCE::sphinx::SphinxFunctionalObject::setPackIncomingDocuments ( bool  packIncomingDocuments_)
inline

Definition at line 80 of file SphinxFunctionalObject.hpp.

void HCE::sphinx::SphinxFunctionalObject::setRankExpression ( const std::string &  rankExpression_)
inline

Definition at line 108 of file SphinxFunctionalObject.hpp.

void HCE::sphinx::SphinxFunctionalObject::setRankingMode ( unsigned int  rankingMode_,
const std::string &  rankExpression_ = "" 
)

Definition at line 103 of file SphinxFunctionalObject.cpp.

void HCE::sphinx::SphinxFunctionalObject::setServerHost ( const std::string &  serverHost_)

Definition at line 290 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::sphinx::SphinxFunctionalObject::setServerPort ( int  serverPort_)

Definition at line 300 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::sphinx::SphinxFunctionalObject::setSortMode ( unsigned int  sortMode_)
inline

Definition at line 102 of file SphinxFunctionalObject.hpp.

bool HCE::sphinx::SphinxFunctionalObject::startSearchd ( void  )

Definition at line 213 of file SphinxFunctionalObject.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxFunctionalObject::stopSearchd ( void  )

Definition at line 218 of file SphinxFunctionalObject.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: