DBApiEntry.html 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="zh">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_202) on Fri Jul 15 17:05:13 CST 2022 -->
  6. <title>DBApiEntry</title>
  7. <meta name="date" content="2022-07-15">
  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="DBApiEntry";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10};
  22. var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],8:["t4","具体方法"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>您的浏览器已禁用 JavaScript。</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="跳过导航链接">跳过导航链接</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="导航">
  40. <li><a href="../db/package-summary.html">程序包</a></li>
  41. <li class="navBarCell1Rev">类</li>
  42. <li><a href="package-tree.html">树</a></li>
  43. <li><a href="../deprecated-list.html">已过时</a></li>
  44. <li><a href="../index-files/index-1.html">索引</a></li>
  45. <li><a href="../help-doc.html">帮助</a></li>
  46. </ul>
  47. </div>
  48. <div class="subNav">
  49. <ul class="navList">
  50. <li><a href="../db/AggFunction.html" title="db中的枚举"><span class="typeNameLink">上一个类</span></a></li>
  51. <li><a href="../db/FieldName.html" title="db中的枚举"><span class="typeNameLink">下一个类</span></a></li>
  52. </ul>
  53. <ul class="navList">
  54. <li><a href="../index.html?db/DBApiEntry.html" target="_top">框架</a></li>
  55. <li><a href="DBApiEntry.html" target="_top">无框架</a></li>
  56. </ul>
  57. <ul class="navList" id="allclasses_navbar_top">
  58. <li><a href="../allclasses-noframe.html">所有类</a></li>
  59. </ul>
  60. <div>
  61. <script type="text/javascript"><!--
  62. allClassesLink = document.getElementById("allclasses_navbar_top");
  63. if(window==top) {
  64. allClassesLink.style.display = "block";
  65. }
  66. else {
  67. allClassesLink.style.display = "none";
  68. }
  69. //-->
  70. </script>
  71. </div>
  72. <div>
  73. <ul class="subNavList">
  74. <li>概要:&nbsp;</li>
  75. <li>嵌套&nbsp;|&nbsp;</li>
  76. <li><a href="#field.summary">字段</a>&nbsp;|&nbsp;</li>
  77. <li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
  78. <li><a href="#method.summary">方法</a></li>
  79. </ul>
  80. <ul class="subNavList">
  81. <li>详细资料:&nbsp;</li>
  82. <li><a href="#field.detail">字段</a>&nbsp;|&nbsp;</li>
  83. <li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
  84. <li><a href="#method.detail">方法</a></li>
  85. </ul>
  86. </div>
  87. <a name="skip.navbar.top">
  88. <!-- -->
  89. </a></div>
  90. <!-- ========= END OF TOP NAVBAR ========= -->
  91. <!-- ======== START OF CLASS DATA ======== -->
  92. <div class="header">
  93. <div class="subTitle">db</div>
  94. <h2 title="类 DBApiEntry" class="title">类 DBApiEntry</h2>
  95. </div>
  96. <div class="contentContainer">
  97. <ul class="inheritance">
  98. <li>java.lang.Object</li>
  99. <li>
  100. <ul class="inheritance">
  101. <li>db.DBApiEntry</li>
  102. </ul>
  103. </li>
  104. </ul>
  105. <div class="description">
  106. <ul class="blockList">
  107. <li class="blockList">
  108. <hr>
  109. <br>
  110. <pre>public class <span class="typeNameLabel">DBApiEntry</span>
  111. extends java.lang.Object</pre>
  112. </li>
  113. </ul>
  114. </div>
  115. <div class="summary">
  116. <ul class="blockList">
  117. <li class="blockList">
  118. <!-- =========== FIELD SUMMARY =========== -->
  119. <ul class="blockList">
  120. <li class="blockList"><a name="field.summary">
  121. <!-- -->
  122. </a>
  123. <h3>字段概要</h3>
  124. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="字段概要表, 列表字段和解释">
  125. <caption><span>字段</span><span class="tabEnd">&nbsp;</span></caption>
  126. <tr>
  127. <th class="colFirst" scope="col">限定符和类型</th>
  128. <th class="colLast" scope="col">字段和说明</th>
  129. </tr>
  130. <tr class="altColor">
  131. <td class="colFirst"><code>static java.util.logging.Logger</code></td>
  132. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#logger">logger</a></span></code>&nbsp;</td>
  133. </tr>
  134. </table>
  135. </li>
  136. </ul>
  137. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  138. <ul class="blockList">
  139. <li class="blockList"><a name="constructor.summary">
  140. <!-- -->
  141. </a>
  142. <h3>构造器概要</h3>
  143. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释">
  144. <caption><span>构造器</span><span class="tabEnd">&nbsp;</span></caption>
  145. <tr>
  146. <th class="colOne" scope="col">构造器和说明</th>
  147. </tr>
  148. <tr class="altColor">
  149. <td class="colOne"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#DBApiEntry-java.lang.String-int-java.lang.String-java.lang.String-java.lang.String-">DBApiEntry</a></span>(java.lang.String&nbsp;host,
  150. int&nbsp;port,
  151. java.lang.String&nbsp;tokenString,
  152. java.lang.String&nbsp;org,
  153. java.lang.String&nbsp;bucket)</code>
  154. <div class="block">初始化DBApiEntry。</div>
  155. </td>
  156. </tr>
  157. </table>
  158. </li>
  159. </ul>
  160. <!-- ========== METHOD SUMMARY =========== -->
  161. <ul class="blockList">
  162. <li class="blockList"><a name="method.summary">
  163. <!-- -->
  164. </a>
  165. <h3>方法概要</h3>
  166. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
  167. <caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  168. <tr>
  169. <th class="colFirst" scope="col">限定符和类型</th>
  170. <th class="colLast" scope="col">方法和说明</th>
  171. </tr>
  172. <tr id="i0" class="altColor">
  173. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;</code></td>
  174. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#aggTimeRange-java.util.List-long-long-db.AggFunction-db.FieldName-">aggTimeRange</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  175. long&nbsp;beginDate,
  176. long&nbsp;endDate,
  177. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  178. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</code>
  179. <div class="block">针对一系列id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
  180. </td>
  181. </tr>
  182. <tr id="i1" class="rowColor">
  183. <td class="colFirst"><code><a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a></code></td>
  184. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#aggTimeRange-java.lang.String-long-long-db.AggFunction-db.FieldName-">aggTimeRange</a></span>(java.lang.String&nbsp;id,
  185. long&nbsp;beginDate,
  186. long&nbsp;endDate,
  187. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  188. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</code>
  189. <div class="block">针对单个id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
  190. </td>
  191. </tr>
  192. <tr id="i2" class="altColor">
  193. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&gt;</code></td>
  194. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#aggTimeRangeByDayInSecondRange-java.util.List-long-long-db.AggFunction-db.FieldName-int-int-">aggTimeRangeByDayInSecondRange</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  195. long&nbsp;beginDate,
  196. long&nbsp;endDate,
  197. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  198. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName,
  199. int&nbsp;beginSecondInADay,
  200. int&nbsp;endSecondInADay)</code>
  201. <div class="block">针对一系列id,给定时间范围,分组窗口粒度为天,给定分组窗口[beginSecondInADay,endSecondInADay]中的数据。</div>
  202. </td>
  203. </tr>
  204. <tr id="i3" class="rowColor">
  205. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&gt;</code></td>
  206. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#aggTimeRangeByWindow-java.util.List-long-long-long-db.Granularity-db.AggFunction-db.FieldName-">aggTimeRangeByWindow</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  207. long&nbsp;beginDate,
  208. long&nbsp;endDate,
  209. long&nbsp;granularityValue,
  210. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity,
  211. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  212. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</code>
  213. <div class="block">针对一系列id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
  214. </td>
  215. </tr>
  216. <tr id="i4" class="altColor">
  217. <td class="colFirst"><code>java.util.List&lt;<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;</code></td>
  218. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#aggTimeRangeByWindow-java.lang.String-long-long-long-db.Granularity-db.AggFunction-db.FieldName-">aggTimeRangeByWindow</a></span>(java.lang.String&nbsp;id,
  219. long&nbsp;beginDate,
  220. long&nbsp;endDate,
  221. long&nbsp;granularityValue,
  222. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity,
  223. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  224. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</code>
  225. <div class="block">针对单个id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
  226. </td>
  227. </tr>
  228. <tr id="i5" class="rowColor">
  229. <td class="colFirst"><code>void</code></td>
  230. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#close--">close</a></span>()</code>
  231. <div class="block">释放influxclient资源</div>
  232. </td>
  233. </tr>
  234. <tr id="i6" class="altColor">
  235. <td class="colFirst"><code>boolean</code></td>
  236. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#createBucket-java.lang.String-long-">createBucket</a></span>(java.lang.String&nbsp;name,
  237. long&nbsp;retentionPeriod)</code>
  238. <div class="block">指定名称,创建新的bucket。</div>
  239. </td>
  240. </tr>
  241. <tr id="i7" class="rowColor">
  242. <td class="colFirst"><code>boolean</code></td>
  243. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#deleteAllDataInTimeRange-long-long-">deleteAllDataInTimeRange</a></span>(long&nbsp;beginDate,
  244. long&nbsp;endDate)</code>&nbsp;</td>
  245. </tr>
  246. <tr id="i8" class="altColor">
  247. <td class="colFirst"><code>boolean</code></td>
  248. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#deleteBucket-java.lang.String-">deleteBucket</a></span>(java.lang.String&nbsp;name)</code>
  249. <div class="block">删除指定名称的bucket。</div>
  250. </td>
  251. </tr>
  252. <tr id="i9" class="rowColor">
  253. <td class="colFirst"><code>protected java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;</code></td>
  254. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#greaterThanTime-java.util.SortedMap-long-">greaterThanTime</a></span>(java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&nbsp;timeSery,
  255. long&nbsp;compareTime)</code>&nbsp;</td>
  256. </tr>
  257. <tr id="i10" class="altColor">
  258. <td class="colFirst"><code>boolean</code></td>
  259. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#insertRecords-java.util.List-">insertRecords</a></span>(java.util.List&lt;<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;&nbsp;pointDataList)</code>
  260. <div class="block">将一系列PointData插入到数据库中。</div>
  261. </td>
  262. </tr>
  263. <tr id="i11" class="rowColor">
  264. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&gt;</code></td>
  265. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryFlowByWindow-java.util.List-long-long-long-db.Granularity-">queryFlowByWindow</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  266. long&nbsp;beginDate,
  267. long&nbsp;endDate,
  268. long&nbsp;granularityValue,
  269. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity)</code>
  270. <div class="block">针对一系列id,给定时间范围和分组粒度,查询对应的流量值。</div>
  271. </td>
  272. </tr>
  273. <tr id="i12" class="altColor">
  274. <td class="colFirst"><code>java.util.List&lt;<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;</code></td>
  275. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryFlowByWindow-java.lang.String-long-long-long-db.Granularity-">queryFlowByWindow</a></span>(java.lang.String&nbsp;id,
  276. long&nbsp;beginDate,
  277. long&nbsp;endDate,
  278. long&nbsp;granularityValue,
  279. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity)</code>
  280. <div class="block">针对单个id,给定时间范围和分组粒度,查询对应的流量值。</div>
  281. </td>
  282. </tr>
  283. <tr id="i13" class="rowColor">
  284. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,<a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a>&gt;</code></td>
  285. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryFlowInTimeRange-java.util.List-long-long-">queryFlowInTimeRange</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  286. long&nbsp;beginDate,
  287. long&nbsp;endDate)</code>
  288. <div class="block">针对一系列id,给定时间范围,查询对应时间范围内使用的流量值。</div>
  289. </td>
  290. </tr>
  291. <tr id="i14" class="altColor">
  292. <td class="colFirst"><code><a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a></code></td>
  293. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryFlowInTimeRange-java.lang.String-long-long-">queryFlowInTimeRange</a></span>(java.lang.String&nbsp;id,
  294. long&nbsp;beginDate,
  295. long&nbsp;endDate)</code>
  296. <div class="block">针对单个id,给定时间范围,查询对应时间范围内使用的流量值。</div>
  297. </td>
  298. </tr>
  299. <tr id="i15" class="rowColor">
  300. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;</code></td>
  301. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLast-java.util.List-">queryLast</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids)</code>
  302. <div class="block">给定一系列id,查询对应最新的PointData。</div>
  303. </td>
  304. </tr>
  305. <tr id="i16" class="altColor">
  306. <td class="colFirst"><code><a href="../db/PointData.html" title="db中的类">PointData</a></code></td>
  307. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLast-java.lang.String-">queryLast</a></span>(java.lang.String&nbsp;id)</code>
  308. <div class="block">给定id,查询最新的PointData。</div>
  309. </td>
  310. </tr>
  311. <tr id="i17" class="rowColor">
  312. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;</code></td>
  313. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLastInTimeRange-java.util.List-long-long-">queryLastInTimeRange</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  314. long&nbsp;beginDate,
  315. long&nbsp;endDate)</code>
  316. <div class="block">给定一系列id,查询对应最新的PointData。</div>
  317. </td>
  318. </tr>
  319. <tr id="i18" class="altColor">
  320. <td class="colFirst"><code><a href="../db/PointData.html" title="db中的类">PointData</a></code></td>
  321. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLastInTimeRange-java.lang.String-long-long-">queryLastInTimeRange</a></span>(java.lang.String&nbsp;id,
  322. long&nbsp;beginDate,
  323. long&nbsp;endDate)</code>
  324. <div class="block">给定id,查询最新的PointData。</div>
  325. </td>
  326. </tr>
  327. <tr id="i19" class="rowColor">
  328. <td class="colFirst"><code>java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;&gt;</code></td>
  329. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryTimeRange-java.util.List-long-long-">queryTimeRange</a></span>(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  330. long&nbsp;beginDate,
  331. long&nbsp;endDate)</code>
  332. <div class="block">给定要查询的一系列id和时间范围,返回各id在各时刻下对应的数据。</div>
  333. </td>
  334. </tr>
  335. <tr id="i20" class="altColor">
  336. <td class="colFirst"><code>java.util.List&lt;<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;</code></td>
  337. <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryTimeRange-java.lang.String-long-long-">queryTimeRange</a></span>(java.lang.String&nbsp;id,
  338. long&nbsp;beginDate,
  339. long&nbsp;endDate)</code>
  340. <div class="block">给定要查询的id和时间范围,返回要查询的数据。</div>
  341. </td>
  342. </tr>
  343. </table>
  344. <ul class="blockList">
  345. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  346. <!-- -->
  347. </a>
  348. <h3>从类继承的方法&nbsp;java.lang.Object</h3>
  349. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
  350. </ul>
  351. </li>
  352. </ul>
  353. </li>
  354. </ul>
  355. </div>
  356. <div class="details">
  357. <ul class="blockList">
  358. <li class="blockList">
  359. <!-- ============ FIELD DETAIL =========== -->
  360. <ul class="blockList">
  361. <li class="blockList"><a name="field.detail">
  362. <!-- -->
  363. </a>
  364. <h3>字段详细资料</h3>
  365. <a name="logger">
  366. <!-- -->
  367. </a>
  368. <ul class="blockListLast">
  369. <li class="blockList">
  370. <h4>logger</h4>
  371. <pre>public static final&nbsp;java.util.logging.Logger logger</pre>
  372. </li>
  373. </ul>
  374. </li>
  375. </ul>
  376. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  377. <ul class="blockList">
  378. <li class="blockList"><a name="constructor.detail">
  379. <!-- -->
  380. </a>
  381. <h3>构造器详细资料</h3>
  382. <a name="DBApiEntry-java.lang.String-int-java.lang.String-java.lang.String-java.lang.String-">
  383. <!-- -->
  384. </a>
  385. <ul class="blockListLast">
  386. <li class="blockList">
  387. <h4>DBApiEntry</h4>
  388. <pre>public&nbsp;DBApiEntry(java.lang.String&nbsp;host,
  389. int&nbsp;port,
  390. java.lang.String&nbsp;tokenString,
  391. java.lang.String&nbsp;org,
  392. java.lang.String&nbsp;bucket)
  393. throws java.io.IOException</pre>
  394. <div class="block">初始化DBApiEntry。</div>
  395. <dl>
  396. <dt><span class="paramLabel">参数:</span></dt>
  397. <dd><code>host</code> - 主机ip,如"127.0.0.1"。</dd>
  398. <dd><code>port</code> - 端口,如 8086。</dd>
  399. <dd><code>tokenString</code> - influxDB的 api token。</dd>
  400. <dd><code>org</code> - Organization Id, 8长度字符串。</dd>
  401. <dd><code>bucket</code> - 对应插入数据的bucket名称。</dd>
  402. <dt><span class="throwsLabel">抛出:</span></dt>
  403. <dd><code>java.io.IOException</code></dd>
  404. </dl>
  405. </li>
  406. </ul>
  407. </li>
  408. </ul>
  409. <!-- ============ METHOD DETAIL ========== -->
  410. <ul class="blockList">
  411. <li class="blockList"><a name="method.detail">
  412. <!-- -->
  413. </a>
  414. <h3>方法详细资料</h3>
  415. <a name="close--">
  416. <!-- -->
  417. </a>
  418. <ul class="blockList">
  419. <li class="blockList">
  420. <h4>close</h4>
  421. <pre>public&nbsp;void&nbsp;close()</pre>
  422. <div class="block">释放influxclient资源</div>
  423. </li>
  424. </ul>
  425. <a name="insertRecords-java.util.List-">
  426. <!-- -->
  427. </a>
  428. <ul class="blockList">
  429. <li class="blockList">
  430. <h4>insertRecords</h4>
  431. <pre>public&nbsp;boolean&nbsp;insertRecords(java.util.List&lt;<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;&nbsp;pointDataList)</pre>
  432. <div class="block">将一系列PointData插入到数据库中。</div>
  433. <dl>
  434. <dt><span class="paramLabel">参数:</span></dt>
  435. <dd><code>pointDataList</code> - 待插入的PointData的列表。</dd>
  436. <dt><span class="returnLabel">返回:</span></dt>
  437. <dd>插入成功返回true,出现异常为false。</dd>
  438. </dl>
  439. </li>
  440. </ul>
  441. <a name="queryLast-java.lang.String-">
  442. <!-- -->
  443. </a>
  444. <ul class="blockList">
  445. <li class="blockList">
  446. <h4>queryLast</h4>
  447. <pre>public&nbsp;<a href="../db/PointData.html" title="db中的类">PointData</a>&nbsp;queryLast(java.lang.String&nbsp;id)</pre>
  448. <div class="block">给定id,查询最新的PointData。</div>
  449. <dl>
  450. <dt><span class="paramLabel">参数:</span></dt>
  451. <dd><code>id</code> - 要查询的id。</dd>
  452. <dt><span class="returnLabel">返回:</span></dt>
  453. <dd>id对应的最新的PointData。</dd>
  454. </dl>
  455. </li>
  456. </ul>
  457. <a name="queryLastInTimeRange-java.lang.String-long-long-">
  458. <!-- -->
  459. </a>
  460. <ul class="blockList">
  461. <li class="blockList">
  462. <h4>queryLastInTimeRange</h4>
  463. <pre>public&nbsp;<a href="../db/PointData.html" title="db中的类">PointData</a>&nbsp;queryLastInTimeRange(java.lang.String&nbsp;id,
  464. long&nbsp;beginDate,
  465. long&nbsp;endDate)</pre>
  466. <div class="block">给定id,查询最新的PointData。</div>
  467. <dl>
  468. <dt><span class="paramLabel">参数:</span></dt>
  469. <dd><code>id</code> - 要查询的id。</dd>
  470. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  471. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  472. <dt><span class="returnLabel">返回:</span></dt>
  473. <dd>id对应的最新的PointData。</dd>
  474. </dl>
  475. </li>
  476. </ul>
  477. <a name="queryLast-java.util.List-">
  478. <!-- -->
  479. </a>
  480. <ul class="blockList">
  481. <li class="blockList">
  482. <h4>queryLast</h4>
  483. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;&nbsp;queryLast(java.util.List&lt;java.lang.String&gt;&nbsp;ids)</pre>
  484. <div class="block">给定一系列id,查询对应最新的PointData。</div>
  485. <dl>
  486. <dt><span class="paramLabel">参数:</span></dt>
  487. <dd><code>ids</code> - 要查询的id的列表。</dd>
  488. <dt><span class="returnLabel">返回:</span></dt>
  489. <dd>HashTable&lt;id, PointData&gt;<br>Hashtable,key为id,value为对应最新的PointData。</dd>
  490. </dl>
  491. </li>
  492. </ul>
  493. <a name="queryLastInTimeRange-java.util.List-long-long-">
  494. <!-- -->
  495. </a>
  496. <ul class="blockList">
  497. <li class="blockList">
  498. <h4>queryLastInTimeRange</h4>
  499. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;&nbsp;queryLastInTimeRange(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  500. long&nbsp;beginDate,
  501. long&nbsp;endDate)</pre>
  502. <div class="block">给定一系列id,查询对应最新的PointData。</div>
  503. <dl>
  504. <dt><span class="paramLabel">参数:</span></dt>
  505. <dd><code>ids</code> - 要查询的id的列表。</dd>
  506. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  507. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  508. <dt><span class="returnLabel">返回:</span></dt>
  509. <dd>HashTable&lt;id, PointData&gt;<br>Hashtable,key为id,value为对应最新的PointData。</dd>
  510. </dl>
  511. </li>
  512. </ul>
  513. <a name="queryTimeRange-java.lang.String-long-long-">
  514. <!-- -->
  515. </a>
  516. <ul class="blockList">
  517. <li class="blockList">
  518. <h4>queryTimeRange</h4>
  519. <pre>public&nbsp;java.util.List&lt;<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;&nbsp;queryTimeRange(java.lang.String&nbsp;id,
  520. long&nbsp;beginDate,
  521. long&nbsp;endDate)</pre>
  522. <div class="block">给定要查询的id和时间范围,返回要查询的数据。</div>
  523. <dl>
  524. <dt><span class="paramLabel">参数:</span></dt>
  525. <dd><code>id</code> - 待查询的id。</dd>
  526. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  527. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  528. <dt><span class="returnLabel">返回:</span></dt>
  529. <dd>id在[beginDate, endDate]对应的PointData列表。</dd>
  530. </dl>
  531. </li>
  532. </ul>
  533. <a name="queryTimeRange-java.util.List-long-long-">
  534. <!-- -->
  535. </a>
  536. <ul class="blockList">
  537. <li class="blockList">
  538. <h4>queryTimeRange</h4>
  539. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointData.html" title="db中的类">PointData</a>&gt;&gt;&nbsp;queryTimeRange(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  540. long&nbsp;beginDate,
  541. long&nbsp;endDate)</pre>
  542. <div class="block">给定要查询的一系列id和时间范围,返回各id在各时刻下对应的数据。</div>
  543. <dl>
  544. <dt><span class="paramLabel">参数:</span></dt>
  545. <dd><code>ids</code> - 要查询的id的列表。</dd>
  546. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  547. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  548. <dt><span class="returnLabel">返回:</span></dt>
  549. <dd>HashTabel&lt;id, SortedMap&lt;UNIX毫秒时间戳, 时间戳对应的PointData&gt;&gt;<br></dd>
  550. </dl>
  551. </li>
  552. </ul>
  553. <a name="aggTimeRangeByWindow-java.lang.String-long-long-long-db.Granularity-db.AggFunction-db.FieldName-">
  554. <!-- -->
  555. </a>
  556. <ul class="blockList">
  557. <li class="blockList">
  558. <h4>aggTimeRangeByWindow</h4>
  559. <pre>public&nbsp;java.util.List&lt;<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&nbsp;aggTimeRangeByWindow(java.lang.String&nbsp;id,
  560. long&nbsp;beginDate,
  561. long&nbsp;endDate,
  562. long&nbsp;granularityValue,
  563. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity,
  564. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  565. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</pre>
  566. <div class="block">针对单个id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
  567. <dl>
  568. <dt><span class="paramLabel">参数:</span></dt>
  569. <dd><code>id</code> - 待查询的id。</dd>
  570. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  571. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  572. <dd><code>granularityValue</code> - 分组粒度的数值部分。</dd>
  573. <dd><code>granularity</code> - 枚举型,分组粒度的单位部分。</dd>
  574. <dd><code>aggFunction</code> - 枚举型,聚合运算使用的函数。</dd>
  575. <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
  576. <dt><span class="returnLabel">返回:</span></dt>
  577. <dd>id在给定时间范围内的PointData经过分组聚合得到的列表。</dd>
  578. </dl>
  579. </li>
  580. </ul>
  581. <a name="aggTimeRangeByWindow-java.util.List-long-long-long-db.Granularity-db.AggFunction-db.FieldName-">
  582. <!-- -->
  583. </a>
  584. <ul class="blockList">
  585. <li class="blockList">
  586. <h4>aggTimeRangeByWindow</h4>
  587. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&gt;&nbsp;aggTimeRangeByWindow(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  588. long&nbsp;beginDate,
  589. long&nbsp;endDate,
  590. long&nbsp;granularityValue,
  591. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity,
  592. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  593. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</pre>
  594. <div class="block">针对一系列id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
  595. <dl>
  596. <dt><span class="paramLabel">参数:</span></dt>
  597. <dd><code>ids</code> - 待查询的id的列表。</dd>
  598. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  599. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  600. <dd><code>granularityValue</code> - 枚举型,分组粒度数值部分。</dd>
  601. <dd><code>granularity</code> - 枚举型,分组粒度单位部分。</dd>
  602. <dd><code>aggFunction</code> - 枚举型,聚合运算的函数。</dd>
  603. <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
  604. <dt><span class="returnLabel">返回:</span></dt>
  605. <dd>HashTable&lt;id, SortedMap&lt;UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue&gt;&gt;。</dd>
  606. </dl>
  607. </li>
  608. </ul>
  609. <a name="aggTimeRange-java.lang.String-long-long-db.AggFunction-db.FieldName-">
  610. <!-- -->
  611. </a>
  612. <ul class="blockList">
  613. <li class="blockList">
  614. <h4>aggTimeRange</h4>
  615. <pre>public&nbsp;<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&nbsp;aggTimeRange(java.lang.String&nbsp;id,
  616. long&nbsp;beginDate,
  617. long&nbsp;endDate,
  618. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  619. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</pre>
  620. <div class="block">针对单个id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
  621. <dl>
  622. <dt><span class="paramLabel">参数:</span></dt>
  623. <dd><code>id</code> - 待查询的id。</dd>
  624. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  625. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  626. <dd><code>aggFunction</code> - 枚举型,聚合运算使用的函数。</dd>
  627. <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
  628. <dt><span class="returnLabel">返回:</span></dt>
  629. <dd>id在给定时间范围内的PointData经过分组聚合得到的列表。</dd>
  630. </dl>
  631. </li>
  632. </ul>
  633. <a name="aggTimeRange-java.util.List-long-long-db.AggFunction-db.FieldName-">
  634. <!-- -->
  635. </a>
  636. <ul class="blockList">
  637. <li class="blockList">
  638. <h4>aggTimeRange</h4>
  639. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&nbsp;aggTimeRange(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  640. long&nbsp;beginDate,
  641. long&nbsp;endDate,
  642. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  643. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName)</pre>
  644. <div class="block">针对一系列id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
  645. <dl>
  646. <dt><span class="paramLabel">参数:</span></dt>
  647. <dd><code>ids</code> - 待查询的id的列表。</dd>
  648. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  649. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  650. <dd><code>aggFunction</code> - 枚举型,聚合运算的函数。</dd>
  651. <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
  652. <dt><span class="returnLabel">返回:</span></dt>
  653. <dd>HashTable&lt;id, SortedMap&lt;UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue&gt;&gt;。</dd>
  654. </dl>
  655. </li>
  656. </ul>
  657. <a name="aggTimeRangeByDayInSecondRange-java.util.List-long-long-db.AggFunction-db.FieldName-int-int-">
  658. <!-- -->
  659. </a>
  660. <ul class="blockList">
  661. <li class="blockList">
  662. <h4>aggTimeRangeByDayInSecondRange</h4>
  663. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&gt;&nbsp;aggTimeRangeByDayInSecondRange(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  664. long&nbsp;beginDate,
  665. long&nbsp;endDate,
  666. <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a>&nbsp;aggFunction,
  667. <a href="../db/FieldName.html" title="db中的枚举">FieldName</a>&nbsp;fieldName,
  668. int&nbsp;beginSecondInADay,
  669. int&nbsp;endSecondInADay)</pre>
  670. <div class="block">针对一系列id,给定时间范围,分组窗口粒度为天,给定分组窗口[beginSecondInADay,endSecondInADay]中的数据。
  671. 对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
  672. <dl>
  673. <dt><span class="paramLabel">参数:</span></dt>
  674. <dd><code>ids</code> - 待查询的id的列表。</dd>
  675. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  676. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  677. <dd><code>aggFunction</code> - 枚举型,聚合函数。</dd>
  678. <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
  679. <dd><code>beginSecondInADay</code> - 一天内的某个时间窗口的开始时间,单位为秒,如 300 (= 5 * 60) 表示 00:05:00。</dd>
  680. <dd><code>endSecondInADay</code> - 一天内的某个时间窗口的结束时间,单位为秒,如 900 (= 15 * 60) 表示 00:15:00。</dd>
  681. <dt><span class="returnLabel">返回:</span></dt>
  682. <dd>HashTable&lt;id, SortedMap&lt;UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue&gt;&gt;。</dd>
  683. </dl>
  684. </li>
  685. </ul>
  686. <a name="queryFlowByWindow-java.util.List-long-long-long-db.Granularity-">
  687. <!-- -->
  688. </a>
  689. <ul class="blockList">
  690. <li class="blockList">
  691. <h4>queryFlowByWindow</h4>
  692. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&gt;&nbsp;queryFlowByWindow(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  693. long&nbsp;beginDate,
  694. long&nbsp;endDate,
  695. long&nbsp;granularityValue,
  696. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity)</pre>
  697. <div class="block">针对一系列id,给定时间范围和分组粒度,查询对应的流量值。</div>
  698. <dl>
  699. <dt><span class="paramLabel">参数:</span></dt>
  700. <dd><code>ids</code> - 待查询的id的列表。</dd>
  701. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  702. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  703. <dd><code>granularityValue</code> - 分组粒度数值部分。</dd>
  704. <dd><code>granularity</code> - 枚举型,分组粒度单位部分。</dd>
  705. <dt><span class="returnLabel">返回:</span></dt>
  706. <dd>HashTable&lt;id, SortedMap&lt;UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue&gt;&gt;。</dd>
  707. </dl>
  708. </li>
  709. </ul>
  710. <a name="greaterThanTime-java.util.SortedMap-long-">
  711. <!-- -->
  712. </a>
  713. <ul class="blockList">
  714. <li class="blockList">
  715. <h4>greaterThanTime</h4>
  716. <pre>protected&nbsp;java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&nbsp;greaterThanTime(java.util.SortedMap&lt;java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&nbsp;timeSery,
  717. long&nbsp;compareTime)</pre>
  718. </li>
  719. </ul>
  720. <a name="queryFlowByWindow-java.lang.String-long-long-long-db.Granularity-">
  721. <!-- -->
  722. </a>
  723. <ul class="blockList">
  724. <li class="blockList">
  725. <h4>queryFlowByWindow</h4>
  726. <pre>public&nbsp;java.util.List&lt;<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>&gt;&nbsp;queryFlowByWindow(java.lang.String&nbsp;id,
  727. long&nbsp;beginDate,
  728. long&nbsp;endDate,
  729. long&nbsp;granularityValue,
  730. <a href="../db/Granularity.html" title="db中的枚举">Granularity</a>&nbsp;granularity)</pre>
  731. <div class="block">针对单个id,给定时间范围和分组粒度,查询对应的流量值。</div>
  732. <dl>
  733. <dt><span class="paramLabel">参数:</span></dt>
  734. <dd><code>id</code> - 待查询的id。</dd>
  735. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  736. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  737. <dd><code>granularityValue</code> - 分组粒度数值部分。</dd>
  738. <dd><code>granularity</code> - 枚举型,分组粒度单位部分。</dd>
  739. <dt><span class="returnLabel">返回:</span></dt>
  740. <dd>List&lt;UNIX毫秒时间戳,对应的PointDataWithSingleValue&gt;。<br>
  741. PointDataWithSingleValue类有四个public属性:id、pointName、time、value。</dd>
  742. </dl>
  743. </li>
  744. </ul>
  745. <a name="queryFlowInTimeRange-java.lang.String-long-long-">
  746. <!-- -->
  747. </a>
  748. <ul class="blockList">
  749. <li class="blockList">
  750. <h4>queryFlowInTimeRange</h4>
  751. <pre>public&nbsp;<a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a>&nbsp;queryFlowInTimeRange(java.lang.String&nbsp;id,
  752. long&nbsp;beginDate,
  753. long&nbsp;endDate)</pre>
  754. <div class="block">针对单个id,给定时间范围,查询对应时间范围内使用的流量值。</div>
  755. <dl>
  756. <dt><span class="paramLabel">参数:</span></dt>
  757. <dd><code>id</code> - 待查询的id。</dd>
  758. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  759. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  760. <dt><span class="returnLabel">返回:</span></dt>
  761. <dd>FlowInfo。<br>
  762. PointDataWithSingleValue类有四个public属性:id、pointName、time、value。</dd>
  763. </dl>
  764. </li>
  765. </ul>
  766. <a name="queryFlowInTimeRange-java.util.List-long-long-">
  767. <!-- -->
  768. </a>
  769. <ul class="blockList">
  770. <li class="blockList">
  771. <h4>queryFlowInTimeRange</h4>
  772. <pre>public&nbsp;java.util.Hashtable&lt;java.lang.String,<a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a>&gt;&nbsp;queryFlowInTimeRange(java.util.List&lt;java.lang.String&gt;&nbsp;ids,
  773. long&nbsp;beginDate,
  774. long&nbsp;endDate)</pre>
  775. <div class="block">针对一系列id,给定时间范围,查询对应时间范围内使用的流量值。</div>
  776. <dl>
  777. <dt><span class="paramLabel">参数:</span></dt>
  778. <dd><code>ids</code> - 待查询的id列表。</dd>
  779. <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
  780. <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
  781. <dt><span class="returnLabel">返回:</span></dt>
  782. <dd>FlowInfo。<br>
  783. PointDataWithSingleValue类有四个public属性:id、pointName、time、value。</dd>
  784. </dl>
  785. </li>
  786. </ul>
  787. <a name="deleteAllDataInTimeRange-long-long-">
  788. <!-- -->
  789. </a>
  790. <ul class="blockList">
  791. <li class="blockList">
  792. <h4>deleteAllDataInTimeRange</h4>
  793. <pre>public&nbsp;boolean&nbsp;deleteAllDataInTimeRange(long&nbsp;beginDate,
  794. long&nbsp;endDate)</pre>
  795. </li>
  796. </ul>
  797. <a name="deleteBucket-java.lang.String-">
  798. <!-- -->
  799. </a>
  800. <ul class="blockList">
  801. <li class="blockList">
  802. <h4>deleteBucket</h4>
  803. <pre>public&nbsp;boolean&nbsp;deleteBucket(java.lang.String&nbsp;name)</pre>
  804. <div class="block">删除指定名称的bucket。</div>
  805. <dl>
  806. <dt><span class="paramLabel">参数:</span></dt>
  807. <dd><code>name</code> - bucket的名称。</dd>
  808. <dt><span class="returnLabel">返回:</span></dt>
  809. <dd>删除成功返回true,出现异常返回false。</dd>
  810. </dl>
  811. </li>
  812. </ul>
  813. <a name="createBucket-java.lang.String-long-">
  814. <!-- -->
  815. </a>
  816. <ul class="blockListLast">
  817. <li class="blockList">
  818. <h4>createBucket</h4>
  819. <pre>public&nbsp;boolean&nbsp;createBucket(java.lang.String&nbsp;name,
  820. long&nbsp;retentionPeriod)</pre>
  821. <div class="block">指定名称,创建新的bucket。</div>
  822. <dl>
  823. <dt><span class="paramLabel">参数:</span></dt>
  824. <dd><code>name</code> - 待创建的新的bucket的名称。</dd>
  825. <dd><code>retentionPeriod</code> - 保留期,单位为毫秒。</dd>
  826. <dt><span class="returnLabel">返回:</span></dt>
  827. <dd>成功返回true,出现异常则为false。</dd>
  828. </dl>
  829. </li>
  830. </ul>
  831. </li>
  832. </ul>
  833. </li>
  834. </ul>
  835. </div>
  836. </div>
  837. <!-- ========= END OF CLASS DATA ========= -->
  838. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  839. <div class="bottomNav"><a name="navbar.bottom">
  840. <!-- -->
  841. </a>
  842. <div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
  843. <a name="navbar.bottom.firstrow">
  844. <!-- -->
  845. </a>
  846. <ul class="navList" title="导航">
  847. <li><a href="../db/package-summary.html">程序包</a></li>
  848. <li class="navBarCell1Rev">类</li>
  849. <li><a href="package-tree.html">树</a></li>
  850. <li><a href="../deprecated-list.html">已过时</a></li>
  851. <li><a href="../index-files/index-1.html">索引</a></li>
  852. <li><a href="../help-doc.html">帮助</a></li>
  853. </ul>
  854. </div>
  855. <div class="subNav">
  856. <ul class="navList">
  857. <li><a href="../db/AggFunction.html" title="db中的枚举"><span class="typeNameLink">上一个类</span></a></li>
  858. <li><a href="../db/FieldName.html" title="db中的枚举"><span class="typeNameLink">下一个类</span></a></li>
  859. </ul>
  860. <ul class="navList">
  861. <li><a href="../index.html?db/DBApiEntry.html" target="_top">框架</a></li>
  862. <li><a href="DBApiEntry.html" target="_top">无框架</a></li>
  863. </ul>
  864. <ul class="navList" id="allclasses_navbar_bottom">
  865. <li><a href="../allclasses-noframe.html">所有类</a></li>
  866. </ul>
  867. <div>
  868. <script type="text/javascript"><!--
  869. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  870. if(window==top) {
  871. allClassesLink.style.display = "block";
  872. }
  873. else {
  874. allClassesLink.style.display = "none";
  875. }
  876. //-->
  877. </script>
  878. </div>
  879. <div>
  880. <ul class="subNavList">
  881. <li>概要:&nbsp;</li>
  882. <li>嵌套&nbsp;|&nbsp;</li>
  883. <li><a href="#field.summary">字段</a>&nbsp;|&nbsp;</li>
  884. <li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
  885. <li><a href="#method.summary">方法</a></li>
  886. </ul>
  887. <ul class="subNavList">
  888. <li>详细资料:&nbsp;</li>
  889. <li><a href="#field.detail">字段</a>&nbsp;|&nbsp;</li>
  890. <li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
  891. <li><a href="#method.detail">方法</a></li>
  892. </ul>
  893. </div>
  894. <a name="skip.navbar.bottom">
  895. <!-- -->
  896. </a></div>
  897. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  898. </body>
  899. </html>