pub struct FieldSchema {
pub field_name: String,
pub field_type: FieldType,
pub primary_key: bool,
pub partition_key: bool,
pub auto_increment: bool,
pub not_null: bool,
pub dimension: Option<u32>,
}Fields§
§field_name: Stringmust start with a letter, only lowercase and uppercase letters, numbers and underscores are allowed
field_type: FieldTypeBOOL、INT8、UINT8、INT16、UINT16、INT32、UINT32、INT64、UINT64、FLOAT、DOUBLE、DATE、DATETIME、TIMESTAMP、UUID、STRING、BINARY、TEXT、TEXT_GBK、TEXT_GB18030、FLOAT_VECTOR
primary_key: boolonly a single field is supported for primary key currently, unsupport field with type: BOOL、FLOAT、DOUBLE、FLOAT_VECTOR
partition_key: boolonly a single field is supported as a partition key, which can be a primary key or not, a table can only have one partition key, each record will be hashed and mapped to diffrent partition, unsupport field with type: BOOL、FLOAT、DOUBLE、FLOAT_VECTOR
auto_increment: boolis autoincreament, only applicable to primary key fields of type UINT64
not_null: boolprimary key field, partition key field, secondary index key field and vector field cannot be nullable
dimension: Option<u32>vector dimension. This parameter needs to be specified only when the data type is FLOAT_VECTOR.
Trait Implementations§
Source§impl Clone for FieldSchema
impl Clone for FieldSchema
Source§fn clone(&self) -> FieldSchema
fn clone(&self) -> FieldSchema
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more