Class MutationResultWrapper


  • public class MutationResultWrapper
    extends Object
    Utility class to wrap response of insert/delete 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:
        int row count of the inserted entities
      • getLongIDs

        public List<Long> getLongIDs()
                              throws ParamException
        Gets the long ID array returned by insert interface. Throw ParamException if the primary key type is not int64 type.
        Returns:
        List ID array returned by insert interface
        Throws:
        ParamException
      • getStringIDs

        public List<String> getStringIDs()
                                  throws ParamException
        Gets the string ID array returned by insert interface. Throw ParamException if 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 ID 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:
        int row count of the deleted entities