Ids

Primary-key values identifying the rows of a collection, used to target rows by ID in get, query, search, and delete operations.

pub enum Ids {
    Int64(Vec<i64>),
    VarChar(Vec<String>),
}

VARIANTS:

  • Int64

    Integer primary-key values.

  • VarChar

    String primary-key values.

METHODS:

  • len() (usize) -

    Returns the number of IDs.

  • is_empty() (bool) -

    Whether there are no IDs.

Example

let ids = Ids::Int64(vec![1, 2, 3]);

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?