diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 78d2f42e..546a7514 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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 ) diff --git a/examples/StorageClientExample.cpp b/examples/StorageClientExample.cpp index c1e311e1..4ae9c94b 100644 --- a/examples/StorageClientExample.cpp +++ b/examples/StorageClientExample.cpp @@ -35,5 +35,22 @@ int main(int argc, char* argv[]) { std::cout << "+++++++++++++++++++++++++" << std::endl; } + nebula::ScanVertexIter scanVertexIter = c.scanVertexWithPart("nba", + 1, + {{"player", std::vector{"name"}}}, + 10, + 0, + std::numeric_limits::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; } diff --git a/exported-symbols.map b/exported-symbols.map index 2f6450da..8f6d6808 100644 --- a/exported-symbols.map +++ b/exported-symbols.map @@ -34,6 +34,7 @@ global: nebula::ExecutionResponse::*; nebula::StorageClient::*; nebula::ScanEdgeIter::*; + nebula::ScanVertexIter::*; *::_S_empty_rep_storage; }; local: