TargetSizeUnit

This enum specifies the unit of the target_size parameter in Compact().

pub enum TargetSizeUnit {
    B,
    KB,
    MB,
    GB,
    TB,
    PB,
}

VARIANTS:

  • B

    Bytes.

  • KB

    Kilobytes.

  • MB

    Megabytes.

  • GB

    Gigabytes.

  • TB

    Terabytes.

  • PB

    Petabytes.

Example

let request = CompactRequest::builder()
    .collection_name("books")
    .target_size(1)
    .target_size_unit(TargetSizeUnit::GB)
    .build()?;

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?