Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose scan vertex. #114

Merged
merged 2 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ add_executable(storage_client_example
target_link_libraries(session_example
PRIVATE
nebula_graph_client
-pthread
)

target_link_libraries(session_pool_example
PRIVATE
nebula_graph_client
-pthread
)

target_link_libraries(storage_client_example
PRIVATE
nebula_storage_client
-pthread
)
17 changes: 17 additions & 0 deletions examples/StorageClientExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,22 @@ int main(int argc, char* argv[]) {
std::cout << "+++++++++++++++++++++++++" << std::endl;
}

nebula::ScanVertexIter scanVertexIter = c.scanVertexWithPart("nba",
1,
{{"player", std::vector<std::string>{"name"}}},
10,
0,
std::numeric_limits<int64_t>::max(),
"",
true,
true);
std::cout << "scan vertex..." << std::endl;
while (scanVertexIter.hasNext()) {
std::cout << "-------------------------" << std::endl;
nebula::DataSet ds = scanVertexIter.next();
std::cout << ds << std::endl;
std::cout << "+++++++++++++++++++++++++" << std::endl;
}

return 0;
}
1 change: 1 addition & 0 deletions exported-symbols.map
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ global:
nebula::ExecutionResponse::*;
nebula::StorageClient::*;
nebula::ScanEdgeIter::*;
nebula::ScanVertexIter::*;
*::_S_empty_rep_storage;
};
local:
Expand Down