bulkImport()
Creates a bulk import job from prepared data files in Milvus or Zilliz Cloud.
public static String bulkImport(String url, BaseImportRequest request)
Request Syntax
Use this request when importing bucket data into Zilliz Cloud.
CloudImportRequest.builder()
.apiKey(apiKey)
.clusterId(clusterId)
.projectId(projectId)
.regionId(regionId)
.dbName(dbName)
.collectionName(collectionName)
.partitionName(partitionName)
.objectUrls(objectUrls)
.objectUrl(objectUrl)
.accessKey(accessKey)
.secretKey(secretKey)
.token(token)
.options(options)
.build();
PARAMETERS:
-
apiKey (String) -
Authentication credential. Use the Zilliz Cloud API key for Cloud requests orusername:passwordfor Milvus requests. -
clusterId (String) -
Cluster identifier for cluster-based deployments. For project database deployments, useprojectIdandregionIdinstead. -
projectId (String) -
Project identifier for project database deployments. Use withregionIdinstead ofclusterId. -
regionId (String) -
Region identifier for project database deployments. Use withprojectIdinstead ofclusterId. -
dbName (String) -
Default:default
Target database name for Dedicated deployments. -
collectionName (String) -
Target collection name. -
partitionName (String) -
Default:default
Target partition name when the collection does not use a partition key. -
objectUrls (List<List<String>>) -
Bucket folders or files to import. Supports multiple paths and file groups. -
objectUrl (String) -
Deprecated single bucket folder or file URL. UseobjectUrlsfor new integrations. -
accessKey (String) -
Storage access key. Use withsecretKeyand, for temporary credentials,token. -
secretKey (String) -
Storage secret key. Use withaccessKeyand, for temporary credentials,token. -
token (String) -
Temporary storage credential token when short-term credentials are used. -
options (Map<String, Object>) -
Additional import options passed to the service.
RETURNS:
String
A JSON response whose data.jobId identifies the created import job.
Example
Creates an import job for a project database in Zilliz Cloud.
CloudImportRequest request = CloudImportRequest.builder()
.projectId(PROJECT_ID)
.regionId(REGION_ID)
.collectionName("books")
.objectUrls(List.of(List.of("s3://bucket/books.parquet")))
.accessKey(ACCESS_KEY)
.secretKey(SECRET_KEY)
.apiKey(API_KEY)
.build();
String response = BulkImportUtils.bulkImport("https://api.cloud.zilliz.com", request);