11/*
2- * Copyright 2024 -present Alibaba Inc.
2+ * Copyright 2026 -present Alibaba Inc.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -76,7 +76,7 @@ class PAIMON_EXPORT GlobalIndexResult : public std::enable_shared_from_this<Glob
7676 // / Serializes a GlobalIndexResult object into a byte array.
7777 // /
7878 // / @note This method only supports the following concrete implementations:
79- // / - BitmapVectorSearchGlobalIndexResult
79+ // / - BitmapScoredGlobalIndexResult
8080 // / - BitmapGlobalIndexResult
8181 // /
8282 // / @param global_index_result The GlobalIndexResult instance to serialize (must not be null).
@@ -91,7 +91,7 @@ class PAIMON_EXPORT GlobalIndexResult : public std::enable_shared_from_this<Glob
9191 // /
9292 // / @note The concrete type of the deserialized object is determined by metadata
9393 // / embedded in the buffer. Currently, only the following types are supported:
94- // / - BitmapVectorSearchGlobalIndexResult
94+ // / - BitmapScoredGlobalIndexResult
9595 // / - BitmapGlobalIndexResult
9696 // /
9797 // / @param buffer Pointer to the serialized byte data (must not be null).
@@ -106,18 +106,18 @@ class PAIMON_EXPORT GlobalIndexResult : public std::enable_shared_from_this<Glob
106106 static constexpr int32_t VERSION = 1 ;
107107};
108108
109- // / Represents the result of a vector search query against a global index.
109+ // / Represents the result with score of a query against a global index.
110110// / This class encapsulates a set of search candidates (row id + score pairs) and provides
111111// / an iterator interface to traverse them.
112- class PAIMON_EXPORT VectorSearchGlobalIndexResult : public GlobalIndexResult {
112+ class PAIMON_EXPORT ScoredGlobalIndexResult : public GlobalIndexResult {
113113 public:
114- // / An iterator over the vector search results, returning (row_id, score) pairs.
114+ // / An iterator over the scored results, returning (row_id, score) pairs.
115115 // /
116116 // / @note The results are **NOT sorted by score**. Instead, they are returned in **ascending
117117 // / order of row_id**.
118- class VectorSearchIterator {
118+ class ScoredIterator {
119119 public:
120- virtual ~VectorSearchIterator () = default ;
120+ virtual ~ScoredIterator () = default ;
121121
122122 // / Checks whether more row ids are available.
123123 virtual bool HasNext () const = 0;
@@ -132,7 +132,7 @@ class PAIMON_EXPORT VectorSearchGlobalIndexResult : public GlobalIndexResult {
132132 virtual std::pair<int64_t , float > NextWithScore () = 0;
133133 };
134134
135- // / Creates a new iterator for traversing the vector search results.
136- virtual Result<std::unique_ptr<VectorSearchIterator >> CreateVectorSearchIterator () const = 0;
135+ // / Creates a new iterator for traversing the scored results.
136+ virtual Result<std::unique_ptr<ScoredIterator >> CreateScoredIterator () const = 0;
137137};
138138} // namespace paimon
0 commit comments