UNPKG

@zilliz/milvus2-sdk-node

Version:

Official Node.js SDK for [Milvus](https://github.com/milvus-io/milvus) vector database. Provides gRPC and HTTP clients for vector similarity search, metadata filtering, and full collection/index/user management.

28 lines (27 loc) • 896 B
import { FieldType } from '../types/Collection'; /** Serializes a ColumnBuffer to one or more files on disk. */ export interface Formatter { readonly extension: string; persist(columns: Map<string, any[]>, dynamicCol: Record<string, any>[], rowCount: number, dir: string, schema: BulkWriterSchema): Promise<string[]>; } /** Stores files (local pass-through or remote upload). */ export interface Storage { /** Returns the final stored path. */ write(localPath: string, remotePath: string): Promise<string>; } export interface BulkWriterSchema { fields: FieldType[]; enable_dynamic_field?: boolean; } export interface BulkWriterOptions { schema: BulkWriterSchema; storage?: Storage; format?: 'json' | 'parquet'; chunkSize?: number; localPath?: string; } export interface FlushEvent { files: string[]; rowCount: number; chunkIndex: number; }