DeleteTask.cpp 832 字节
Newer Older
W
wxyu 已提交
1 2 3 4 5 6
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/

7
#include "DeleteTask.h"
W
wxyu 已提交
8

W
wxyu 已提交
9

W
wxyu 已提交
10 11 12 13
namespace zilliz {
namespace milvus {
namespace engine {

W
wxyu 已提交
14
XDeleteTask::XDeleteTask(DeleteContextPtr &delete_context)
W
wxyu 已提交
15
    : Task(TaskType::DeleteTask), delete_context_ptr_(delete_context) {}
W
wxyu 已提交
16

17 18 19 20
void
XDeleteTask::Load(LoadType type, uint8_t device_id) {

}
W
wxyu 已提交
21

22 23
void
XDeleteTask::Execute() {
W
wxyu 已提交
24
    delete_context_ptr_->ResourceDone();
25
}
W
wxyu 已提交
26

W
wxyu 已提交
27 28
TaskPtr
XDeleteTask::Clone() {
W
wxyu 已提交
29 30
    auto task = std::make_shared<XDeleteTask>(delete_context_ptr_);
    return task;
W
wxyu 已提交
31 32
}

W
wxyu 已提交
33 34 35
}
}
}