Package io.milvus.param.dml
Class DeleteParam.Builder
- java.lang.Object
-
- io.milvus.param.dml.DeleteParam.Builder
-
- Enclosing class:
- DeleteParam
public static class DeleteParam.Builder extends Object
Builder forDeleteParamclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteParambuild()Verifies parameters and creates a newDeleteParaminstance.DeleteParam.BuilderwithCollectionName(@NonNull String collectionName)Sets the collection name.DeleteParam.BuilderwithDatabaseName(String databaseName)Sets the database name.DeleteParam.BuilderwithExpr(@NonNull String expr)Sets the expression to filter out entities to be deleted.DeleteParam.BuilderwithPartitionName(@NonNull String partitionName)Sets the partition name (Optional).
-
-
-
Method Detail
-
withDatabaseName
public DeleteParam.Builder withDatabaseName(String databaseName)
Sets the database name. database name can be nil.- Parameters:
databaseName- database name- Returns:
Builder
-
withCollectionName
public DeleteParam.Builder withCollectionName(@NonNull @NonNull String collectionName)
Sets the collection name. Collection name cannot be empty or null.- Parameters:
collectionName- collection name- Returns:
Builder
-
withPartitionName
public DeleteParam.Builder withPartitionName(@NonNull @NonNull String partitionName)
Sets the partition name (Optional).- Parameters:
partitionName- partition name- Returns:
Builder
-
withExpr
public DeleteParam.Builder withExpr(@NonNull @NonNull String expr)
Sets the expression to filter out entities to be deleted.- Parameters:
expr- filtering expression- Returns:
Builder- See Also:
- Boolean Expression Rules
-
build
public DeleteParam build() throws ParamException
Verifies parameters and creates a newDeleteParaminstance.- Returns:
DeleteParam- Throws:
ParamException
-
-