Package io.milvus.response
Class MutationResultWrapper
java.lang.Object
io.milvus.response.MutationResultWrapper
Utility class to wrap response of
insert/delete interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the row count of the deleted entities.List<?> Gets the ID array from returned by delete interface.longGets the row count of the inserted entities.List<?> Gets the ID array from returned by insert interface.Gets the long ID array returned by insert interface.longGet timestamp of the operation marked by server.Gets the string ID array returned by insert interface.
-
Constructor Details
-
MutationResultWrapper
-
-
Method Details
-
getInsertCount
public long getInsertCount()Gets the row count of the inserted entities.- Returns:
introw count of the inserted entities
-
getLongIDs
Gets the long ID array returned by insert interface. ThrowParamExceptionif the primary key type is not int64 type.- Returns:
- List of Long, ID array returned by insert interface
- Throws:
ParamException
-
getStringIDs
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:
- List of String, ID array returned by insert interface
- Throws:
ParamException
-
getInsertIDs
Gets the ID array from returned by insert interface.- Returns:
- List of Ids, ID array returned by insert interface
-
getDeleteIDs
Gets the ID array from returned by delete interface.- Returns:
- List of Ids, ID array returned by delete interface
-
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
-
getOperationTs
public long getOperationTs()Get timestamp of the operation marked by server. You can use this timestamp as for guarantee timestamp of query/search api. Note: the timestamp is not an absolute timestamp, it is a hybrid value combined by UTC time and internal flags. We call it TSO, for more information: @see Hybrid Timestamp in Milvus- Returns:
introw count of the deleted entities
-