推特 阿里云技术文档正文

TSDBClient_常用类及其方法_SDK 参考_时序数据库 TSDB_时序时空数据库TSDB

admin 阿里云技术文档 2020-02-11 178 0
阿里云服务器优惠

TSDBClient

类全名:com.aliyun.hitsdb.client.TSDBClient

    • 方法详细资料

      • close

        1. public void close(boolean force) throws IOException
        从接口复制的说明: TSDB
        关闭TSDB实例。该方法在程序结束前调用。
        指定者:
        close 在接口中 TSDB
        参数:
        force - true or false
        抛出:
        IOException - exception
      • deleteData

        1. public void deleteData(String metric, long startTime, long endTime)
        指定者:
        deleteData 在接口中 TSDB
        参数:
        metric - metric
        startTime - start timestamp
        endTime - end timestamp
      • deleteData

        1. public void deleteData(String metric, Date startDate, Date endDate)
        从接口复制的说明: TSDB
        指定Metric,指定时间范围内的数据都删除。
        指定者:
        deleteData 在接口中 TSDB
        参数:
        metric - metric name
        startDate - start date
        endDate - end date
      • deleteMeta

        1. public void deleteMeta(String metricMap<String,String> tags)
        从接口复制的说明: TSDB
        删除时间线数据。
        指定者:
        deleteMeta 在接口中 TSDB
        参数:
        metric - Metric,度量名称,指标名称
        tags - 以Map表示的Tag键值对。
      • deleteMeta

        1. public void deleteMeta(Timeline timeline)
        从接口复制的说明: TSDB
        删除时间线数据。/div>
        指定者:
        deleteMeta 在接口中 TSDB
        参数:
        timeline - Timeline 时间线类的实例。
      • dumpMeta

        1. public List<TagResult> dumpMeta(String tagkey, String tagValuePrefix, int max)
        从接口复制的说明: TSDB
        获取符合条件的Tag列表
        指定者:
        dumpMeta 在接口中 TSDB
        参数:
        tagkey - Tag的名称
        tagValuePrefix - Tag值的前缀
        max - 最大数量
        返回:
        the List of the TagResult
      • put

        1. public void put(Point point)
        从接口复制的说明: TSDB
        异步写数据
        指定者:
        put 在接口中 TSDB
        参数:
        point - 时间点
      • query

        1. public List<QueryResult> query(Query query)
        从接口复制的说明: TSDB
        查询数据
        指定者:
        query 在接口中 TSDB
        参数:
        query - Query 查询类实例
        返回:
        result : QueryResult 查询结果类的实例。
      • query

        1. public void query(Query query, QueryCallback callback)
        从接口复制的说明: TSDB
        异步查询方法,查询结果在回调中返回。
        指定者:
        query 在接口中 TSDB
        参数:
        query - Query 查询类实例
        callback - 查询回调接口的实例。查询结果会在回调方法中异步返回。
      • suggest

        1. public List<String> suggest(Suggest type, String prefix, int max)
        从接口复制的说明: TSDB
        suggest method
        指定者:
        suggest 在接口中 TSDB
        参数:
        type - 数据类型
        prefix - 前缀
        max - 最大数量
        返回:
        result
      • ttl

        1. public int ttl()
        从接口复制的说明: TSDB
        获取TTL数值。单位:秒
        指定者:
        ttl 在接口中 TSDB
        返回:
        ttl值,单位为秒。
      • ttl

        1. public void ttl(int lifetime)
        从接口复制的说明: TSDB
        设置TTL数值。
        指定者:
        ttl 在接口中 TSDB
        参数:
        lifetime - ttl的数值。单位为秒。
      • ttl

        1. public void ttl(int lifetime, TimeUnit unit)
        指定者:
        ttl 在接口中 TSDB
        参数:
        lifetime - ttl的数值。
        unit - ttl的单位。
      • putSync

        1. public Result putSync(Collection<Point> points)
        从接口复制的说明: TSDB
        同步写入时间点
        指定者:
        putSync 在接口中 TSDB
        参数:
        points - 时间点数量
        返回:
        Result实例。该对象无实际作用,只是用来表示方法返回了。
      • putSync

        1. public <T extends Result> T putSync(Collection<Point> points, Class<T> resultType)
        从接口复制的说明: TSDB
        同步写入方法
        指定者:
        putSync 在接口中 TSDB
        类型参数:
        T - Result.class, SummaryResult.class, DetailsResult.class
        参数:
        points - 时间点的集合
        resultType - 结果类型
        返回:
        Result实例。
      • put

        1. public void put(Point points)
        从接口复制的说明: TSDB
        异步写时间点
        指定者:
        put 在接口中 TSDB
        参数:
        points - 时间点集合
      • putSync

        1. public Result putSync(Point points)
        从接口复制的说明: TSDB
        同步写时间点
        指定者:
        putSync 在接口中 TSDB
        参数:
        points - 时间点集合
        返回:
        Result
      • putSync

        1. public <T extends Result> T putSync(Class<T> resultType, Collection<Point> points)
        从接口复制的说明: TSDB
        同步写
        指定者:
        putSync 在接口中 TSDB
        类型参数:
        T - Result.class, SummaryResult.class, DetailsResult.class
        参数:
        resultType - 结果类型
        points - 时间点集合
        返回:
        Result
      • putSync

        1. public <T extends Result> T putSync(Class<T> resultType, Point points)
        从接口复制的说明: TSDB
        同步写方法
        指定者:
        putSync 在接口中 TSDB
        类型参数:
        T - Result.class, SummaryResult.class, DetailsResult.class
        参数:
        resultType - 结果类型
        points - 时间点集合
        返回:
        Result
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

评论

-----