跳到主要内容
版本:v3.0.x

Storage

This interface stores files produced by BulkWriter. Use it to upload generated files to object storage or another remote location before calling bulkInsert().

JavaScript
interface Storage

METHODS:

  • write(localPath: string, remotePath: string): Promise<string>

    Stores a generated local file and returns the final path that should be passed to Milvus import APIs.

Example

JavaScript
class S3Storage {
async write(localPath, remotePath) {
await uploadToS3(localPath, remotePath);
return `s3://bucket/${remotePath}`;
}
}