commit_import()
Commits a bulk-import job after all its data files have been uploaded and flushed.
pub async fn commit_import(&self, request: DescribeImportRequest) -> Result<BulkImportResponse>
Request Syntax
let request = DescribeImportRequest::builder()
.job_id("job-1")
.build()?;
REQUEST FIELDS:
database_name: StringName of the database that holds the collection.
job_id: StringID of the import job to commit. Required.
cluster_id: StringZilliz Cloud only. Cluster ID of the target deployment. Cannot be combined with
project_idandregion_id.project_id: StringZilliz Cloud only. Project ID of the target deployment. Must be specified together with
region_id.region_id: StringZilliz Cloud only. Region ID of the target deployment. Must be specified together with
project_id.
RETURN TYPE:
Result
RETURNS:
A BulkImportResponse object containing the bulk-import endpoint response. Returns an Error if the operation fails. See BulkImportResponse for its methods.
Example
let request = DescribeImportRequest::builder()
.job_id("job-1")
.build()?;
let resp = bulk.commit_import(request).await?;