comparison soap.cpp @ 324:c93be2f3a674

Merge of branches/large_adb -r 514:524 onto the trunk. No conflicts. Added LARGE_ADB support. Turn on with --ntracks 20001 or greater. Use --adb_feature_root to locate feature files at QUERY time. A bug fix in LSH indexing that was incorrectly thresholding large numbers of shingles.
author mas01mc
date Thu, 21 Aug 2008 21:28:33 +0000
parents b671a46873c2
children 7ff56cce3297
comparison
equal deleted inserted replaced
315:d2c56d4f841e 324:c93be2f3a674
16 std::cout << "numFiles = " << adbStatusResponse.result.numFiles << std::endl; 16 std::cout << "numFiles = " << adbStatusResponse.result.numFiles << std::endl;
17 std::cout << "dim = " << adbStatusResponse.result.dim << std::endl; 17 std::cout << "dim = " << adbStatusResponse.result.dim << std::endl;
18 std::cout << "length = " << adbStatusResponse.result.length << std::endl; 18 std::cout << "length = " << adbStatusResponse.result.length << std::endl;
19 std::cout << "dudCount = " << adbStatusResponse.result.dudCount << std::endl; 19 std::cout << "dudCount = " << adbStatusResponse.result.dudCount << std::endl;
20 std::cout << "nullCount = " << adbStatusResponse.result.nullCount << std::endl; 20 std::cout << "nullCount = " << adbStatusResponse.result.nullCount << std::endl;
21 std::cout << "flags = " << adbStatusResponse.result.flags << std::endl; 21 std::cout << "flags = " << (adbStatusResponse.result.flags & 0x00FFFFFF) << std::endl;
22 } else { 22 } else {
23 soap_print_fault(&soap,stderr); 23 soap_print_fault(&soap,stderr);
24 } 24 }
25 25
26 soap_destroy(&soap); 26 soap_destroy(&soap);
124 strncpy(queryType, "point", strlen("point")); 124 strncpy(queryType, "point", strlen("point"));
125 else if (qType == O2_SEQUENCE_QUERY) 125 else if (qType == O2_SEQUENCE_QUERY)
126 strncpy(queryType, "sequence", strlen("sequence")); 126 strncpy(queryType, "sequence", strlen("sequence"));
127 else if(qType == O2_TRACK_QUERY) 127 else if(qType == O2_TRACK_QUERY)
128 strncpy(queryType,"track", strlen("track")); 128 strncpy(queryType,"track", strlen("track"));
129 else 129 else if(qType == O2_N_SEQUENCE_QUERY)
130 strncpy(queryType, "", strlen("")); 130 strncpy(queryType,"nsequence", strlen("nsequence"));
131 131
132 if(pointNN==0) 132 if(pointNN==0)
133 pointNN=10; 133 pointNN=10;
134 if(trackNN==0) 134 if(trackNN==0)
135 trackNN=10; 135 trackNN=10;
283 SERVER_LSH_INDEX_SINGLETON = lsh; 283 SERVER_LSH_INDEX_SINGLETON = lsh;
284 fprintf(stderr, "LSH INDEX READY\n"); 284 fprintf(stderr, "LSH INDEX READY\n");
285 fflush(stderr); 285 fflush(stderr);
286 delete[] indexName; 286 delete[] indexName;
287 } 287 }
288
289 // Server-side path prefix to databases and features
290 if(adb_root)
291 SERVER_ADB_ROOT = (char*)adb_root; // Server-side database root
292 if(adb_feature_root)
293 SERVER_ADB_FEATURE_ROOT = (char*)adb_feature_root; // Server-side features root
288 294
289 for (int i = 1; ; i++) 295 for (int i = 1; ; i++)
290 { 296 {
291 s = soap_accept(&soap); 297 s = soap_accept(&soap);
292 if (s < 0) 298 if (s < 0)