hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxFunctionalObjectTest.hpp
Go to the documentation of this file.
1 
14 #ifndef SPHINX_FUNCTIONAL_OBJECT_TEST_HPP
15 #define SPHINX_FUNCTIONAL_OBJECT_TEST_HPP
16 
17 namespace HCE
18 {
19 namespace sphinx
20 {
21 namespace tests
22 {
23 //-----------------------------------------------------------------------------
25 {
26  static void initFilters(SphinxFilter::FilterType filterType, std::vector<Poco::SharedPtr<SphinxFilter> >& filters);
27  static void makeSearchFilter(SphinxFunctionalObject& fObj, SphinxFilter::FilterType filterType, size_t repeatCount);
28  static void createBigIndex(const std::string& homeDir, const std::string& sourceTestDir, const std::string& indexName);
29 public:
30  static bool isUse64Bit(SphinxFunctionalObject& fObj); // for check usable 64 bit document ID (return true if use 64 bit, but false if use 32 bit).
31 
35 
36  static void fullIndexerTest(SphinxFunctionalObject& fObj);
37  static void fullSearcherTest(SphinxFunctionalObject& fObj);
39  static void testSerializationSearchProcess(void);
40 
41  static float testPerfomance(const std::string& homeDir, size_t indexCount, const std::string& dataFileName, std::vector<std::string>& queries, bool multiIndex=true);
42  static void testPerfomance(const std::string& homeDir, const std::string& dataFileName, const size_t indexCount=10);
43 
44  static void testStressGetBigResult(SphinxFunctionalObject& fObj, const std::string& sourceTestDir,
45  const std::string& indexName, bool needMakeIndex = false, bool needRemoveIndex = false);
46  static void testGetResultUseOffset(SphinxFunctionalObject& fObj, const std::string& sourceTestDir,
47  const std::string& indexName, bool needMakeIndex = false, bool needRemoveIndex = false);
48 };
49 //-----------------------------------------------------------------------------
50 //-----------------------------------------------------------------------------
52 {
53  std::string dataFileName;
54  size_t indexCount;
55 };
56 //-----------------------------------------------------------------------------
57 //-----------------------------------------------------------------------------
58 } // namespace tests
59 } // namespace sphinx
60 } // namespace HCE
61 
62 #endif // SPHINX_FUNCTIONAL_OBJECT_TEST_HPP