Skip to content

Commit

Permalink
fix example consuming header
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandez committed May 3, 2017
1 parent 2cfd7a5 commit d4b5244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hdt-lib/tests/useHeaderStats.cpp
Expand Up @@ -21,7 +21,7 @@ void searchInHeader(int numPredicates, HDT* hdt,string metric) {
/*
* Example of searching for a specific predicate
*/

/*
string sub="http://example.org/predicate1";
int idPred = hdt->getDictionary()->stringToId(sub,PREDICATE);
stringstream ss;
Expand All @@ -35,8 +35,8 @@ void searchInHeader(int numPredicates, HDT* hdt,string metric) {
string valueofBranchingFactor = mysol->getObject();
cout<<"my value is:"<<valueofBranchingFactor<<endl;
}
*/

/*

for (int p = 1; p <= numPredicates; p++) {
stringstream ss;
Expand All @@ -49,7 +49,7 @@ void searchInHeader(int numPredicates, HDT* hdt,string metric) {
cout << hdt->getDictionary()->idToString(p,PREDICATE) << ": " + t->getObject() << endl;
}
delete tsol; // Remember to delete iterator to avoid memory leaks!
}*/
}
}

int main(int argc, char *argv[]) {
Expand Down

0 comments on commit d4b5244

Please sign in to comment.