Package io.milvus.Response
Class MutationResultWrapper
- java.lang.Object
-
- io.milvus.Response.MutationResultWrapper
-
public class MutationResultWrapper extends Object
Utility class to wrap response ofinsert/deleteinterface.
-
-
Constructor Summary
Constructors Constructor Description MutationResultWrapper(@NonNull MutationResult result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDeleteCount()Gets the row count of the deleted entities.longgetInsertCount()Gets the row count of the inserted entities.List<Long>getLongIDs()Gets the long ID array returned by insert interface.List<String>getStringIDs()Gets the string ID array returned by insert interface.
-
-
-
Constructor Detail
-
MutationResultWrapper
public MutationResultWrapper(@NonNull @NonNull MutationResult result)
-
-
Method Detail
-
getInsertCount
public long getInsertCount()
Gets the row count of the inserted entities.- Returns:
introw count of the inserted entities
-
getLongIDs
public List<Long> getLongIDs() throws ParamException
Gets the long ID array returned by insert interface. ThrowParamExceptionif the primary key type is not int64 type.- Returns:
ListID array returned by insert interface- Throws:
ParamException
-
getStringIDs
public List<String> getStringIDs() throws ParamException
Gets the string ID array returned by insert interface. ThrowParamExceptionif the primary key type is not string type. Note that current release of Milvus doesn't support string type field, thus this method is reserved.- Returns:
ListID array returned by insert interface- Throws:
ParamException
-
getDeleteCount
public long getDeleteCount()
Gets the row count of the deleted entities. Currently this value is always equal to input row count- Returns:
introw count of the deleted entities
-
-