Functions | |
void | fvector_to_dbstring_without_cast (const FVector &v, std::string &feature_values) |
Converts FVector to dbstring without using cast as float8[]. | |
void | svector_to_dbstring_without_cast (const SVector &s, std::string &feature_vector_str) |
Converts SVector to dbstring without using cast as pair[]. | |
void | fillVectors () |
Randomly fill fvector and svector lists. | |
void | test_count (bool &success) |
Tests count hazy message method. | |
template<class T> | |
void | single_test_update (T vec, bool &success) |
Tests that update message is working correctly. | |
template<class T> | |
void | single_test_se_lazy_naive (T vec, bool &success, bool dense) |
Tests that single entity read lazy naive message is working correctly. | |
template<class T> | |
void | single_test_se_lazy_hazy (T vec, bool &success, bool dense) |
Tests that single entity read lazy hazy is working correctly. | |
void | test_update (bool &success) |
Tests that update method is working correctly. | |
void | test_se_lazy_hazy (bool &success) |
Tests that single entity read lazy hazy is working correctly. | |
void | test_se_lazy_naive (bool &success) |
Tests that single entity read lazy naive is working correctly. | |
void | test_query_id (bool &success) |
Tests that query server id is working correctly. | |
void | test_close_connection (bool &success) |
Tests that close connection query is working correctly. | |
void | create_random_string (char *s, size_t len) |
void | test_create_view (bool &success) |
void | test_delete_bin (bool &success) |
void | test_se_eager (bool &success) |
Tests that single entity read eager is working correctly. | |
template<class T> | |
void | single_test_se_lazy_naive_bin (T vec, bool &success) |
Tests that single entity read lazy naive that sends binary data is working correctly. | |
void | test_se_lazy_naive_bin (bool &success) |
Tests that single entity read lazy naive that sends binary data is working correctly. | |
template<class T> | |
void | single_test_se_lazy_hazy_bin (T vec, bool &success) |
Tests that single entity read lazy hazy that sends binary data is working correctly. | |
void | test_se_lazy_hazy_bin (bool &success) |
Tests that single entity read lazy hazy that sends binary data is working correctly. | |
int | main () |
Variables | |
const int | numSVectors = 50 |
This class implements regression tests for hazy message class For each query in hazy message, a test first fills both SVector and FVector lists to be used Then, it creates a msg for that query and check that msg is correctly created. | |
int | dim = 10000 |
int | max_svector_dim = 10000 |
const int | test_num = numSVectors |
const int | range = 100 |
FVector | fVectorList [numSVectors] |
SVector | sVectorList [numSVectors] |
void create_random_string | ( | char * | s, | |
size_t | len | |||
) |
void fillVectors | ( | ) |
Randomly fill fvector and svector lists.
void fvector_to_dbstring_without_cast | ( | const FVector & | v, | |
std::string & | feature_values | |||
) |
int main | ( | ) |
void single_test_se_lazy_hazy | ( | T | vec, | |
bool & | success, | |||
bool | dense | |||
) |
Tests that single entity read lazy hazy is working correctly.
[in] | vec | feature vector of the entity |
[out] | success | |
[in] | dense | whether feature vector is dense or sparse |
void single_test_se_lazy_hazy_bin | ( | T | vec, | |
bool & | success | |||
) |
Tests that single entity read lazy hazy that sends binary data is working correctly.
[in] | vec | feature vector of the entity |
[out] | success |
void single_test_se_lazy_naive | ( | T | vec, | |
bool & | success, | |||
bool | dense | |||
) |
Tests that single entity read lazy naive message is working correctly.
[in] | vec | feature vector of the entity |
[out] | success | |
[in] | dense | whether vector is sparse or dense |
void single_test_se_lazy_naive_bin | ( | T | vec, | |
bool & | success | |||
) |
Tests that single entity read lazy naive that sends binary data is working correctly.
[in] | vec | feature vector of the entity |
[out] | success |
void single_test_update | ( | T | vec, | |
bool & | success | |||
) |
Tests that update message is working correctly.
[in] | vec | feature vector of the entity |
[out] | success |
void svector_to_dbstring_without_cast | ( | const SVector & | s, | |
std::string & | feature_vector_str | |||
) |
void test_close_connection | ( | bool & | success | ) |
Tests that close connection query is working correctly.
[out] | success |
void test_count | ( | bool & | success | ) |
Tests count hazy message method.
[out] | success |
void test_create_view | ( | bool & | success | ) |
void test_delete_bin | ( | bool & | success | ) |
void test_query_id | ( | bool & | success | ) |
Tests that query server id is working correctly.
[out] | success |
void test_se_eager | ( | bool & | success | ) |
Tests that single entity read eager is working correctly.
[out] | success |
void test_se_lazy_hazy | ( | bool & | success | ) |
Tests that single entity read lazy hazy is working correctly.
[out] | success |
void test_se_lazy_hazy_bin | ( | bool & | success | ) |
Tests that single entity read lazy hazy that sends binary data is working correctly.
[out] | success |
void test_se_lazy_naive | ( | bool & | success | ) |
Tests that single entity read lazy naive is working correctly.
[out] | success |
void test_se_lazy_naive_bin | ( | bool & | success | ) |
Tests that single entity read lazy naive that sends binary data is working correctly.
[out] | success |
void test_update | ( | bool & | success | ) |
Tests that update method is working correctly.
[out] | success |
int dim = 10000 |
int max_svector_dim = 10000 |
const int numSVectors = 50 |
This class implements regression tests for hazy message class For each query in hazy message, a test first fills both SVector and FVector lists to be used Then, it creates a msg for that query and check that msg is correctly created.
Then, tests that we correctly retrieve message code Finally, tests whether we correctly parse elements or not
const int range = 100 |
const int test_num = numSVectors |