mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-01 00:15:30 +08:00
29 lines
496 B
C++
29 lines
496 B
C++
#pragma once
|
|
|
|
#include "Error.h"
|
|
|
|
namespace zilliz {
|
|
namespace milvus {
|
|
namespace server {
|
|
|
|
class ValidationUtil {
|
|
public:
|
|
static ServerError
|
|
ValidateTableName(const std::string &table_name);
|
|
|
|
static ServerError
|
|
ValidateTableDimension(int64_t dimension);
|
|
|
|
static ServerError
|
|
ValidateTableIndexType(int32_t index_type);
|
|
|
|
static ServerError
|
|
ValidateGpuIndex(uint32_t gpu_index);
|
|
|
|
static ServerError
|
|
GetGpuMemory(uint32_t gpu_index, size_t &memory);
|
|
};
|
|
|
|
}
|
|
}
|
|
} |