Skip to main content

commitImport()

Commits a prepared bulk-import job.

java
public static String commitImport(String url, BaseDescribeImportRequest request)

Request Syntax​

java
CloudDescribeImportRequest.builder()
.apiKey(apiKey)
.clusterId(clusterId)
.projectId(projectId)
.regionId(regionId)
.jobId(jobId)
.build();

CloudDescribeImportRequest​

Uses CloudDescribeImportRequest for Zilliz Cloud. Set clusterId, or set both projectId and regionId for a project database deployment.

BUILDER METHODS:

  • apiKey(String apiKey)

    The authentication credential. Use userName:password for Milvus or a Zilliz Cloud API key.

  • clusterId(String clusterId)

    The cluster ID for a Zilliz Cloud cluster deployment.

  • projectId(String projectId)

    The project ID for a Zilliz Cloud project database deployment.

  • regionId(String regionId)

    The region ID for a Zilliz Cloud project database deployment.

  • jobId(String jobId)

    The import job identifier to commit.

RETURNS:

String

The JSON response body returned by the import endpoint.

EXCEPTIONS:

  • Exception

    Raised when request validation, transport, or server execution fails. Inspect the exception message for the exact failure reason.

Example​

Demonstrates commitImport() against Zilliz Cloud.

java
String response = BulkImportUtils.commitImport(CLOUD_URL,
CloudDescribeImportRequest.builder()
.apiKey(API_KEY)
.clusterId(CLUSTER_ID)
.jobId(JOB_ID)
.build());
Minimum SDK versionv3.0.x