123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!-- NewPage -->
- <html lang="zh">
- <head>
- <!-- Generated by javadoc (1.8.0_202) on Fri Jul 15 17:05:13 CST 2022 -->
- <title>DBApiEntry</title>
- <meta name="date" content="2022-07-15">
- <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
- <script type="text/javascript" src="../script.js"></script>
- </head>
- <body>
- <script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="DBApiEntry";
- }
- }
- catch(err) {
- }
- //-->
- 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};
- var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],8:["t4","具体方法"]};
- var altColor = "altColor";
- var rowColor = "rowColor";
- var tableTab = "tableTab";
- var activeTableTab = "activeTableTab";
- </script>
- <noscript>
- <div>您的浏览器已禁用 JavaScript。</div>
- </noscript>
- <!-- ========= START OF TOP NAVBAR ======= -->
- <div class="topNav"><a name="navbar.top">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
- <a name="navbar.top.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="导航">
- <li><a href="../db/package-summary.html">程序包</a></li>
- <li class="navBarCell1Rev">类</li>
- <li><a href="package-tree.html">树</a></li>
- <li><a href="../deprecated-list.html">已过时</a></li>
- <li><a href="../index-files/index-1.html">索引</a></li>
- <li><a href="../help-doc.html">帮助</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../db/AggFunction.html" title="db中的枚举"><span class="typeNameLink">上一个类</span></a></li>
- <li><a href="../db/FieldName.html" title="db中的枚举"><span class="typeNameLink">下一个类</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../index.html?db/DBApiEntry.html" target="_top">框架</a></li>
- <li><a href="DBApiEntry.html" target="_top">无框架</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_top">
- <li><a href="../allclasses-noframe.html">所有类</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>概要: </li>
- <li>嵌套 | </li>
- <li><a href="#field.summary">字段</a> | </li>
- <li><a href="#constructor.summary">构造器</a> | </li>
- <li><a href="#method.summary">方法</a></li>
- </ul>
- <ul class="subNavList">
- <li>详细资料: </li>
- <li><a href="#field.detail">字段</a> | </li>
- <li><a href="#constructor.detail">构造器</a> | </li>
- <li><a href="#method.detail">方法</a></li>
- </ul>
- </div>
- <a name="skip.navbar.top">
- <!-- -->
- </a></div>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <!-- ======== START OF CLASS DATA ======== -->
- <div class="header">
- <div class="subTitle">db</div>
- <h2 title="类 DBApiEntry" class="title">类 DBApiEntry</h2>
- </div>
- <div class="contentContainer">
- <ul class="inheritance">
- <li>java.lang.Object</li>
- <li>
- <ul class="inheritance">
- <li>db.DBApiEntry</li>
- </ul>
- </li>
- </ul>
- <div class="description">
- <ul class="blockList">
- <li class="blockList">
- <hr>
- <br>
- <pre>public class <span class="typeNameLabel">DBApiEntry</span>
- extends java.lang.Object</pre>
- </li>
- </ul>
- </div>
- <div class="summary">
- <ul class="blockList">
- <li class="blockList">
- <!-- =========== FIELD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.summary">
- <!-- -->
- </a>
- <h3>字段概要</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="字段概要表, 列表字段和解释">
- <caption><span>字段</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colFirst" scope="col">限定符和类型</th>
- <th class="colLast" scope="col">字段和说明</th>
- </tr>
- <tr class="altColor">
- <td class="colFirst"><code>static java.util.logging.Logger</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#logger">logger</a></span></code> </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.summary">
- <!-- -->
- </a>
- <h3>构造器概要</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释">
- <caption><span>构造器</span><span class="tabEnd"> </span></caption>
- <tr>
- <th class="colOne" scope="col">构造器和说明</th>
- </tr>
- <tr class="altColor">
- <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 host,
- int port,
- java.lang.String tokenString,
- java.lang.String org,
- java.lang.String bucket)</code>
- <div class="block">初始化DBApiEntry。</div>
- </td>
- </tr>
- </table>
- </li>
- </ul>
- <!-- ========== METHOD SUMMARY =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.summary">
- <!-- -->
- </a>
- <h3>方法概要</h3>
- <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
- <caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd"> </span></span></caption>
- <tr>
- <th class="colFirst" scope="col">限定符和类型</th>
- <th class="colLast" scope="col">方法和说明</th>
- </tr>
- <tr id="i0" class="altColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>></code></td>
- <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<java.lang.String> ids,
- long beginDate,
- long endDate,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</code>
- <div class="block">针对一系列id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
- </td>
- </tr>
- <tr id="i1" class="rowColor">
- <td class="colFirst"><code><a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a></code></td>
- <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 id,
- long beginDate,
- long endDate,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</code>
- <div class="block">针对单个id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
- </td>
- </tr>
- <tr id="i2" class="altColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>>></code></td>
- <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<java.lang.String> ids,
- long beginDate,
- long endDate,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName,
- int beginSecondInADay,
- int endSecondInADay)</code>
- <div class="block">针对一系列id,给定时间范围,分组窗口粒度为天,给定分组窗口[beginSecondInADay,endSecondInADay]中的数据。</div>
- </td>
- </tr>
- <tr id="i3" class="rowColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>>></code></td>
- <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<java.lang.String> ids,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</code>
- <div class="block">针对一系列id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
- </td>
- </tr>
- <tr id="i4" class="altColor">
- <td class="colFirst"><code>java.util.List<<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>></code></td>
- <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 id,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</code>
- <div class="block">针对单个id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
- </td>
- </tr>
- <tr id="i5" class="rowColor">
- <td class="colFirst"><code>void</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#close--">close</a></span>()</code>
- <div class="block">释放influxclient资源</div>
- </td>
- </tr>
- <tr id="i6" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#createBucket-java.lang.String-long-">createBucket</a></span>(java.lang.String name,
- long retentionPeriod)</code>
- <div class="block">指定名称,创建新的bucket。</div>
- </td>
- </tr>
- <tr id="i7" class="rowColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#deleteAllDataInTimeRange-long-long-">deleteAllDataInTimeRange</a></span>(long beginDate,
- long endDate)</code> </td>
- </tr>
- <tr id="i8" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#deleteBucket-java.lang.String-">deleteBucket</a></span>(java.lang.String name)</code>
- <div class="block">删除指定名称的bucket。</div>
- </td>
- </tr>
- <tr id="i9" class="rowColor">
- <td class="colFirst"><code>protected java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#greaterThanTime-java.util.SortedMap-long-">greaterThanTime</a></span>(java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>> timeSery,
- long compareTime)</code> </td>
- </tr>
- <tr id="i10" class="altColor">
- <td class="colFirst"><code>boolean</code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#insertRecords-java.util.List-">insertRecords</a></span>(java.util.List<<a href="../db/PointData.html" title="db中的类">PointData</a>> pointDataList)</code>
- <div class="block">将一系列PointData插入到数据库中。</div>
- </td>
- </tr>
- <tr id="i11" class="rowColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>>></code></td>
- <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<java.lang.String> ids,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity)</code>
- <div class="block">针对一系列id,给定时间范围和分组粒度,查询对应的流量值。</div>
- </td>
- </tr>
- <tr id="i12" class="altColor">
- <td class="colFirst"><code>java.util.List<<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>></code></td>
- <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 id,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity)</code>
- <div class="block">针对单个id,给定时间范围和分组粒度,查询对应的流量值。</div>
- </td>
- </tr>
- <tr id="i13" class="rowColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,<a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a>></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryFlowInTimeRange-java.util.List-long-long-">queryFlowInTimeRange</a></span>(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate)</code>
- <div class="block">针对一系列id,给定时间范围,查询对应时间范围内使用的流量值。</div>
- </td>
- </tr>
- <tr id="i14" class="altColor">
- <td class="colFirst"><code><a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryFlowInTimeRange-java.lang.String-long-long-">queryFlowInTimeRange</a></span>(java.lang.String id,
- long beginDate,
- long endDate)</code>
- <div class="block">针对单个id,给定时间范围,查询对应时间范围内使用的流量值。</div>
- </td>
- </tr>
- <tr id="i15" class="rowColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLast-java.util.List-">queryLast</a></span>(java.util.List<java.lang.String> ids)</code>
- <div class="block">给定一系列id,查询对应最新的PointData。</div>
- </td>
- </tr>
- <tr id="i16" class="altColor">
- <td class="colFirst"><code><a href="../db/PointData.html" title="db中的类">PointData</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLast-java.lang.String-">queryLast</a></span>(java.lang.String id)</code>
- <div class="block">给定id,查询最新的PointData。</div>
- </td>
- </tr>
- <tr id="i17" class="rowColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLastInTimeRange-java.util.List-long-long-">queryLastInTimeRange</a></span>(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate)</code>
- <div class="block">给定一系列id,查询对应最新的PointData。</div>
- </td>
- </tr>
- <tr id="i18" class="altColor">
- <td class="colFirst"><code><a href="../db/PointData.html" title="db中的类">PointData</a></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryLastInTimeRange-java.lang.String-long-long-">queryLastInTimeRange</a></span>(java.lang.String id,
- long beginDate,
- long endDate)</code>
- <div class="block">给定id,查询最新的PointData。</div>
- </td>
- </tr>
- <tr id="i19" class="rowColor">
- <td class="colFirst"><code>java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointData.html" title="db中的类">PointData</a>>></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryTimeRange-java.util.List-long-long-">queryTimeRange</a></span>(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate)</code>
- <div class="block">给定要查询的一系列id和时间范围,返回各id在各时刻下对应的数据。</div>
- </td>
- </tr>
- <tr id="i20" class="altColor">
- <td class="colFirst"><code>java.util.List<<a href="../db/PointData.html" title="db中的类">PointData</a>></code></td>
- <td class="colLast"><code><span class="memberNameLink"><a href="../db/DBApiEntry.html#queryTimeRange-java.lang.String-long-long-">queryTimeRange</a></span>(java.lang.String id,
- long beginDate,
- long endDate)</code>
- <div class="block">给定要查询的id和时间范围,返回要查询的数据。</div>
- </td>
- </tr>
- </table>
- <ul class="blockList">
- <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
- <!-- -->
- </a>
- <h3>从类继承的方法 java.lang.Object</h3>
- <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <div class="details">
- <ul class="blockList">
- <li class="blockList">
- <!-- ============ FIELD DETAIL =========== -->
- <ul class="blockList">
- <li class="blockList"><a name="field.detail">
- <!-- -->
- </a>
- <h3>字段详细资料</h3>
- <a name="logger">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>logger</h4>
- <pre>public static final java.util.logging.Logger logger</pre>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <ul class="blockList">
- <li class="blockList"><a name="constructor.detail">
- <!-- -->
- </a>
- <h3>构造器详细资料</h3>
- <a name="DBApiEntry-java.lang.String-int-java.lang.String-java.lang.String-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>DBApiEntry</h4>
- <pre>public DBApiEntry(java.lang.String host,
- int port,
- java.lang.String tokenString,
- java.lang.String org,
- java.lang.String bucket)
- throws java.io.IOException</pre>
- <div class="block">初始化DBApiEntry。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>host</code> - 主机ip,如"127.0.0.1"。</dd>
- <dd><code>port</code> - 端口,如 8086。</dd>
- <dd><code>tokenString</code> - influxDB的 api token。</dd>
- <dd><code>org</code> - Organization Id, 8长度字符串。</dd>
- <dd><code>bucket</code> - 对应插入数据的bucket名称。</dd>
- <dt><span class="throwsLabel">抛出:</span></dt>
- <dd><code>java.io.IOException</code></dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- <!-- ============ METHOD DETAIL ========== -->
- <ul class="blockList">
- <li class="blockList"><a name="method.detail">
- <!-- -->
- </a>
- <h3>方法详细资料</h3>
- <a name="close--">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>close</h4>
- <pre>public void close()</pre>
- <div class="block">释放influxclient资源</div>
- </li>
- </ul>
- <a name="insertRecords-java.util.List-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>insertRecords</h4>
- <pre>public boolean insertRecords(java.util.List<<a href="../db/PointData.html" title="db中的类">PointData</a>> pointDataList)</pre>
- <div class="block">将一系列PointData插入到数据库中。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>pointDataList</code> - 待插入的PointData的列表。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>插入成功返回true,出现异常为false。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryLast-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryLast</h4>
- <pre>public <a href="../db/PointData.html" title="db中的类">PointData</a> queryLast(java.lang.String id)</pre>
- <div class="block">给定id,查询最新的PointData。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>id</code> - 要查询的id。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>id对应的最新的PointData。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryLastInTimeRange-java.lang.String-long-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryLastInTimeRange</h4>
- <pre>public <a href="../db/PointData.html" title="db中的类">PointData</a> queryLastInTimeRange(java.lang.String id,
- long beginDate,
- long endDate)</pre>
- <div class="block">给定id,查询最新的PointData。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>id</code> - 要查询的id。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>id对应的最新的PointData。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryLast-java.util.List-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryLast</h4>
- <pre>public java.util.Hashtable<java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>> queryLast(java.util.List<java.lang.String> ids)</pre>
- <div class="block">给定一系列id,查询对应最新的PointData。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 要查询的id的列表。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>HashTable<id, PointData><br>Hashtable,key为id,value为对应最新的PointData。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryLastInTimeRange-java.util.List-long-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryLastInTimeRange</h4>
- <pre>public java.util.Hashtable<java.lang.String,<a href="../db/PointData.html" title="db中的类">PointData</a>> queryLastInTimeRange(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate)</pre>
- <div class="block">给定一系列id,查询对应最新的PointData。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 要查询的id的列表。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>HashTable<id, PointData><br>Hashtable,key为id,value为对应最新的PointData。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryTimeRange-java.lang.String-long-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryTimeRange</h4>
- <pre>public java.util.List<<a href="../db/PointData.html" title="db中的类">PointData</a>> queryTimeRange(java.lang.String id,
- long beginDate,
- long endDate)</pre>
- <div class="block">给定要查询的id和时间范围,返回要查询的数据。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>id</code> - 待查询的id。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>id在[beginDate, endDate]对应的PointData列表。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryTimeRange-java.util.List-long-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryTimeRange</h4>
- <pre>public java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointData.html" title="db中的类">PointData</a>>> queryTimeRange(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate)</pre>
- <div class="block">给定要查询的一系列id和时间范围,返回各id在各时刻下对应的数据。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 要查询的id的列表。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>HashTabel<id, SortedMap<UNIX毫秒时间戳, 时间戳对应的PointData>><br></dd>
- </dl>
- </li>
- </ul>
- <a name="aggTimeRangeByWindow-java.lang.String-long-long-long-db.Granularity-db.AggFunction-db.FieldName-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>aggTimeRangeByWindow</h4>
- <pre>public java.util.List<<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>> aggTimeRangeByWindow(java.lang.String id,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</pre>
- <div class="block">针对单个id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>id</code> - 待查询的id。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dd><code>granularityValue</code> - 分组粒度的数值部分。</dd>
- <dd><code>granularity</code> - 枚举型,分组粒度的单位部分。</dd>
- <dd><code>aggFunction</code> - 枚举型,聚合运算使用的函数。</dd>
- <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>id在给定时间范围内的PointData经过分组聚合得到的列表。</dd>
- </dl>
- </li>
- </ul>
- <a name="aggTimeRangeByWindow-java.util.List-long-long-long-db.Granularity-db.AggFunction-db.FieldName-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>aggTimeRangeByWindow</h4>
- <pre>public java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>>> aggTimeRangeByWindow(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</pre>
- <div class="block">针对一系列id,给定时间范围,给定分组窗口粒度,对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 待查询的id的列表。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dd><code>granularityValue</code> - 枚举型,分组粒度数值部分。</dd>
- <dd><code>granularity</code> - 枚举型,分组粒度单位部分。</dd>
- <dd><code>aggFunction</code> - 枚举型,聚合运算的函数。</dd>
- <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>HashTable<id, SortedMap<UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue>>。</dd>
- </dl>
- </li>
- </ul>
- <a name="aggTimeRange-java.lang.String-long-long-db.AggFunction-db.FieldName-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>aggTimeRange</h4>
- <pre>public <a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a> aggTimeRange(java.lang.String id,
- long beginDate,
- long endDate,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</pre>
- <div class="block">针对单个id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>id</code> - 待查询的id。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dd><code>aggFunction</code> - 枚举型,聚合运算使用的函数。</dd>
- <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>id在给定时间范围内的PointData经过分组聚合得到的列表。</dd>
- </dl>
- </li>
- </ul>
- <a name="aggTimeRange-java.util.List-long-long-db.AggFunction-db.FieldName-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>aggTimeRange</h4>
- <pre>public java.util.Hashtable<java.lang.String,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>> aggTimeRange(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName)</pre>
- <div class="block">针对一系列id,给定时间范围,对给定字段fieldName值进行aggFunction聚合运算。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 待查询的id的列表。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dd><code>aggFunction</code> - 枚举型,聚合运算的函数。</dd>
- <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>HashTable<id, SortedMap<UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue>>。</dd>
- </dl>
- </li>
- </ul>
- <a name="aggTimeRangeByDayInSecondRange-java.util.List-long-long-db.AggFunction-db.FieldName-int-int-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>aggTimeRangeByDayInSecondRange</h4>
- <pre>public java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>>> aggTimeRangeByDayInSecondRange(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate,
- <a href="../db/AggFunction.html" title="db中的枚举">AggFunction</a> aggFunction,
- <a href="../db/FieldName.html" title="db中的枚举">FieldName</a> fieldName,
- int beginSecondInADay,
- int endSecondInADay)</pre>
- <div class="block">针对一系列id,给定时间范围,分组窗口粒度为天,给定分组窗口[beginSecondInADay,endSecondInADay]中的数据。
- 对每个分组窗口中的给定字段fieldName值进行aggFunction聚合运算。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 待查询的id的列表。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dd><code>aggFunction</code> - 枚举型,聚合函数。</dd>
- <dd><code>fieldName</code> - 枚举型,查询的字段名。</dd>
- <dd><code>beginSecondInADay</code> - 一天内的某个时间窗口的开始时间,单位为秒,如 300 (= 5 * 60) 表示 00:05:00。</dd>
- <dd><code>endSecondInADay</code> - 一天内的某个时间窗口的结束时间,单位为秒,如 900 (= 15 * 60) 表示 00:15:00。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>HashTable<id, SortedMap<UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue>>。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryFlowByWindow-java.util.List-long-long-long-db.Granularity-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryFlowByWindow</h4>
- <pre>public java.util.Hashtable<java.lang.String,java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>>> queryFlowByWindow(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity)</pre>
- <div class="block">针对一系列id,给定时间范围和分组粒度,查询对应的流量值。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 待查询的id的列表。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dd><code>granularityValue</code> - 分组粒度数值部分。</dd>
- <dd><code>granularity</code> - 枚举型,分组粒度单位部分。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>HashTable<id, SortedMap<UNIX毫秒时间戳, 时间戳对应的PointDataWithSingleValue>>。</dd>
- </dl>
- </li>
- </ul>
- <a name="greaterThanTime-java.util.SortedMap-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>greaterThanTime</h4>
- <pre>protected java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>> greaterThanTime(java.util.SortedMap<java.lang.Long,<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>> timeSery,
- long compareTime)</pre>
- </li>
- </ul>
- <a name="queryFlowByWindow-java.lang.String-long-long-long-db.Granularity-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryFlowByWindow</h4>
- <pre>public java.util.List<<a href="../db/PointDataWithSingleValue.html" title="db中的类">PointDataWithSingleValue</a>> queryFlowByWindow(java.lang.String id,
- long beginDate,
- long endDate,
- long granularityValue,
- <a href="../db/Granularity.html" title="db中的枚举">Granularity</a> granularity)</pre>
- <div class="block">针对单个id,给定时间范围和分组粒度,查询对应的流量值。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>id</code> - 待查询的id。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dd><code>granularityValue</code> - 分组粒度数值部分。</dd>
- <dd><code>granularity</code> - 枚举型,分组粒度单位部分。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>List<UNIX毫秒时间戳,对应的PointDataWithSingleValue>。<br>
- PointDataWithSingleValue类有四个public属性:id、pointName、time、value。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryFlowInTimeRange-java.lang.String-long-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryFlowInTimeRange</h4>
- <pre>public <a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a> queryFlowInTimeRange(java.lang.String id,
- long beginDate,
- long endDate)</pre>
- <div class="block">针对单个id,给定时间范围,查询对应时间范围内使用的流量值。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>id</code> - 待查询的id。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>FlowInfo。<br>
- PointDataWithSingleValue类有四个public属性:id、pointName、time、value。</dd>
- </dl>
- </li>
- </ul>
- <a name="queryFlowInTimeRange-java.util.List-long-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>queryFlowInTimeRange</h4>
- <pre>public java.util.Hashtable<java.lang.String,<a href="../db/FlowInfo.html" title="db中的类">FlowInfo</a>> queryFlowInTimeRange(java.util.List<java.lang.String> ids,
- long beginDate,
- long endDate)</pre>
- <div class="block">针对一系列id,给定时间范围,查询对应时间范围内使用的流量值。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>ids</code> - 待查询的id列表。</dd>
- <dd><code>beginDate</code> - 开始时间,UNIX毫秒。</dd>
- <dd><code>endDate</code> - 结束时间,UNIX毫秒。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>FlowInfo。<br>
- PointDataWithSingleValue类有四个public属性:id、pointName、time、value。</dd>
- </dl>
- </li>
- </ul>
- <a name="deleteAllDataInTimeRange-long-long-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>deleteAllDataInTimeRange</h4>
- <pre>public boolean deleteAllDataInTimeRange(long beginDate,
- long endDate)</pre>
- </li>
- </ul>
- <a name="deleteBucket-java.lang.String-">
- <!-- -->
- </a>
- <ul class="blockList">
- <li class="blockList">
- <h4>deleteBucket</h4>
- <pre>public boolean deleteBucket(java.lang.String name)</pre>
- <div class="block">删除指定名称的bucket。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>name</code> - bucket的名称。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>删除成功返回true,出现异常返回false。</dd>
- </dl>
- </li>
- </ul>
- <a name="createBucket-java.lang.String-long-">
- <!-- -->
- </a>
- <ul class="blockListLast">
- <li class="blockList">
- <h4>createBucket</h4>
- <pre>public boolean createBucket(java.lang.String name,
- long retentionPeriod)</pre>
- <div class="block">指定名称,创建新的bucket。</div>
- <dl>
- <dt><span class="paramLabel">参数:</span></dt>
- <dd><code>name</code> - 待创建的新的bucket的名称。</dd>
- <dd><code>retentionPeriod</code> - 保留期,单位为毫秒。</dd>
- <dt><span class="returnLabel">返回:</span></dt>
- <dd>成功返回true,出现异常则为false。</dd>
- </dl>
- </li>
- </ul>
- </li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- <!-- ========= END OF CLASS DATA ========= -->
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <div class="bottomNav"><a name="navbar.bottom">
- <!-- -->
- </a>
- <div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
- <a name="navbar.bottom.firstrow">
- <!-- -->
- </a>
- <ul class="navList" title="导航">
- <li><a href="../db/package-summary.html">程序包</a></li>
- <li class="navBarCell1Rev">类</li>
- <li><a href="package-tree.html">树</a></li>
- <li><a href="../deprecated-list.html">已过时</a></li>
- <li><a href="../index-files/index-1.html">索引</a></li>
- <li><a href="../help-doc.html">帮助</a></li>
- </ul>
- </div>
- <div class="subNav">
- <ul class="navList">
- <li><a href="../db/AggFunction.html" title="db中的枚举"><span class="typeNameLink">上一个类</span></a></li>
- <li><a href="../db/FieldName.html" title="db中的枚举"><span class="typeNameLink">下一个类</span></a></li>
- </ul>
- <ul class="navList">
- <li><a href="../index.html?db/DBApiEntry.html" target="_top">框架</a></li>
- <li><a href="DBApiEntry.html" target="_top">无框架</a></li>
- </ul>
- <ul class="navList" id="allclasses_navbar_bottom">
- <li><a href="../allclasses-noframe.html">所有类</a></li>
- </ul>
- <div>
- <script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
- </script>
- </div>
- <div>
- <ul class="subNavList">
- <li>概要: </li>
- <li>嵌套 | </li>
- <li><a href="#field.summary">字段</a> | </li>
- <li><a href="#constructor.summary">构造器</a> | </li>
- <li><a href="#method.summary">方法</a></li>
- </ul>
- <ul class="subNavList">
- <li>详细资料: </li>
- <li><a href="#field.detail">字段</a> | </li>
- <li><a href="#constructor.detail">构造器</a> | </li>
- <li><a href="#method.detail">方法</a></li>
- </ul>
- </div>
- <a name="skip.navbar.bottom">
- <!-- -->
- </a></div>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- </body>
- </html>
|