GetCompactionPlans()

Retrieves the execution plans produced for a compaction action.

pub async fn get_compaction_plans(&self, request: GetCompactionPlansRequest) -> Result<GetCompactionPlansResponse>

Request Syntax

let request = GetCompactionPlansRequest::builder()
    .compaction_id(compaction_id)
    .build()?;

REQUEST FIELDS:

  • compaction_id: i64

    Identifier of the compaction action, as returned by Compact. Must be greater than zero.

RETURNS:

Result

GetCompactionPlansResponse exposes state() returning the CompactionStateCode and merges() returning the list of CompactionMerge plans produced for the compaction. Returns an Error on failure.

Example

let request = GetCompactionPlansRequest::builder()
    .compaction_id(compaction_id)
    .build()?;
let resp = client.get_compaction_plans(request).await?;
println!("merges: {}", resp.merges().len());

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?