mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-01 08:28:10 +08:00
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
/*******************************************************************************
|
|
* Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
* Proprietary and confidential.
|
|
******************************************************************************/
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
#include "task/Task.h"
|
|
#include "TaskTable.h"
|
|
#include "CacheMgr.h"
|
|
|
|
|
|
namespace zilliz {
|
|
namespace milvus {
|
|
namespace engine {
|
|
|
|
// TODO: Policy interface
|
|
// TODO: collect statistics
|
|
|
|
/*
|
|
* select tasks to move;
|
|
* call from scheduler;
|
|
*/
|
|
std::vector<uint64_t>
|
|
PickToMove(TaskTable &task_table, const CacheMgr &cache_mgr, uint64_t limit);
|
|
|
|
|
|
/*
|
|
* select task to load
|
|
* call from resource;
|
|
* I DONT SURE NEED THIS;
|
|
*/
|
|
std::vector<uint64_t>
|
|
PickToLoad(TaskTable &task_table, uint64_t limit);
|
|
|
|
/*
|
|
* select task to execute;
|
|
* call from resource;
|
|
* I DONT SURE NEED THIS;
|
|
*/
|
|
std::vector<uint64_t>
|
|
PickToExecute(TaskTable &task_table, uint64_t limit);
|
|
|
|
|
|
}
|
|
}
|
|
}
|