diff --git a/Database/Database.cpp b/Database/Database.cpp index c30ed4c..dbc8f3f 100644 --- a/Database/Database.cpp +++ b/Database/Database.cpp @@ -1708,7 +1708,7 @@ Database::join(vector& _result_list, int _var_id, int _pre_id, \ continue; } #ifdef DEBUG - printf("id_list size and can_list size: %d\t%d\n", id_list_len, _can_list.size()); + //printf("id_list size and can_list size: %d\t%d\n", id_list_len, _can_list.size()); #endif // cout << "\t\tid_list_len: " << id_list_len << endl << "\t\t"; // for(int i = 0; i < id_list_len; i ++){ diff --git a/Query/BasicQuery.cpp b/Query/BasicQuery.cpp index 00f3ddc..6395702 100644 --- a/Query/BasicQuery.cpp +++ b/Query/BasicQuery.cpp @@ -736,6 +736,18 @@ bool BasicQuery::dupRemoval_invalidRemoval() cout << "invalid_num: " << result_size - valid_num << endl; cout << "OUT dupRemoval_invalidRemoval" << endl; + + //DEBUG + printf("the results represented by id\n"); + for(int i = 0; i < valid_num; ++i) + { + for(int j = 0; j < this->graph_var_num; ++j) + { + printf("%d ",this->result_list[i][j]); + } + printf("\n"); + } + return true; } diff --git a/README.md b/README.md index 83ebded..e6fdeab 100644 --- a/README.md +++ b/README.md @@ -135,10 +135,7 @@ insert a handful of new RDF triples to the orginal database. Note that each command ends with ";". -####5. API -We provide JAVA and C++ API for accessing gStore now. Please refer to example codes in `api/cpp/example` and `api/java/example`. - -####6. gtest +####5. gtest We provide a test tool to generate structural logs for datasets. Please type `./gtest --help` in the working directory for detail. (change paths in the main/gtest.cpp if needed) @@ -153,6 +150,9 @@ And the output will be sorted into there logs: load.log/(for database loading ti All logs produced by this program are in TSV format, you can load them into Calc/Excel directly. +####6. API +We provide JAVA and C++ API for accessing gStore now. Please refer to example codes in `api/cpp/example` and `api/java/example`. + ### System Update Log ####Nov 06, 2015. @@ -163,7 +163,7 @@ In addition, most warnnings are removed, except for warnnings in Parser module, What is more, we change RangeValue module to Stream, and add Stream for ResultSet. We also better the gquery console, so now you can redirect query results to a specified file in the gsql console. -Unable to add Stream for IDlist due to complex operations, but this is not necessary. Realpath is used to supported soft links in the gquery console, but it not works in Gstore.(though works if not in Gtsore) +Unable to add Stream for IDlist due to complex operations, but this is not necessary. Realpath is used to supported soft links in the gquery console, but it not works in Gstore.(though works if not in Gstore) ####Oct 20, 2015.