milvus-logo
LFAI
< Docs
  • Python
    • DataImport

BulkFileType

This is an enumeration that provides the following constants.

Constants

  • JSON = 2 Sets the file type to JSON (.json).

  • PARQUET = 3 Sets the file type to Parquet (.parquet).

Examples

from pymilvus.bulk_writer import LocalBulkWriter, BulkFileType

local_writer = LocalBulkWriter(
    schema=schema,
    local_path=Path(OUTPUT_PATH).joinpath('json'),
    chunk_size=4*1024*1024,
    # highlight-next
    file_type=BulkFileType.JSON
)

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?