-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement of the engine and rewrite factory #209
Conversation
d42b997
to
e150eaf
Compare
e9758e4
to
822e77c
Compare
@@ -36,7 +36,7 @@ class MemoryIO : public BasicIO<MemoryIO> { | |||
} | |||
|
|||
MemoryIO(const JsonType& io_param, const IndexCommonParam& common_param) | |||
: allocator_(common_param.allocator_) { | |||
: allocator_(common_param.allocator_.get()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the MemoryIO's lifetime is shorter than Index, so only raw pointer is enough
58c1a5e
to
2ed3275
Compare
3006049
to
b1445c9
Compare
include/vsag/engine.h
Outdated
|
||
tl::expected<std::shared_ptr<Index>, Error> | ||
CreateIndex(const std::string& name, const std::string& parameters); | ||
|
||
// tl::expected<DatasetPtr, Error> | ||
// CreateDataset(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete unnecessary modifications
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LHT129 we need to add an example for engine.
0aad381
to
48c7871
Compare
- allocator shared_ptr hold in Index and Dataset - the allocator ptr always point to SafeAllocator - allocator ptr is used inner index - only Engine/Resource can create Allocator Object Signed-off-by: LHT129 <[email protected]>
#include "index/hnsw_zparameters.h" | ||
#include "index/index_common_param.h" | ||
#include "vsag/vsag.h" | ||
#include "ThreadPool.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why include it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
issue: #203