Class IoTDBReporter

    • Constructor Summary

      Constructors 
      Constructor Description
      IoTDBReporter()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.iotdb.tsfile.file.metadata.enums.TSDataType inferType​(java.lang.Object value)
      Infer type from object.
      protected abstract void writeMetricsToIoTDB​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> valueMap, long time)
      Write metrics into IoTDB.
      protected abstract void writeMetricToIoTDB​(java.util.Map<java.lang.String,​java.lang.Object> valueMap, java.lang.String prefix, long time)
      Write metric into IoTDB.
      void writeMetricToIoTDB​(java.util.Map<MetricInfo,​IMetric> metricMap)
      Write metrics into IoTDB.
      void writeMetricToIoTDB​(IMetric metric, java.lang.String name, java.lang.String... tags)
      Write metric into IoTDB.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IoTDBReporter

        public IoTDBReporter()
    • Method Detail

      • writeMetricToIoTDB

        public void writeMetricToIoTDB​(IMetric metric,
                                       java.lang.String name,
                                       java.lang.String... tags)
        Write metric into IoTDB.
        Parameters:
        metric - the target metric
        name - the name of metric
        tags - the tags of metric
      • writeMetricToIoTDB

        protected abstract void writeMetricToIoTDB​(java.util.Map<java.lang.String,​java.lang.Object> valueMap,
                                                   java.lang.String prefix,
                                                   long time)
        Write metric into IoTDB.
        Parameters:
        valueMap - sensor -> value
        prefix - device
        time - write time
      • writeMetricToIoTDB

        public void writeMetricToIoTDB​(java.util.Map<MetricInfo,​IMetric> metricMap)
        Write metrics into IoTDB.
        Parameters:
        metricMap - metricInfo -> IMetric
      • writeMetricsToIoTDB

        protected abstract void writeMetricsToIoTDB​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> valueMap,
                                                    long time)
        Write metrics into IoTDB.
        Parameters:
        valueMap - device -> sensor -> value
        time - write time
      • inferType

        protected org.apache.iotdb.tsfile.file.metadata.enums.TSDataType inferType​(java.lang.Object value)
        Infer type from object.