|
@@ -24,18 +24,76 @@ import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
import lombok.experimental.SuperBuilder;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@Data
|
|
|
@SuperBuilder
|
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
|
+/*
|
|
|
+ If you want to import data into a Zilliz cloud instance and your data is stored in a storage bucket,
|
|
|
+ you can use this method to import the data from the bucket.
|
|
|
+ */
|
|
|
public class CloudImportRequest extends BaseImportRequest {
|
|
|
private static final long serialVersionUID = 6487348610099924813L;
|
|
|
- private String objectUrl;
|
|
|
- private String accessKey;
|
|
|
- private String secretKey;
|
|
|
- private String token;
|
|
|
private String clusterId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * For Free & Serverless deployments: specifying this parameter is not supported.
|
|
|
+ * For Dedicated deployments: this parameter can be specified; defaults to the "default" database.
|
|
|
+ */
|
|
|
private String dbName;
|
|
|
private String collectionName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * If the collection has partitionKey enabled:
|
|
|
+ * - The partitionName parameter cannot be specified for import.
|
|
|
+ * If the collection does not have partitionKey enabled:
|
|
|
+ * - You may specify partitionName for the import.
|
|
|
+ * - Defaults to the "default" partition if not specified.
|
|
|
+ */
|
|
|
private String partitionName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Data import can be configured in multiple ways using `objectUrls`:
|
|
|
+ * <p>
|
|
|
+ * 1. Multi-path import (multiple folders or files):
|
|
|
+ * "objectUrls": [
|
|
|
+ * ["s3://bucket-name/parquet-folder-1/1.parquet"],
|
|
|
+ * ["s3://bucket-name/parquet-folder-2/1.parquet"],
|
|
|
+ * ["s3://bucket-name/parquet-folder-3/"]
|
|
|
+ * ]
|
|
|
+ * <p>
|
|
|
+ * 2. Folder import:
|
|
|
+ * "objectUrls": [
|
|
|
+ * ["s3://bucket-name/parquet-folder/"]
|
|
|
+ * ]
|
|
|
+ * <p>
|
|
|
+ * 3. Single file import:
|
|
|
+ * "objectUrls": [
|
|
|
+ * ["s3://bucket-name/parquet-folder/1.parquet"]
|
|
|
+ * ]
|
|
|
+ */
|
|
|
+ private List<List<String>> objectUrls;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Use `objectUrls` instead for more flexible multi-path configuration.
|
|
|
+ * <p>
|
|
|
+ * Folder import:
|
|
|
+ * "objectUrl": "s3://bucket-name/parquet-folder/"
|
|
|
+ * <p>
|
|
|
+ * File import:
|
|
|
+ * "objectUrl": "s3://bucket-name/parquet-folder/1.parquet"
|
|
|
+ */
|
|
|
+ @Deprecated
|
|
|
+ private String objectUrl;
|
|
|
+
|
|
|
+ /** Specify `accessKey` and `secretKey`; for short-term credentials, also include `token`. */
|
|
|
+ private String accessKey;
|
|
|
+
|
|
|
+ /** Specify `accessKey` and `secretKey`; for short-term credentials, also include `token`. */
|
|
|
+ private String secretKey;
|
|
|
+
|
|
|
+ /** Specify `accessKey` and `secretKey`; for short-term credentials, also include `token`. */
|
|
|
+ private String token;
|
|
|
}
|