mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
762b1e1f1f
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
50 lines
860 B
Protocol Buffer
50 lines
860 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package milvus.proto.schema;
|
|
option go_package="github.com/zilliztech/milvus-distributed/internal/proto/schemapb";
|
|
|
|
import "common.proto";
|
|
|
|
/**
|
|
* @brief Field data type
|
|
*/
|
|
enum DataType {
|
|
NONE = 0;
|
|
BOOL = 1;
|
|
INT8 = 2;
|
|
INT16 = 3;
|
|
INT32 = 4;
|
|
INT64 = 5;
|
|
|
|
FLOAT = 10;
|
|
DOUBLE = 11;
|
|
|
|
STRING = 20;
|
|
|
|
VECTOR_BINARY = 100;
|
|
VECTOR_FLOAT = 101;
|
|
}
|
|
|
|
/**
|
|
* @brief Field schema
|
|
*/
|
|
message FieldSchema {
|
|
int64 fieldID = 1;
|
|
string name = 2;
|
|
bool is_primary_key = 3;
|
|
string description = 4;
|
|
DataType data_type = 5;
|
|
repeated common.KeyValuePair type_params = 6;
|
|
repeated common.KeyValuePair index_params = 7;
|
|
}
|
|
|
|
/**
|
|
* @brief Collection schema
|
|
*/
|
|
message CollectionSchema {
|
|
string name = 1;
|
|
string description = 2;
|
|
bool autoID = 3;
|
|
repeated FieldSchema fields = 4;
|
|
}
|