mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
refactor(cpp/db): arguments name refactor
Former-commit-id: 9ff72aa338aa58c3f142d2cbfe27d173a3ec5864
This commit is contained in:
parent
ba16e25fd1
commit
34d50b5a55
@ -4,9 +4,6 @@ namespace zilliz {
|
||||
namespace vecwise {
|
||||
namespace engine {
|
||||
|
||||
Meta* Meta::Default() {
|
||||
static DefaultMeta meta;
|
||||
return *meta;
|
||||
}
|
||||
|
||||
} // namespace engine
|
||||
|
@ -33,23 +33,23 @@ typedef std::vector<GroupFileSchema> GroupFilesSchema;
|
||||
|
||||
class Meta {
|
||||
public:
|
||||
virtual Status add_group(const std::string& group_id_, GroupSchema& group_info) = 0;
|
||||
virtual Status get_group(const std::string& group_id_, GroupSchema& group_info) = 0;
|
||||
virtual Status has_group(const std::string& group_id_, bool& has_or_not) = 0;
|
||||
virtual Status add_group(const std::string& group_id_, GroupSchema& group_info_) = 0;
|
||||
virtual Status get_group(const std::string& group_id_, GroupSchema& group_info_) = 0;
|
||||
virtual Status has_group(const std::string& group_id_, bool& has_or_not_) = 0;
|
||||
|
||||
virtual Status add_group_file(const std::string& group_id,
|
||||
GroupFileSchema& group_file_info) = 0;
|
||||
virtual Status has_group_file(const std::string& group_id,
|
||||
const std::string& file_id,
|
||||
bool& has_or_not) = 0;
|
||||
virtual Status get_group_file(const std::string& group_id,
|
||||
const std::string& file_id,
|
||||
GroupFileSchema& group_file_info) = 0;
|
||||
virtual Status mark_group_file_as_index(const std::string& group_id,
|
||||
const std::string& file_id) = 0;
|
||||
virtual Status add_group_file(const std::string& group_id_,
|
||||
GroupFileSchema& group_file_info_) = 0;
|
||||
virtual Status has_group_file(const std::string& group_id_,
|
||||
const std::string& file_id_,
|
||||
bool& has_or_not_) = 0;
|
||||
virtual Status get_group_file(const std::string& group_id_,
|
||||
const std::string& file_id_,
|
||||
GroupFileSchema& group_file_info_) = 0;
|
||||
virtual Status mark_group_file_as_index(const std::string& group_id_,
|
||||
const std::string& file_id_) = 0;
|
||||
|
||||
virtual Status get_group_files(const std::string& group_id,
|
||||
GroupFilesSchema& group_files_info) = 0;
|
||||
virtual Status get_group_files(const std::string& group_id_,
|
||||
GroupFilesSchema& group_files_info_) = 0;
|
||||
|
||||
}; // MetaData
|
||||
|
||||
|
@ -14,49 +14,49 @@ Status DBMetaImpl::initialize() {
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::add_group(const std::string& group_id_, GroupSchema& group_info) {
|
||||
Status DBMetaImpl::add_group(const std::string& group_id_, GroupSchema& group_info_) {
|
||||
//PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::get_group(const std::string& group_id_, GroupSchema& group_info) {
|
||||
Status DBMetaImpl::get_group(const std::string& group_id_, GroupSchema& group_info_) {
|
||||
//PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::has_group(const std::string& group_id_, bool& has_or_not) {
|
||||
Status DBMetaImpl::has_group(const std::string& group_id_, bool& has_or_not_) {
|
||||
//PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::add_group_file(const std::string& group_id,
|
||||
GroupFileSchema& group_file_info) {
|
||||
Status DBMetaImpl::add_group_file(const std::string& group_id_,
|
||||
GroupFileSchema& group_file_info_) {
|
||||
//PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::has_group_file(const std::string& group_id,
|
||||
const std::string& file_id,
|
||||
bool& has_or_not) {
|
||||
Status DBMetaImpl::has_group_file(const std::string& group_id_,
|
||||
const std::string& file_id_,
|
||||
bool& has_or_not_) {
|
||||
//PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::get_group_file(const std::string& group_id,
|
||||
const std::string& file_id,
|
||||
GroupFileSchema& group_file_info) {
|
||||
Status DBMetaImpl::get_group_file(const std::string& group_id_,
|
||||
const std::string& file_id_,
|
||||
GroupFileSchema& group_file_info_) {
|
||||
//PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::get_group_files(const std::string& group_id,
|
||||
GroupFilesSchema& group_files_info) {
|
||||
Status DBMetaImpl::get_group_files(const std::string& group_id_,
|
||||
GroupFilesSchema& group_files_info_) {
|
||||
// PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
||||
Status DBMetaImpl::mark_group_file_as_index(const std::string& group_id,
|
||||
const std::string& file_id) {
|
||||
Status DBMetaImpl::mark_group_file_as_index(const std::string& group_id_,
|
||||
const std::string& file_id_) {
|
||||
//PXU TODO
|
||||
return Status.OK();
|
||||
}
|
||||
|
@ -12,23 +12,23 @@ class DBMetaImpl : public Meta {
|
||||
public:
|
||||
DBMetaImpl(DBMetaOptions& options_);
|
||||
|
||||
virtual Status add_group(const std::string& group_id_, GroupSchema& group_info) override;
|
||||
virtual Status get_group(const std::string& group_id_, GroupSchema& group_info) override;
|
||||
virtual Status has_group(const std::string& group_id_, bool& has_or_not) override;
|
||||
virtual Status add_group(const std::string& group_id_, GroupSchema& group_info_) override;
|
||||
virtual Status get_group(const std::string& group_id_, GroupSchema& group_info_) override;
|
||||
virtual Status has_group(const std::string& group_id_, bool& has_or_not_) override;
|
||||
|
||||
virtual Status add_group_file(const std::string& group_id,
|
||||
GroupFileSchema& group_file_info) override;
|
||||
virtual Status has_group_file(const std::string& group_id,
|
||||
const std::string& file_id,
|
||||
bool& has_or_not) override;
|
||||
virtual Status get_group_file(const std::string& group_id,
|
||||
const std::string& file_id,
|
||||
GroupFileSchema& group_file_info) override;
|
||||
virtual Status mark_group_file_as_index(const std::string& group_id,
|
||||
const std::string& file_id) override;
|
||||
virtual Status add_group_file(const std::string& group_id_,
|
||||
GroupFileSchema& group_file_info_) override;
|
||||
virtual Status has_group_file(const std::string& group_id_,
|
||||
const std::string& file_id_,
|
||||
bool& has_or_not_) override;
|
||||
virtual Status get_group_file(const std::string& group_id_,
|
||||
const std::string& file_id_,
|
||||
GroupFileSchema& group_file_info_) override;
|
||||
virtual Status mark_group_file_as_index(const std::string& group_id_,
|
||||
const std::string& file_id_) override;
|
||||
|
||||
virtual Status get_group_files(const std::string& group_id,
|
||||
GroupFilesSchema& group_files_info) override;
|
||||
virtual Status get_group_files(const std::string& group_id_,
|
||||
GroupFilesSchema& group_files_info_) override;
|
||||
|
||||
private:
|
||||
|
||||
|
@ -21,7 +21,8 @@ struct MetaOptions {
|
||||
|
||||
|
||||
struct DBMetaOptions : public MetaOptions {
|
||||
std::string db_uri;
|
||||
std::string backend_uri;
|
||||
std::string dbname;
|
||||
}; // DBMetaOptions
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user