ResourceFactory.h 835 字节
Newer Older
W
wxyu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/
#pragma once

#include <string>
#include <memory>

#include "resource/Resource.h"
#include "resource/CpuResource.h"
#include "resource/GpuResource.h"
#include "resource/DiskResource.h"


namespace zilliz {
namespace milvus {
namespace engine {

class ResourceFactory {
public:
    static std::shared_ptr<Resource>
W
wxyu 已提交
24 25 26 27
    Create(const std::string &name,
           const std::string &alias = "",
           bool enable_loader = true,
           bool enable_executor = true);
W
wxyu 已提交
28 29 30 31 32 33 34
};


}
}
}