Package io.milvus.param.index
Class GetIndexStateParam.Builder
- java.lang.Object
-
- io.milvus.param.index.GetIndexStateParam.Builder
-
- Enclosing class:
- GetIndexStateParam
public static final class GetIndexStateParam.Builder extends Object
Builder forGetIndexStateParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetIndexStateParambuild()Verifies parameters and creates a newGetIndexStateParaminstance.GetIndexStateParam.BuilderwithCollectionName(@NonNull String collectionName)Sets the collection name.GetIndexStateParam.BuilderwithDatabaseName(String databaseName)Sets the database name.GetIndexStateParam.BuilderwithIndexName(@NonNull String indexName)The name of target index.
-
-
-
Method Detail
-
withDatabaseName
public GetIndexStateParam.Builder withDatabaseName(String databaseName)
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withCollectionName
public GetIndexStateParam.Builder withCollectionName(@NonNull @NonNull String collectionName)
Sets the collection name. Collection name cannot be empty or null.- Parameters:
collectionName- collection name- Returns:
Builder
-
withIndexName
public GetIndexStateParam.Builder withIndexName(@NonNull @NonNull String indexName)
The name of target index. If no index name is specified, the default index name("_default_idx") is used.- Parameters:
indexName- index name- Returns:
Builder
-
build
public GetIndexStateParam build() throws ParamException
Verifies parameters and creates a newGetIndexStateParaminstance.- Returns:
GetIndexStateParam- Throws:
ParamException
-
-