Skip to content

Commit

Permalink
Rename ResultTable to Result in PathSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
JoBuRo committed Jun 24, 2024
1 parent 02380c3 commit 2451fd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/engine/PathSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ bool PathSearch::knownEmptyResult() { return subtree_->knownEmptyResult(); };
vector<ColumnIndex> PathSearch::resultSortedOn() const { return {}; };

// _____________________________________________________________________________
ResultTable PathSearch::computeResult() {
shared_ptr<const ResultTable> subRes = subtree_->getResult();
Result PathSearch::computeResult([[maybe_unused]] bool requestLaziness) {
std::shared_ptr<const Result> subRes = subtree_->getResult();
IdTable idTable{allocator()};
idTable.setNumColumns(getResultWidth());

Expand Down
2 changes: 1 addition & 1 deletion src/engine/PathSearch.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class PathSearch : public Operation {

vector<ColumnIndex> resultSortedOn() const override;

ResultTable computeResult() override;
Result computeResult([[maybe_unused]] bool requestLaziness) override;
VariableToColumnMap computeVariableToColumnMap() const override;

private:
Expand Down
6 changes: 3 additions & 3 deletions test/PathSearchTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "engine/PathSearch.h"
#include "engine/QueryExecutionTree.h"
#include "engine/ResultTable.h"
#include "engine/Result.h"
#include "engine/ValuesForTesting.h"
#include "gmock/gmock.h"
#include "util/IdTableHelpers.h"
Expand All @@ -22,14 +22,14 @@ using Vars = std::vector<std::optional<Variable>>;

} // namespace

ResultTable performPathSearch(PathSearchConfiguration config, IdTable input,
Result performPathSearch(PathSearchConfiguration config, IdTable input,
Vars vars) {
auto qec = getQec();
auto subtree = ad_utility::makeExecutionTree<ValuesForTesting>(
qec, std::move(input), vars);
PathSearch p = PathSearch(qec, std::move(subtree), config);

return p.computeResult();
return p.computeResult(false);
}

TEST(PathSearchTest, constructor) {
Expand Down

0 comments on commit 2451fd7

Please sign in to comment.