跳到主要内容

StageFileManager

A StageFileManager instance maintains a connection to a specific stage on Zilliz Cloud's Stage service. Before uploading data files to a stage, you need to initiate a StageFileManager instance.

io.milvus.bulkwriter.StageFileManager
📘Notes

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 stage on Zilliz Cloud's Stage service.

StageFileManager(
StageFileManager.newBuilder()
.withCloudEndpoint(String cloudEndpoint)
.withApiKey(String apiKey)
.withStageName(String stageName)
.build();
)

PARAMETERS:

  • cloudEndpoint (str) -

    [REQUIRED]

    The Zilliz Cloud endpoint, which is https://api.cloud.zilliz.com (Global) or https://api.cloud.zilliz.com.cn (China), depending on the platform you have registered with.

  • apiKey (str) -

    [REQUIRED]

    Your Zilliz Cloud API key with sufficient permissions to manage stages on Zilliz Cloud's Control Plane. To obtain a Zilliz Cloud API key, follow the steps on API Keys.

  • stageName (str) -

    [REQUIRED]

    The name of the target stage of this operation.

RETURN TYPE:

StageFileManager

RETURNS:

A StageFileManager instance.

Examples

import io.milvus.bulkwriter.StageFileManager;
import io.milvus.bulkwriter.StageFileManagerParam;

StageFileManagerParam stageFileManagerParam = StageFileManagerParam.newBuilder()
.withCloudEndpoint("https://api.cloud.zilliz.com.cn")
.withApiKey("YOUR_API_KEY")
.withStageName("my_stage")
.build();

StageFileManager stageFileManager = new StageFileManager(stageFileManagerParam);