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

#include <string>

#include "Resource.h"


namespace zilliz {
namespace milvus {
namespace engine {

class CpuResource : public Resource {
public:
    explicit
W
wxyu 已提交
20
    CpuResource(std::string name, bool enable_loader, bool enable_executor);
W
wxyu 已提交
21

22 23 24 25 26 27 28
    inline std::string
    Dump() const override {
        return "<CpuResource>";
    }

    friend std::ostream &operator<<(std::ostream &out, const CpuResource &resource);

W
wxyu 已提交
29 30
protected:
    void
X
xj.lin 已提交
31
    LoadFile(TaskPtr task) override;
W
wxyu 已提交
32 33

    void
X
xj.lin 已提交
34
    Process(TaskPtr task) override;
W
wxyu 已提交
35 36 37 38 39
};

}
}
}