Class GetLoadStateParam.Builder

java.lang.Object
io.milvus.param.collection.GetLoadStateParam.Builder
Enclosing class:
GetLoadStateParam

public static final class GetLoadStateParam.Builder extends Object
Builder for GetLoadStateParam class.
  • Method Details

    • withDatabaseName

      public GetLoadStateParam.Builder withDatabaseName(String databaseName)
      Sets the database name. database name can be nil.
      Parameters:
      databaseName - database name
      Returns:
      Builder
    • withCollectionName

      public GetLoadStateParam.Builder withCollectionName(@NonNull @NonNull String collectionName)
      Sets the collection name. Collection name cannot be empty or null.
      Parameters:
      collectionName - collection name
      Returns:
      Builder
    • withPartitionNames

      public GetLoadStateParam.Builder withPartitionNames(@NonNull @NonNull List<String> partitionNames)
      Sets partition names list(Optional).
      Parameters:
      partitionNames - partition names list
      Returns:
      Builder
    • addPartitionName

      public GetLoadStateParam.Builder addPartitionName(@NonNull @NonNull String partitionName)
      Adds a partition by name. Partition name cannot be empty or null.
      Parameters:
      partitionName - partition name
      Returns:
      Builder
    • build

      public GetLoadStateParam build() throws ParamException
      Verifies parameters and creates a new GetLoadStateParam instance.
      Returns:
      GetLoadStateParam
      Throws:
      ParamException