mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-03 01:12:25 +08:00
26 lines
742 B
C++
26 lines
742 B
C++
/*******************************************************************************
|
|
* Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
* Proprietary and confidential.
|
|
******************************************************************************/
|
|
#pragma once
|
|
|
|
#include "IndexLoaderQueue.h"
|
|
#include "SearchContext.h"
|
|
|
|
namespace zilliz {
|
|
namespace milvus {
|
|
namespace engine {
|
|
|
|
class IScheduleStrategy {
|
|
public:
|
|
virtual ~IScheduleStrategy() {}
|
|
|
|
virtual bool Schedule(const SearchContextPtr &search_context, IndexLoaderQueue::LoaderQueue& loader_list) = 0;
|
|
};
|
|
|
|
using ScheduleStrategyPtr = std::shared_ptr<IScheduleStrategy>;
|
|
|
|
}
|
|
}
|
|
} |