LoadState
The load state of a collection or partition.
public enum LoadState
{
NotExist = 0,
NotLoad = 1,
Loading = 2,
Loaded = 3
}
Constants:
NotExist (0)
The entity does not exist.
NotLoad (1)
The entity is not loaded.
Loading (2)
The entity is being loaded.
Loaded (3)
The entity is loaded.
Example
using Milvus.Client.V2;
using Milvus.Client.V2.Requests.Collection;
using Milvus.Client.V2.Responses.Collection;
using var client = new MilvusClientV2(new ConnectConfig
{
Uri = "localhost:19530",
Username = "root",
Password = "Milvus"
});
GetLoadStateResp loadState = await client.GetLoadStateAsync(new GetLoadStateReq
{
CollectionName = "my_collection"
});
Console.WriteLine(loadState.State == LoadState.Loaded ? "Loaded" : "Not loaded");