DataImport
Functions and types related to bulk data import via the RESTful API.
BulkImport() [READ MORE]
This function submits a bulk import job to a Milvus or Zilliz Cloud cluster via the RESTful import API. Use this when you need to load large datasets that have already been staged in object storage or are accessible by file path lists. The call returns immediately with a job ID; track the job's progress with `GetImportProgress()` and list outstanding jobs with `ListImportJobs()`.
BulkImportOption [READ MORE]
BulkImportOption
BulkImportResponse [READ MORE]
This class represents the response returned by the `BulkImport()` package function. It embeds `ResponseBase` for the common `Status` and `Message` fields, and exposes the assigned import job ID under `Data.JobID`. Use the embedded `CheckStatus()` method to verify the call succeeded before reading `Data`.
GetImportProgress() [READ MORE]
This function retrieves detailed progress for a single bulk import job via the RESTful API. Use it to poll a job submitted by `BulkImport()` until its `State` reaches `Completed` or `Failed`. The response includes overall progress, total imported/expected rows, file size, and per-file progress details.
GetImportProgressOption [READ MORE]
This type configures a request to retrieve progress for a single bulk import job via the RESTful API. Construct it with `NewGetImportProgressOption()` for self-hosted Milvus, or `NewCloudGetImportProgressOption()` for Zilliz Cloud. Chain `WithAPIKey()` to add an authorization token.
GetImportProgressResponse [READ MORE]
This class represents the response returned by the `GetImportProgress()` package function. It embeds `ResponseBase` and exposes the detailed progress payload through `ImportProgressData`, which includes both overall job statistics and a per-file `Details` slice.
ListImportJobs() [READ MORE]
This function lists bulk import jobs for a given collection via the RESTful API. Use it to monitor outstanding and completed import jobs, paginate through job history, or filter by collection name. Each record in the response includes the job ID, current state, progress percentage, and any failure reason.
ListImportJobsOption [READ MORE]
This type configures a request to list bulk import jobs for a collection via the RESTful API. Construct it with `NewListImportJobsOption()`, which defaults to `CurrentPage 1, PageSize: 10`. Chain `With` builder methods to change pagination, add API keys, or override defaults.
ListImportJobsResponse [READ MORE]
This class represents the response returned by the `ListImportJobs()` package function. It embeds `ResponseBase` for status fields and exposes the paginated job list through a nested `ListImportJobData` struct. Each entry in `Data.Records` is an `ImportJobRecord` describing one bulk import job.