MutationResultWrapper.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_251) on Fri Jul 22 10:32:49 CST 2022 -->
  6. <title>MutationResultWrapper</title>
  7. <meta name="date" content="2022-07-22">
  8. <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="MutationResultWrapper";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="package-tree.html">Tree</a></li>
  44. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  45. <li><a href="../../../index-files/index-1.html">Index</a></li>
  46. <li><a href="../../../help-doc.html">Help</a></li>
  47. </ul>
  48. </div>
  49. <div class="subNav">
  50. <ul class="navList">
  51. <li><a href="../../../io/milvus/response/GetPartStatResponseWrapper.html" title="class in io.milvus.response"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  52. <li><a href="../../../io/milvus/response/QueryResultsWrapper.html" title="class in io.milvus.response"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  53. </ul>
  54. <ul class="navList">
  55. <li><a href="../../../index.html?io/milvus/response/MutationResultWrapper.html" target="_top">Frames</a></li>
  56. <li><a href="MutationResultWrapper.html" target="_top">No&nbsp;Frames</a></li>
  57. </ul>
  58. <ul class="navList" id="allclasses_navbar_top">
  59. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  60. </ul>
  61. <div>
  62. <script type="text/javascript"><!--
  63. allClassesLink = document.getElementById("allclasses_navbar_top");
  64. if(window==top) {
  65. allClassesLink.style.display = "block";
  66. }
  67. else {
  68. allClassesLink.style.display = "none";
  69. }
  70. //-->
  71. </script>
  72. </div>
  73. <div>
  74. <ul class="subNavList">
  75. <li>Summary:&nbsp;</li>
  76. <li>Nested&nbsp;|&nbsp;</li>
  77. <li>Field&nbsp;|&nbsp;</li>
  78. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#method.summary">Method</a></li>
  80. </ul>
  81. <ul class="subNavList">
  82. <li>Detail:&nbsp;</li>
  83. <li>Field&nbsp;|&nbsp;</li>
  84. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  85. <li><a href="#method.detail">Method</a></li>
  86. </ul>
  87. </div>
  88. <a name="skip.navbar.top">
  89. <!-- -->
  90. </a></div>
  91. <!-- ========= END OF TOP NAVBAR ========= -->
  92. <!-- ======== START OF CLASS DATA ======== -->
  93. <div class="header">
  94. <div class="subTitle">io.milvus.response</div>
  95. <h2 title="Class MutationResultWrapper" class="title">Class MutationResultWrapper</h2>
  96. </div>
  97. <div class="contentContainer">
  98. <ul class="inheritance">
  99. <li>java.lang.Object</li>
  100. <li>
  101. <ul class="inheritance">
  102. <li>io.milvus.response.MutationResultWrapper</li>
  103. </ul>
  104. </li>
  105. </ul>
  106. <div class="description">
  107. <ul class="blockList">
  108. <li class="blockList">
  109. <hr>
  110. <br>
  111. <pre>public class <span class="typeNameLabel">MutationResultWrapper</span>
  112. extends java.lang.Object</pre>
  113. <div class="block">Utility class to wrap response of <code>insert/delete</code> interface.</div>
  114. </li>
  115. </ul>
  116. </div>
  117. <div class="summary">
  118. <ul class="blockList">
  119. <li class="blockList">
  120. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  121. <ul class="blockList">
  122. <li class="blockList"><a name="constructor.summary">
  123. <!-- -->
  124. </a>
  125. <h3>Constructor Summary</h3>
  126. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  127. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  128. <tr>
  129. <th class="colOne" scope="col">Constructor and Description</th>
  130. </tr>
  131. <tr class="altColor">
  132. <td class="colOne"><code><span class="memberNameLink"><a href="../../../io/milvus/response/MutationResultWrapper.html#MutationResultWrapper-io.milvus.grpc.MutationResult-">MutationResultWrapper</a></span>(@NonNull io.milvus.grpc.MutationResult&nbsp;result)</code>&nbsp;</td>
  133. </tr>
  134. </table>
  135. </li>
  136. </ul>
  137. <!-- ========== METHOD SUMMARY =========== -->
  138. <ul class="blockList">
  139. <li class="blockList"><a name="method.summary">
  140. <!-- -->
  141. </a>
  142. <h3>Method Summary</h3>
  143. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  144. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  145. <tr>
  146. <th class="colFirst" scope="col">Modifier and Type</th>
  147. <th class="colLast" scope="col">Method and Description</th>
  148. </tr>
  149. <tr id="i0" class="altColor">
  150. <td class="colFirst"><code>long</code></td>
  151. <td class="colLast"><code><span class="memberNameLink"><a href="../../../io/milvus/response/MutationResultWrapper.html#getDeleteCount--">getDeleteCount</a></span>()</code>
  152. <div class="block">Gets the row count of the deleted entities.</div>
  153. </td>
  154. </tr>
  155. <tr id="i1" class="rowColor">
  156. <td class="colFirst"><code>long</code></td>
  157. <td class="colLast"><code><span class="memberNameLink"><a href="../../../io/milvus/response/MutationResultWrapper.html#getInsertCount--">getInsertCount</a></span>()</code>
  158. <div class="block">Gets the row count of the inserted entities.</div>
  159. </td>
  160. </tr>
  161. <tr id="i2" class="altColor">
  162. <td class="colFirst"><code>java.util.List&lt;java.lang.Long&gt;</code></td>
  163. <td class="colLast"><code><span class="memberNameLink"><a href="../../../io/milvus/response/MutationResultWrapper.html#getLongIDs--">getLongIDs</a></span>()</code>
  164. <div class="block">Gets the long ID array returned by insert interface.</div>
  165. </td>
  166. </tr>
  167. <tr id="i3" class="rowColor">
  168. <td class="colFirst"><code>long</code></td>
  169. <td class="colLast"><code><span class="memberNameLink"><a href="../../../io/milvus/response/MutationResultWrapper.html#getOperationTs--">getOperationTs</a></span>()</code>
  170. <div class="block">Get timestamp of the operation marked by server.</div>
  171. </td>
  172. </tr>
  173. <tr id="i4" class="altColor">
  174. <td class="colFirst"><code>java.util.List&lt;java.lang.String&gt;</code></td>
  175. <td class="colLast"><code><span class="memberNameLink"><a href="../../../io/milvus/response/MutationResultWrapper.html#getStringIDs--">getStringIDs</a></span>()</code>
  176. <div class="block">Gets the string ID array returned by insert interface.</div>
  177. </td>
  178. </tr>
  179. </table>
  180. <ul class="blockList">
  181. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  182. <!-- -->
  183. </a>
  184. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  185. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  186. </ul>
  187. </li>
  188. </ul>
  189. </li>
  190. </ul>
  191. </div>
  192. <div class="details">
  193. <ul class="blockList">
  194. <li class="blockList">
  195. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  196. <ul class="blockList">
  197. <li class="blockList"><a name="constructor.detail">
  198. <!-- -->
  199. </a>
  200. <h3>Constructor Detail</h3>
  201. <a name="MutationResultWrapper-io.milvus.grpc.MutationResult-">
  202. <!-- -->
  203. </a>
  204. <ul class="blockListLast">
  205. <li class="blockList">
  206. <h4>MutationResultWrapper</h4>
  207. <pre>public&nbsp;MutationResultWrapper(@NonNull
  208. @NonNull io.milvus.grpc.MutationResult&nbsp;result)</pre>
  209. </li>
  210. </ul>
  211. </li>
  212. </ul>
  213. <!-- ============ METHOD DETAIL ========== -->
  214. <ul class="blockList">
  215. <li class="blockList"><a name="method.detail">
  216. <!-- -->
  217. </a>
  218. <h3>Method Detail</h3>
  219. <a name="getInsertCount--">
  220. <!-- -->
  221. </a>
  222. <ul class="blockList">
  223. <li class="blockList">
  224. <h4>getInsertCount</h4>
  225. <pre>public&nbsp;long&nbsp;getInsertCount()</pre>
  226. <div class="block">Gets the row count of the inserted entities.</div>
  227. <dl>
  228. <dt><span class="returnLabel">Returns:</span></dt>
  229. <dd><code>int</code> row count of the inserted entities</dd>
  230. </dl>
  231. </li>
  232. </ul>
  233. <a name="getLongIDs--">
  234. <!-- -->
  235. </a>
  236. <ul class="blockList">
  237. <li class="blockList">
  238. <h4>getLongIDs</h4>
  239. <pre>public&nbsp;java.util.List&lt;java.lang.Long&gt;&nbsp;getLongIDs()
  240. throws <a href="../../../io/milvus/exception/ParamException.html" title="class in io.milvus.exception">ParamException</a></pre>
  241. <div class="block">Gets the long ID array returned by insert interface.
  242. Throw <a href="../../../io/milvus/exception/ParamException.html" title="class in io.milvus.exception"><code>ParamException</code></a> if the primary key type is not int64 type.</div>
  243. <dl>
  244. <dt><span class="returnLabel">Returns:</span></dt>
  245. <dd>List of Long, ID array returned by insert interface</dd>
  246. <dt><span class="throwsLabel">Throws:</span></dt>
  247. <dd><code><a href="../../../io/milvus/exception/ParamException.html" title="class in io.milvus.exception">ParamException</a></code></dd>
  248. </dl>
  249. </li>
  250. </ul>
  251. <a name="getStringIDs--">
  252. <!-- -->
  253. </a>
  254. <ul class="blockList">
  255. <li class="blockList">
  256. <h4>getStringIDs</h4>
  257. <pre>public&nbsp;java.util.List&lt;java.lang.String&gt;&nbsp;getStringIDs()
  258. throws <a href="../../../io/milvus/exception/ParamException.html" title="class in io.milvus.exception">ParamException</a></pre>
  259. <div class="block">Gets the string ID array returned by insert interface.
  260. Throw <a href="../../../io/milvus/exception/ParamException.html" title="class in io.milvus.exception"><code>ParamException</code></a> if the primary key type is not string type.
  261. Note that current release of Milvus doesn't support string type field, thus this method is reserved.</div>
  262. <dl>
  263. <dt><span class="returnLabel">Returns:</span></dt>
  264. <dd>List of String, ID array returned by insert interface</dd>
  265. <dt><span class="throwsLabel">Throws:</span></dt>
  266. <dd><code><a href="../../../io/milvus/exception/ParamException.html" title="class in io.milvus.exception">ParamException</a></code></dd>
  267. </dl>
  268. </li>
  269. </ul>
  270. <a name="getDeleteCount--">
  271. <!-- -->
  272. </a>
  273. <ul class="blockList">
  274. <li class="blockList">
  275. <h4>getDeleteCount</h4>
  276. <pre>public&nbsp;long&nbsp;getDeleteCount()</pre>
  277. <div class="block">Gets the row count of the deleted entities. Currently, this value is always equal to input row count</div>
  278. <dl>
  279. <dt><span class="returnLabel">Returns:</span></dt>
  280. <dd><code>int</code> row count of the deleted entities</dd>
  281. </dl>
  282. </li>
  283. </ul>
  284. <a name="getOperationTs--">
  285. <!-- -->
  286. </a>
  287. <ul class="blockListLast">
  288. <li class="blockList">
  289. <h4>getOperationTs</h4>
  290. <pre>public&nbsp;long&nbsp;getOperationTs()</pre>
  291. <div class="block">Get timestamp of the operation marked by server. You can use this timestamp as for guarantee timestamp of query/search api.
  292. Note: the timestamp is not an absolute timestamp, it is a hybrid value combined by UTC time and internal flags.
  293. We call it TSO, for more information: @see <a href="https://github.com/milvus-io/milvus/blob/master/docs/design_docs/milvus_hybrid_ts_en.md">Hybrid Timestamp in Milvus</a></div>
  294. <dl>
  295. <dt><span class="returnLabel">Returns:</span></dt>
  296. <dd><code>int</code> row count of the deleted entities</dd>
  297. </dl>
  298. </li>
  299. </ul>
  300. </li>
  301. </ul>
  302. </li>
  303. </ul>
  304. </div>
  305. </div>
  306. <!-- ========= END OF CLASS DATA ========= -->
  307. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  308. <div class="bottomNav"><a name="navbar.bottom">
  309. <!-- -->
  310. </a>
  311. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  312. <a name="navbar.bottom.firstrow">
  313. <!-- -->
  314. </a>
  315. <ul class="navList" title="Navigation">
  316. <li><a href="../../../overview-summary.html">Overview</a></li>
  317. <li><a href="package-summary.html">Package</a></li>
  318. <li class="navBarCell1Rev">Class</li>
  319. <li><a href="package-tree.html">Tree</a></li>
  320. <li><a href="../../../deprecated-list.html">Deprecated</a></li>
  321. <li><a href="../../../index-files/index-1.html">Index</a></li>
  322. <li><a href="../../../help-doc.html">Help</a></li>
  323. </ul>
  324. </div>
  325. <div class="subNav">
  326. <ul class="navList">
  327. <li><a href="../../../io/milvus/response/GetPartStatResponseWrapper.html" title="class in io.milvus.response"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  328. <li><a href="../../../io/milvus/response/QueryResultsWrapper.html" title="class in io.milvus.response"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  329. </ul>
  330. <ul class="navList">
  331. <li><a href="../../../index.html?io/milvus/response/MutationResultWrapper.html" target="_top">Frames</a></li>
  332. <li><a href="MutationResultWrapper.html" target="_top">No&nbsp;Frames</a></li>
  333. </ul>
  334. <ul class="navList" id="allclasses_navbar_bottom">
  335. <li><a href="../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  336. </ul>
  337. <div>
  338. <script type="text/javascript"><!--
  339. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  340. if(window==top) {
  341. allClassesLink.style.display = "block";
  342. }
  343. else {
  344. allClassesLink.style.display = "none";
  345. }
  346. //-->
  347. </script>
  348. </div>
  349. <div>
  350. <ul class="subNavList">
  351. <li>Summary:&nbsp;</li>
  352. <li>Nested&nbsp;|&nbsp;</li>
  353. <li>Field&nbsp;|&nbsp;</li>
  354. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  355. <li><a href="#method.summary">Method</a></li>
  356. </ul>
  357. <ul class="subNavList">
  358. <li>Detail:&nbsp;</li>
  359. <li>Field&nbsp;|&nbsp;</li>
  360. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  361. <li><a href="#method.detail">Method</a></li>
  362. </ul>
  363. </div>
  364. <a name="skip.navbar.bottom">
  365. <!-- -->
  366. </a></div>
  367. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  368. </body>
  369. </html>