mirror of https://github.com/milvus-io/milvus.git
faker(db): mock some testing data
Former-commit-id: 17e28faece56f38b37c7d5ae00758b7ea5392464pull/191/head
parent
fd8365a098
commit
fa33addbf7
|
@ -1,4 +1,7 @@
|
|||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include "db_meta_impl.h"
|
||||
#include "id_generators.h"
|
||||
|
||||
namespace zilliz {
|
||||
namespace vecwise {
|
||||
|
@ -23,6 +26,12 @@ Status DBMetaImpl::add_group(const GroupOptions& options_,
|
|||
|
||||
Status DBMetaImpl::get_group(const std::string& group_id_, GroupSchema& group_info_) {
|
||||
//PXU TODO
|
||||
std::stringstream ss;
|
||||
SimpleIDGenerator g;
|
||||
ss.str("");
|
||||
ss << "/tmp/test/" << g.getNextIDNumber() << ".log";
|
||||
group_info_.dimension = 64;
|
||||
group_info_.next_file_location = ss.str();
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue