Class GetIndexStateParam.Builder
- java.lang.Object
-
- io.milvus.param.index.GetIndexStateParam.Builder
-
- Enclosing class:
- GetIndexStateParam
public static final class GetIndexStateParam.Builder extends java.lang.Object
Builder forGetIndexStateParam
class.
-
-
Method Summary
Modifier and Type Method Description GetIndexStateParam
build()
Verifies parameters and creates a newGetIndexStateParam
instance.GetIndexStateParam.Builder
withCollectionName(@NonNull java.lang.String collectionName)
Sets the collection name.GetIndexStateParam.Builder
withFieldName(@NonNull java.lang.String fieldName)
Sets the target field name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
withCollectionName
public GetIndexStateParam.Builder withCollectionName(@NonNull @NonNull java.lang.String collectionName)
Sets the collection name. Collection name cannot be empty or null.- Parameters:
collectionName
- collection name- Returns:
Builder
-
withFieldName
public GetIndexStateParam.Builder withFieldName(@NonNull @NonNull java.lang.String fieldName)
Sets the target field name. Field name cannot be empty or null.- Parameters:
fieldName
- field name- Returns:
Builder
-
build
public GetIndexStateParam build() throws ParamException
Verifies parameters and creates a newGetIndexStateParam
instance.- Returns:
GetIndexStateParam
- Throws:
ParamException
-
-