提交 aa1be9cd 编写于 作者: S starlord

Remove zilliz namespace


Former-commit-id: 18ae9b5711cabd59baf7e0784583f99a655bf9c2
上级 fd25f059
......@@ -34,6 +34,7 @@ Please mark all change in change log and use the ticket from JIRA.
- MS-586 - Remove BUILD_FAISS_WITH_MKL option
- MS-590 - Refine cmake code to support cpplint
- MS-600 - Reconstruct unittest code
- MS-602 - Remove zilliz namespace
# Milvus 0.4.0 (2019-09-12)
......
......@@ -25,7 +25,6 @@
#include <set>
#include <string>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -88,6 +87,5 @@ class Cache {
} // namespace cache
} // namespace milvus
} // namespace zilliz
#include "cache/Cache.inl"
......@@ -17,7 +17,7 @@
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -190,5 +190,5 @@ Cache<ItemObj>::print() {
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -24,7 +24,6 @@
#include <memory>
#include <string>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -70,6 +69,5 @@ class CacheMgr {
} // namespace cache
} // namespace milvus
} // namespace zilliz
#include "cache/CacheMgr.inl"
......@@ -16,7 +16,7 @@
// under the License.
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -142,4 +142,4 @@ CacheMgr<ItemObj>::SetCapacity(int64_t capacity) {
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include <utility>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -72,4 +71,3 @@ CpuCacheMgr::GetIndex(const std::string& key) {
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include <memory>
#include <string>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -42,4 +41,3 @@ class CpuCacheMgr : public CacheMgr<DataObjPtr> {
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include <memory>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -65,4 +64,3 @@ using DataObjPtr = std::shared_ptr<DataObj>;
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include <sstream>
#include <utility>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -84,4 +83,3 @@ GpuCacheMgr::GetIndex(const std::string& key) {
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include <string>
#include <unordered_map>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -46,4 +45,3 @@ class GpuCacheMgr : public CacheMgr<DataObjPtr> {
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include <unordered_map>
#include <utility>
namespace zilliz {
namespace milvus {
namespace cache {
......@@ -121,4 +120,3 @@ class LRU {
} // namespace cache
} // namespace milvus
} // namespace zilliz
......@@ -18,7 +18,6 @@
#include "config/ConfigMgr.h"
#include "YamlConfigMgr.h"
namespace zilliz {
namespace milvus {
namespace server {
......@@ -30,4 +29,3 @@ ConfigMgr::GetInstance() {
} // namespace server
} // namespace milvus
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include <string>
namespace zilliz {
namespace milvus {
namespace server {
......@@ -60,4 +59,3 @@ class ConfigMgr {
} // namespace server
} // namespace milvus
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include <sstream>
#include <string>
namespace zilliz {
namespace milvus {
namespace server {
......@@ -234,4 +233,3 @@ ConfigNode::DumpString(const std::string& prefix) const {
} // namespace server
} // namespace milvus
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include <string>
#include <vector>
namespace zilliz {
namespace milvus {
namespace server {
......@@ -94,4 +93,3 @@ class ConfigNode {
} // namespace server
} // namespace milvus
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include <sys/stat.h>
namespace zilliz {
namespace milvus {
namespace server {
......@@ -116,4 +115,3 @@ YamlConfigMgr::LoadConfigNode(const YAML::Node& node, ConfigNode& config) {
} // namespace server
} // namespace milvus
} // namespace zilliz
......@@ -24,7 +24,6 @@
#include <yaml-cpp/yaml.h>
#include <string>
namespace zilliz {
namespace milvus {
namespace server {
......@@ -62,4 +61,3 @@ class YamlConfigMgr : public ConfigMgr {
} // namespace server
} // namespace milvus
} // namespace zilliz
文件模式从 100755 更改为 100644
......@@ -17,7 +17,6 @@
#include "knowhere/adapter/ArrowAdapter.h"
namespace zilliz {
namespace knowhere {
ArrayPtr
......@@ -52,4 +51,3 @@ CopySchema(const SchemaPtr& origin) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "knowhere/common/Array.h"
namespace zilliz {
namespace knowhere {
ArrayPtr
......@@ -33,4 +32,3 @@ SchemaPtr
CopySchema(const SchemaPtr& origin);
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include "knowhere/adapter/Structure.h"
#include "knowhere/index/vector_index/helpers/Definitions.h"
namespace zilliz {
namespace knowhere {
std::shared_ptr<SPTAG::MetadataSet>
......@@ -121,4 +120,3 @@ ConvertToDataset(std::vector<SPTAG::QueryResult> query_results) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "knowhere/common/Dataset.h"
namespace zilliz {
namespace knowhere {
std::shared_ptr<SPTAG::VectorSet>
......@@ -39,4 +38,3 @@ DatasetPtr
ConvertToDataset(std::vector<SPTAG::QueryResult> query_results);
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include <string>
#include <vector>
namespace zilliz {
namespace knowhere {
ArrayPtr
......@@ -86,4 +85,3 @@ ConstructFloatField(const std::string& name) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "knowhere/common/Dataset.h"
namespace zilliz {
namespace knowhere {
extern ArrayPtr
......@@ -51,4 +50,3 @@ extern FieldPtr
ConstructFloatField(const std::string& name);
} // namespace knowhere
} // namespace zilliz
......@@ -17,7 +17,6 @@
#pragma once
namespace zilliz {
namespace knowhere {
#define GETTENSOR(dataset) \
......@@ -27,4 +26,3 @@ namespace knowhere {
auto rows = tensor->shape()[0];
} // namespace knowhere
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include "Schema.h"
namespace zilliz {
namespace knowhere {
using ArrayData = arrow::ArrayData;
......@@ -49,4 +48,3 @@ using Decimal128Array = arrow::Decimal128Array;
using Decimal128ArrayPtr = std::shared_ptr<arrow::Decimal128Array>;
} // namespace knowhere
} // namespace zilliz
......@@ -25,7 +25,6 @@
#include "Id.h"
namespace zilliz {
namespace knowhere {
struct Binary {
......@@ -74,4 +73,3 @@ class BinarySet {
};
} // namespace knowhere
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include <arrow/buffer.h>
namespace zilliz {
namespace knowhere {
using Buffer = arrow::Buffer;
......@@ -60,4 +59,3 @@ MakeMutableBuffer(uint8_t* data, const int64_t size) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include <memory>
namespace zilliz {
namespace knowhere {
enum class METRICTYPE {
......@@ -55,4 +54,3 @@ struct Cfg {
using Config = std::shared_ptr<Cfg>;
} // namespace knowhere
} // namespace zilliz
......@@ -28,7 +28,6 @@
#include "Tensor.h"
#include "knowhere/adapter/ArrowAdapter.h"
namespace zilliz {
namespace knowhere {
class Dataset;
......@@ -148,4 +147,3 @@ class Dataset {
using DatasetPtr = std::shared_ptr<Dataset>;
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include "Log.h"
#include "knowhere/common/Exception.h"
namespace zilliz {
namespace knowhere {
KnowhereException::KnowhereException(const std::string& msg) : msg(msg) {
......@@ -48,4 +47,3 @@ KnowhereException::what() const noexcept {
}
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include <exception>
#include <string>
namespace zilliz {
namespace knowhere {
class KnowhereException : public std::exception {
......@@ -52,4 +51,3 @@ class KnowhereException : public std::exception {
} while (false)
} // namespace knowhere
} // namespace zilliz
......@@ -17,13 +17,9 @@
#pragma once
//#include "zcommon/id/id.h"
// using ID = zilliz::common::ID;
#include <stdint.h>
#include <string>
namespace zilliz {
namespace knowhere {
class ID {
......@@ -58,4 +54,3 @@ class ID {
};
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include "utils/easylogging++.h"
namespace zilliz {
namespace knowhere {
#define KNOWHERE_DOMAIN_NAME "[KNOWHERE] "
......@@ -33,4 +32,3 @@ namespace knowhere {
#define KNOWHERE_LOG_FATAL LOG(FATAL) << KNOWHERE_DOMAIN_NAME
} // namespace knowhere
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include <arrow/type.h>
namespace zilliz {
namespace knowhere {
using DataType = arrow::DataType;
......@@ -32,4 +31,3 @@ using SchemaPtr = std::shared_ptr<Schema>;
using SchemaConstPtr = std::shared_ptr<const Schema>;
} // namespace knowhere
} // namespace zilliz
......@@ -21,11 +21,9 @@
#include <arrow/tensor.h>
namespace zilliz {
namespace knowhere {
using Tensor = arrow::Tensor;
using TensorPtr = std::shared_ptr<Tensor>;
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include "knowhere/common/Timer.h"
namespace zilliz {
namespace knowhere {
TimeRecorder::TimeRecorder(const std::string& header, int64_t log_level) : header_(header), log_level_(log_level) {
......@@ -99,4 +98,3 @@ TimeRecorder::ElapseFromBegin(const std::string& msg) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include <chrono>
#include <string>
namespace zilliz {
namespace knowhere {
class TimeRecorder {
......@@ -52,4 +51,3 @@ class TimeRecorder {
};
} // namespace knowhere
} // namespace zilliz
......@@ -25,7 +25,6 @@
#include "knowhere/common/Dataset.h"
#include "knowhere/index/preprocessor/Preprocessor.h"
namespace zilliz {
namespace knowhere {
class Index {
......@@ -66,4 +65,3 @@ class Index {
using IndexPtr = std::shared_ptr<Index>;
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include <memory>
#include "knowhere/common/BinarySet.h"
namespace zilliz {
namespace knowhere {
class IndexModel {
......@@ -35,4 +34,3 @@ class IndexModel {
using IndexModelPtr = std::shared_ptr<IndexModel>;
} // namespace knowhere
} // namespace zilliz
......@@ -17,7 +17,6 @@
#pragma once
namespace zilliz {
namespace knowhere {
enum class IndexType {
......@@ -28,4 +27,3 @@ enum class IndexType {
};
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,7 @@
#include "knowhere/index/preprocessor/Normalize.h"
//
//
// namespace zilliz {
//
// namespace knowhere {
//
// DatasetPtr
......@@ -54,4 +54,4 @@
//}
//
//} // namespace knowhere
//} // namespace zilliz
//
......@@ -21,7 +21,7 @@
//#include "preprocessor.h"
//
//
// namespace zilliz {
//
// namespace knowhere {
//
// class NormalizePreprocessor : public Preprocessor {
......@@ -40,4 +40,4 @@
//
//
//} // namespace knowhere
//} // namespace zilliz
//
......@@ -21,7 +21,6 @@
#include "knowhere/common/Dataset.h"
namespace zilliz {
namespace knowhere {
class Preprocessor {
......@@ -33,4 +32,3 @@ class Preprocessor {
using PreprocessorPtr = std::shared_ptr<Preprocessor>;
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "knowhere/index/vector_index/FaissBaseIndex.h"
#include "knowhere/index/vector_index/helpers/FaissIO.h"
namespace zilliz {
namespace knowhere {
FaissBaseIndex::FaissBaseIndex(std::shared_ptr<faiss::Index> index) : index_(std::move(index)) {
......@@ -79,4 +78,3 @@ FaissBaseIndex::SealImpl() {
}
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "knowhere/common/BinarySet.h"
namespace zilliz {
namespace knowhere {
class FaissBaseIndex {
......@@ -44,4 +43,3 @@ class FaissBaseIndex {
};
} // namespace knowhere
} // namespace zilliz
......@@ -29,7 +29,6 @@
#include "knowhere/index/vector_index/helpers/Cloner.h"
#include "knowhere/index/vector_index/helpers/FaissIO.h"
namespace zilliz {
namespace knowhere {
IndexModelPtr
......@@ -171,7 +170,7 @@ GPUIVF::CopyGpuToCpu(const Config& config) {
VectorIndexPtr
GPUIVF::Clone() {
auto cpu_idx = CopyGpuToCpu(Config());
return ::zilliz::knowhere::cloner::CopyCpuToGpu(cpu_idx, gpu_id_, Config());
return knowhere::cloner::CopyCpuToGpu(cpu_idx, gpu_id_, Config());
}
VectorIndexPtr
......@@ -201,4 +200,3 @@ GPUIndex::GetGpuDevice() {
}
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "IndexIVF.h"
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
namespace zilliz {
namespace knowhere {
class GPUIndex {
......@@ -95,4 +94,3 @@ class GPUIVF : public IVF, public GPUIndex {
};
} // namespace knowhere
} // namespace zilliz
......@@ -24,7 +24,6 @@
#include "knowhere/common/Exception.h"
#include "knowhere/index/vector_index/IndexGPUIVFPQ.h"
namespace zilliz {
namespace knowhere {
IndexModelPtr
......@@ -68,4 +67,3 @@ GPUIVFPQ::CopyGpuToCpu(const Config& config) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include "IndexGPUIVF.h"
namespace zilliz {
namespace knowhere {
class GPUIVFPQ : public GPUIVF {
......@@ -43,4 +42,3 @@ class GPUIVFPQ : public GPUIVF {
};
} // namespace knowhere
} // namespace zilliz
......@@ -24,7 +24,6 @@
#include "knowhere/index/vector_index/IndexGPUIVFSQ.h"
#include "knowhere/index/vector_index/IndexIVFSQ.h"
namespace zilliz {
namespace knowhere {
IndexModelPtr
......@@ -73,4 +72,3 @@ GPUIVFSQ::CopyGpuToCpu(const Config& config) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include "IndexGPUIVF.h"
namespace zilliz {
namespace knowhere {
class GPUIVFSQ : public GPUIVF {
......@@ -42,4 +41,3 @@ class GPUIVFSQ : public GPUIVF {
};
} // namespace knowhere
} // namespace zilliz
......@@ -27,7 +27,6 @@
#include "knowhere/index/vector_index/IndexIDMAP.h"
#include "knowhere/index/vector_index/helpers/FaissIO.h"
namespace zilliz {
namespace knowhere {
BinarySet
......@@ -269,4 +268,3 @@ GPUIDMAP::search_impl(int64_t n, const float* data, int64_t k, float* distances,
}
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include <memory>
#include <utility>
namespace zilliz {
namespace knowhere {
class IDMAP : public VectorIndex, public FaissBaseIndex {
......@@ -97,4 +96,3 @@ class GPUIDMAP : public IDMAP, public GPUIndex {
using GPUIDMAPPtr = std::shared_ptr<GPUIDMAP>;
} // namespace knowhere
} // namespace zilliz
......@@ -33,7 +33,6 @@
#include "knowhere/index/vector_index/IndexGPUIVF.h"
#include "knowhere/index/vector_index/IndexIVF.h"
namespace zilliz {
namespace knowhere {
IndexModelPtr
......@@ -268,4 +267,3 @@ IVFIndexModel::SealImpl() {
}
} // namespace knowhere
} // namespace zilliz
......@@ -26,7 +26,6 @@
#include "VectorIndex.h"
#include "faiss/IndexIVF.h"
namespace zilliz {
namespace knowhere {
using Graph = std::vector<std::vector<int64_t>>;
......@@ -122,4 +121,3 @@ class IVFIndexModel : public IndexModel, public FaissBaseIndex {
using IVFIndexModelPtr = std::shared_ptr<IVFIndexModel>;
} // namespace knowhere
} // namespace zilliz
......@@ -24,7 +24,6 @@
#include "knowhere/common/Exception.h"
#include "knowhere/index/vector_index/IndexIVFPQ.h"
namespace zilliz {
namespace knowhere {
IndexModelPtr
......@@ -62,4 +61,3 @@ IVFPQ::Clone_impl(const std::shared_ptr<faiss::Index>& index) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include "IndexIVF.h"
namespace zilliz {
namespace knowhere {
class IVFPQ : public IVF {
......@@ -44,4 +43,3 @@ class IVFPQ : public IVF {
};
} // namespace knowhere
} // namespace zilliz
......@@ -24,7 +24,6 @@
#include "knowhere/index/vector_index/IndexIVFSQ.h"
#include "knowhere/index/vector_index/helpers/FaissGpuResourceMgr.h"
namespace zilliz {
namespace knowhere {
IndexModelPtr
......@@ -70,4 +69,3 @@ IVFSQ::CopyCpuToGpu(const int64_t& device_id, const Config& config) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include "IndexIVF.h"
namespace zilliz {
namespace knowhere {
class IVFSQ : public IVF {
......@@ -44,4 +43,3 @@ class IVFSQ : public IVF {
};
} // namespace knowhere
} // namespace zilliz
......@@ -30,7 +30,6 @@
#include "knowhere/common/Exception.h"
#include "knowhere/index/vector_index/helpers/KDTParameterMgr.h"
namespace zilliz {
namespace knowhere {
BinarySet
......@@ -174,4 +173,3 @@ CPUKDTRNGIndexModel::Load(const BinarySet& binary) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "VectorIndex.h"
#include "knowhere/index/IndexModel.h"
namespace zilliz {
namespace knowhere {
class CPUKDTRNG : public VectorIndex {
......@@ -86,4 +85,3 @@ class CPUKDTRNGIndexModel : public IndexModel {
using CPUKDTRNGIndexModelPtr = std::shared_ptr<CPUKDTRNGIndexModel>;
} // namespace knowhere
} // namespace zilliz
......@@ -25,7 +25,6 @@
#include "knowhere/index/vector_index/nsg/NSG.h"
#include "knowhere/index/vector_index/nsg/NSGIO.h"
namespace zilliz {
namespace knowhere {
BinarySet
......@@ -167,4 +166,3 @@ NSG::Seal() {
}
} // namespace knowhere
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include "VectorIndex.h"
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -63,4 +62,3 @@ class NSG : public VectorIndex {
using NSGIndexPtr = std::shared_ptr<NSG>();
} // namespace knowhere
} // namespace zilliz
......@@ -25,7 +25,6 @@
#include "knowhere/index/preprocessor/Preprocessor.h"
#include "knowhere/index/vector_index/helpers/IndexParameter.h"
namespace zilliz {
namespace knowhere {
class VectorIndex;
......@@ -60,4 +59,3 @@ class VectorIndex : public Index {
};
} // namespace knowhere
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include "knowhere/index/vector_index/IndexIVFPQ.h"
#include "knowhere/index/vector_index/IndexIVFSQ.h"
namespace zilliz {
namespace knowhere {
namespace cloner {
......@@ -57,4 +56,3 @@ CopyCpuToGpu(const VectorIndexPtr& index, const int64_t& device_id, const Config
} // namespace cloner
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include "knowhere/index/vector_index/VectorIndex.h"
namespace zilliz {
namespace knowhere {
namespace cloner {
......@@ -32,4 +31,3 @@ CopyGpuToCpu(const VectorIndexPtr& index, const Config& config);
} // namespace cloner
} // namespace knowhere
} // namespace zilliz
......@@ -17,7 +17,6 @@
#pragma once
namespace zilliz {
namespace knowhere {
namespace definition {
......@@ -27,4 +26,3 @@ namespace definition {
} // namespace definition
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include <utility>
namespace zilliz {
namespace knowhere {
FaissGpuResourceMgr&
......@@ -125,4 +124,3 @@ FaissGpuResourceMgr::Dump() {
}
} // namespace knowhere
} // namespace zilliz
......@@ -26,7 +26,6 @@
#include "src/utils/BlockingQueue.h"
namespace zilliz {
namespace knowhere {
struct Resource {
......@@ -45,7 +44,7 @@ using ResWPtr = std::weak_ptr<Resource>;
class FaissGpuResourceMgr {
public:
friend class ResScope;
using ResBQ = zilliz::milvus::server::BlockingQueue<ResPtr>;
using ResBQ = milvus::server::BlockingQueue<ResPtr>;
public:
struct DeviceParams {
......@@ -127,4 +126,3 @@ class ResScope {
};
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include "knowhere/index/vector_index/helpers/FaissIO.h"
namespace zilliz {
namespace knowhere {
// TODO(linxj): Get From Config File
......@@ -66,4 +65,3 @@ MemoryIOReader::operator()(void* ptr, size_t size, size_t nitems) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include <faiss/AuxIndexStructures.h>
namespace zilliz {
namespace knowhere {
struct MemoryIOWriter : public faiss::IOWriter {
......@@ -41,4 +40,3 @@ struct MemoryIOReader : public faiss::IOReader {
};
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include <faiss/Index.h>
namespace zilliz {
namespace knowhere {
faiss::MetricType
......@@ -36,4 +35,3 @@ GetMetricType(METRICTYPE& type) {
}
} // namespace knowhere
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include "knowhere/common/Config.h"
namespace zilliz {
namespace knowhere {
extern faiss::MetricType
......@@ -132,4 +131,3 @@ struct KDTCfg : public Cfg {
};
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include "knowhere/index/vector_index/helpers/KDTParameterMgr.h"
namespace zilliz {
namespace knowhere {
const std::vector<KDTParameter>&
......@@ -54,4 +53,3 @@ KDTParameterMgr::KDTParameterMgr() {
}
} // namespace knowhere
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include <utility>
#include <vector>
namespace zilliz {
namespace knowhere {
using KDTParameter = std::pair<std::string, std::string>;
......@@ -51,4 +50,3 @@ class KDTParameterMgr {
};
} // namespace knowhere
} // namespace zilliz
......@@ -32,7 +32,6 @@
// TODO: enable macro
//#include <gperftools/profiler.h>
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -792,4 +791,3 @@ NsgIndex::SetKnnGraph(Graph& g) {
} // namespace algo
} // namespace knowhere
} // namespace zilliz
......@@ -24,7 +24,6 @@
#include <boost/dynamic_bitset.hpp>
#include "Neighbor.h"
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -143,4 +142,3 @@ class NsgIndex {
} // namespace algo
} // namespace knowhere
} // namespace zilliz
......@@ -20,7 +20,6 @@
#include "knowhere/index/vector_index/nsg/NSGHelper.h"
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -180,4 +179,3 @@ calculate(const float* a, const float* b, unsigned size) {
} // namespace algo
} // namespace knowhere
} // namespace zilliz
......@@ -25,7 +25,6 @@
#include "NSG.h"
#include "knowhere/common/Config.h"
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -36,4 +35,3 @@ calculate(const float* a, const float* b, unsigned size);
} // namespace algo
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include "knowhere/index/vector_index/nsg/NSGIO.h"
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -68,4 +67,3 @@ read_index(MemoryIOReader& reader) {
} // namespace algo
} // namespace knowhere
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include "knowhere/index/vector_index/IndexIVF.h"
#include "knowhere/index/vector_index/helpers/FaissIO.h"
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -32,4 +31,3 @@ read_index(MemoryIOReader& reader);
} // namespace algo
} // namespace knowhere
} // namespace zilliz
......@@ -19,7 +19,6 @@
#include <mutex>
namespace zilliz {
namespace knowhere {
namespace algo {
......@@ -61,4 +60,3 @@ typedef std::lock_guard<std::mutex> LockGuard;
} // namespace algo
} // namespace knowhere
} // namespace zilliz
......@@ -24,7 +24,7 @@
//
// namespace {
//
// namespace kn = zilliz::knowhere;
// namespace kn = knowhere;
//
//} // namespace
//
......
......@@ -27,7 +27,7 @@
namespace {
namespace kn = zilliz::knowhere;
namespace kn = knowhere;
} // namespace
......@@ -179,9 +179,9 @@ TEST_F(IDMAPTest, copy_test) {
auto clone_result = clone_index->Search(query_dataset, conf);
AssertAnns(clone_result, nq, k);
ASSERT_THROW({ std::static_pointer_cast<kn::GPUIDMAP>(clone_index)->GetRawVectors(); },
zilliz::knowhere::KnowhereException);
knowhere::KnowhereException);
ASSERT_THROW({ std::static_pointer_cast<kn::GPUIDMAP>(clone_index)->GetRawIds(); },
zilliz::knowhere::KnowhereException);
knowhere::KnowhereException);
auto binary = clone_index->Serialize();
clone_index->Load(binary);
......
......@@ -39,7 +39,7 @@
namespace {
namespace kn = zilliz::knowhere;
namespace kn = knowhere;
} // namespace
......
......@@ -19,7 +19,7 @@
namespace {
namespace kn = zilliz::knowhere;
namespace kn = knowhere;
} // namespace
......
......@@ -30,7 +30,7 @@
namespace {
namespace kn = zilliz::knowhere;
namespace kn = knowhere;
} // namespace
......@@ -132,7 +132,7 @@ TEST_F(KDTTest, kdt_serialize) {
PrintResult(result, nq, k);
ASSERT_EQ(new_index->Count(), nb);
ASSERT_EQ(new_index->Dimension(), dim);
ASSERT_THROW({ new_index->Clone(); }, zilliz::knowhere::KnowhereException);
ASSERT_THROW({ new_index->Clone(); }, knowhere::KnowhereException);
ASSERT_NO_THROW({ new_index->Seal(); });
{
......
......@@ -28,7 +28,7 @@
namespace {
namespace kn = zilliz::knowhere;
namespace kn = knowhere;
} // namespace
......@@ -98,7 +98,7 @@ TEST_F(NSGInterfaceTest, basic_test) {
ASSERT_EQ(index_->Count(), nb);
ASSERT_EQ(index_->Dimension(), dim);
ASSERT_THROW({ index_->Clone(); }, zilliz::knowhere::KnowhereException);
ASSERT_THROW({ index_->Clone(); }, knowhere::KnowhereException);
ASSERT_NO_THROW({
index_->Add(base_dataset, kn::Config());
index_->Seal();
......
......@@ -25,7 +25,7 @@ INITIALIZE_EASYLOGGINGPP
namespace {
namespace kn = zilliz::knowhere;
namespace kn = knowhere;
} // namespace
......@@ -56,7 +56,7 @@ DataGen::Generate(const int& dim, const int& nb, const int& nq) {
query_dataset = generate_query_dataset(nq, dim, xq.data());
}
zilliz::knowhere::DatasetPtr
knowhere::DatasetPtr
DataGen::GenQuery(const int& nq) {
xq.resize(nq * dim);
for (int i = 0; i < nq * dim; ++i) {
......
......@@ -34,7 +34,7 @@ class DataGen {
void
Generate(const int& dim, const int& nb, const int& nq);
zilliz::knowhere::DatasetPtr
knowhere::DatasetPtr
GenQuery(const int& nq);
protected:
......@@ -45,8 +45,8 @@ class DataGen {
std::vector<float> xb;
std::vector<float> xq;
std::vector<int64_t> ids;
zilliz::knowhere::DatasetPtr base_dataset = nullptr;
zilliz::knowhere::DatasetPtr query_dataset = nullptr;
knowhere::DatasetPtr base_dataset = nullptr;
knowhere::DatasetPtr query_dataset = nullptr;
};
extern void
......@@ -62,10 +62,10 @@ GenBase(const int64_t& dim, const int64_t& nb, float* xb, int64_t* ids);
extern void
InitLog();
zilliz::knowhere::DatasetPtr
knowhere::DatasetPtr
generate_dataset(int64_t nb, int64_t dim, float* xb, int64_t* ids);
zilliz::knowhere::DatasetPtr
knowhere::DatasetPtr
generate_query_dataset(int64_t nb, int64_t dim, float* xb);
struct FileIOWriter {
......
......@@ -19,7 +19,6 @@
#include <stdint.h>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -38,4 +37,3 @@ static constexpr uint64_t ONE_GB = ONE_KB * ONE_MB;
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -26,7 +26,6 @@
#include <string>
#include <vector>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -96,4 +95,3 @@ using DBPtr = std::shared_ptr<DB>;
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -28,7 +28,6 @@
#include <sstream>
#include <string>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -47,4 +46,3 @@ DBFactory::Build(const DBOptions& options) {
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include <memory>
#include <string>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -38,4 +37,3 @@ class DBFactory {
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -39,7 +39,6 @@
#include <iostream>
#include <thread>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -249,7 +248,7 @@ DBImpl::InsertVectors(const std::string& table_id, uint64_t n, const float* vect
}
Status status;
zilliz::milvus::server::CollectInsertMetrics metrics(n, status);
milvus::server::CollectInsertMetrics metrics(n, status);
status = mem_mgr_->InsertVectors(table_id, n, vectors, vector_ids);
// std::chrono::microseconds time_span =
// std::chrono::duration_cast<std::chrono::microseconds>(end_time - start_time);
......@@ -914,4 +913,3 @@ DBImpl::BackgroundBuildIndex() {
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -32,7 +32,6 @@
#include <thread>
#include <vector>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -165,4 +164,3 @@ class DBImpl : public DB {
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -21,7 +21,6 @@
#include <chrono>
#include <iostream>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -64,4 +63,3 @@ SimpleIDGenerator::GetNextIDNumbers(size_t n, IDNumbers& ids) {
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -22,7 +22,6 @@
#include <cstddef>
#include <vector>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -56,4 +55,3 @@ class SimpleIDGenerator : public IDGenerator {
} // namespace engine
} // namespace milvus
} // namespace zilliz
......@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <boost/algorithm/string.hpp>
namespace zilliz {
namespace milvus {
namespace engine {
......@@ -91,4 +90,3 @@ ArchiveConf::ParseType(const std::string& type) {
} // namespace engine
} // namespace milvus
} // namespace zilliz
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
文件模式从 100755 更改为 100644
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册