Skip to content

Commit

Permalink
add fn to get total number of points
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipBAdams committed Aug 15, 2023
1 parent c72d7fb commit 008f5fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/pq_flash_index.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ template <typename T, typename LabelT = uint32_t> class PQFlashIndex
DISKANN_DLLEXPORT std::vector<T> get_vector(std::uint64_t VID);
DISKANN_DLLEXPORT std::vector<std::uint8_t> get_pq_vector(std::uint64_t VID);
DISKANN_DLLEXPORT std::vector<std::uint64_t> get_neighbors(std::uint64_t VID);
DISKANN_DLLEXPORT uint64_t get_num_points();

protected:
DISKANN_DLLEXPORT void use_medoids_data_as_centroids();
Expand Down
6 changes: 6 additions & 0 deletions src/pq_flash_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,12 @@ std::vector<std::uint64_t> PQFlashIndex<T, LabelT>::get_neighbors(std::uint64_t
return out;
}

template <typename T, typename LabelT>
std::uint64_t PQFlashIndex<T, LabelT>::get_num_points()
{
return num_points;
}

#ifdef EXEC_ENV_OLS
template <typename T, typename LabelT> char *PQFlashIndex<T, LabelT>::getHeaderBytes()
{
Expand Down

0 comments on commit 008f5fc

Please sign in to comment.