GetLoadState()

Returns the load state and loading progress of a collection or partition.

pub async fn get_load_state(&self, request: GetLoadStateRequest) -> Result<GetLoadStateResponse>

Request Syntax

let request = GetLoadStateRequest::builder()
    .collection_name("books")
    .build()?;

REQUEST FIELDS:

  • database_name: Option<String>

    Name of the target database; uses the default database when empty.

  • collection_name: String

    Name of the collection to inspect. Required.

  • partition_names: Vec<String>

    Partition names to check the load state of. Use partition_name() to add one.

RETURN TYPE:

Result

RETURNS:

A GetLoadStateResponse containing the load state and progress of the target. Returns an Error if the operation fails.

GetLoadStateResponse
    state() // -> LoadState
    progress() // -> i64

METHODS:

  • state() (LoadState) -

    The load state of the collection or partition. See LoadState.

  • progress() (i64) -

    The loading progress as a percentage.

Example

let request = GetLoadStateRequest::builder()
    .collection_name("books")
    .build()?;
let resp = client.get_load_state(request).await?;
println!("state: {:?}, progress: {}", resp.state(), resp.progress());

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?