メインコンテンツまでスキップ

Storage

このインターフェースは BulkWriter によって生成されたファイルを保存します。bulkInsert() を呼び出す前に、生成されたファイルをオブジェクトストレージまたは別のリモート場所へアップロードするために使用します。

typescript
interface Storage

メソッド:

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

    生成されたローカルファイルを保存し、Milvus の import API に渡すべき最終パスを返します。

Example​

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