StageFileManager
A StageFileManager instance maintains a connection to a specific Zilliz Cloud stage. Before uploading data files to a stage, you need to initiate a StageFileManager instance.
class pymilvus.bulk_writer.stage_file_manager.StageFileManager
A stage is an intermediate storage spot where you can hold your data for further processing, such as data merging, migration, or importing. For details, refer to Manage Stages.
Constructor
This constructor initializes a new StageFileManager instance designed to maintain a connection to a specific Zilliz Cloud stage.
StageFileManager(
cloud_endpoint: str,
api_key: str,
stage_name: str
)
PARAMETERS:
-
cloud_endpoint (str) -
[REQUIRED]
The Zilliz Cloud endpoint, which is
https:*//*api.cloud.zilliz.com(Global) orhttps://api.cloud.zilliz.com.cn(China), depending on the platform you have registered with. -
api_key (str) -
[REQUIRED]
Your Zilliz Cloud API key with sufficient permissions to manage stages on Zilliz Cloud's Stage service. To obtain a Zilliz Cloud API key, follow the steps on API Keys.
-
stage_name (str) -
[REQUIRED]
The name of the target stage of this operation.
RETURN TYPE:
StageFileManager
RETURNS:
A StageFileManager instance.
Examples
from pymilvus.bulk_writer.stage_file_manager import StageFileManager
stage_manager = StageFileManager(
cloud_endpoint="https://api.cloud.zilliz.com.cn",
api_key="YOUR_API_KEY",
stage_name="my_stage"
)