feat: refact cpp sdk (#27)
* refact cpp sdk --------- Co-authored-by: zhouqinren.zqr <zhouqinren.zqr@alibaba-inc.com>
This commit is contained in:
co-authored by
zhouqinren.zqr
parent
08d680bd4f
commit
e957442355
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#include <ailego/container/reservoir.h>
|
||||
#include <ailego/utility/float_helper.h>
|
||||
#include <ailego/utility/time_helper.h>
|
||||
#include <zvec/ailego/utility/float_helper.h>
|
||||
#include "framework/index_cluster.h"
|
||||
#include "framework/index_error.h"
|
||||
#include "framework/index_factory.h"
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#include "stratified_cluster_trainer.h"
|
||||
#include <ailego/utility/string_helper.h>
|
||||
#include <ailego/utility/time_helper.h>
|
||||
#include <zvec/ailego/utility/string_helper.h>
|
||||
#include "framework/index_error.h"
|
||||
#include "framework/index_factory.h"
|
||||
#include "framework/index_helper.h"
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
#include <ailego/container/vector.h>
|
||||
#include <ailego/utility/float_helper.h>
|
||||
#include <ailego/utility/type_helper.h>
|
||||
#include <zvec/ailego/utility/float_helper.h>
|
||||
|
||||
namespace zvec {
|
||||
namespace core {
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
|
||||
#include "flat_streamer_entity.h"
|
||||
#include <cstdint>
|
||||
#include "framework/index_error.h"
|
||||
#include "flat_utility.h"
|
||||
#include "index_error.h"
|
||||
|
||||
namespace zvec {
|
||||
namespace core {
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
#include <unordered_map>
|
||||
#include <ailego/parallel/lock.h>
|
||||
#include <ailego/utility/memory_helper.h>
|
||||
#include <ailego/utility/string_helper.h>
|
||||
#include <framework/index_context.h>
|
||||
#include <framework/index_framework.h>
|
||||
#include <framework/index_streamer.h>
|
||||
#include <zvec/ailego/utility/string_helper.h>
|
||||
#include "flat_index_format.h"
|
||||
#include "flat_utility.h"
|
||||
|
||||
|
||||
@@ -20,11 +20,11 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <ailego/parallel/lock.h>
|
||||
#include <ailego/utility/string_helper.h>
|
||||
#include <framework/index_dumper.h>
|
||||
#include <framework/index_meta.h>
|
||||
#include <framework/index_storage.h>
|
||||
#include <framework/index_streamer.h>
|
||||
#include <zvec/ailego/utility/string_helper.h>
|
||||
#include "flat_sparse_entity.h"
|
||||
#include "flat_sparse_index_format.h"
|
||||
#include "flat_sparse_utility.h"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <mutex>
|
||||
#include <ailego/internal/platform.h>
|
||||
#include <ailego/utility/memory_helper.h>
|
||||
#include <ailego/utility/string_helper.h>
|
||||
#include <zvec/ailego/utility/string_helper.h>
|
||||
#include "framework/index_error.h"
|
||||
#include "framework/index_logger.h"
|
||||
#include "framework/index_storage.h"
|
||||
|
||||
@@ -209,8 +209,8 @@ class HnswDistCalculator {
|
||||
const void *query_;
|
||||
uint32_t dim_;
|
||||
|
||||
uint32_t compare_cnt_; // record distance compute times
|
||||
uint32_t compare_cnt_batch_; // record batch distance compute time
|
||||
uint32_t compare_cnt_; // record distance compute times
|
||||
// uint32_t compare_cnt_batch_; // record batch distance compute time
|
||||
bool error_{false};
|
||||
};
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <mutex>
|
||||
#include <ailego/internal/platform.h>
|
||||
#include <ailego/utility/memory_helper.h>
|
||||
#include <ailego/utility/string_helper.h>
|
||||
#include <zvec/ailego/utility/string_helper.h>
|
||||
#include "framework/index_error.h"
|
||||
#include "framework/index_logger.h"
|
||||
#include "framework/index_storage.h"
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
// limitations under the License.
|
||||
#include "ivf_builder.h"
|
||||
#include <ailego/pattern/defer.h>
|
||||
#include <ailego/utility/string_helper.h>
|
||||
#include "cluster/cluster_params.h"
|
||||
#include <zvec/ailego/utility/string_helper.h>
|
||||
#include "algorithm/cluster/cluster_params.h"
|
||||
#include "ivf_dumper.h"
|
||||
|
||||
namespace zvec {
|
||||
|
||||
Reference in New Issue
Block a user