package com.iailab.module.data.influxdb.service; import com.iailab.module.data.influxdb.pojo.InfluxPointValuePOJO; import com.iailab.module.data.influxdb.pojo.InfluxPointValuePOJO; import com.iailab.module.data.api.dto.ApiTagValueQueryDTO; import com.iailab.module.data.influxdb.pojo.InfluxPointValuePOJO; import com.iailab.module.data.influxdb.pojo.InfluxTagValuePOJO; import com.iailab.module.data.influxdb.pojo.InfluxPointValuePOJO; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.Date; import java.util.List; import java.util.Map; /** * InfluxDB操作类 */ public interface InfluxDBService { void syncWriteFloatValue(String pointNo, String dataValue, long time); void syncWriteIntValue(String pointNo, String dataValue, long time); void syncWriteBooleanValue(String pointNo, String dataValue, long time); void asyncWritePointValues(List pointValues); void asyncWriteTagValues(List tagValues); Map queryPointsLastValue(List influxParams); Map> queryTagsValues(List influxParams, Date startTime, Date endTime); List> queryPointValues(InfluxPointValuePOJO pojo, Date startTime, Date endTime); Map>> queryPointsValues(List influxParams, Date startTime, Date endTime); Map queryPointsSpread(List influxParams, Date startTime, Date endTime); boolean exportTagValue(HttpServletResponse response, HttpServletRequest request, ApiTagValueQueryDTO params); Object queryPointMaxValue(InfluxPointValuePOJO point, Date startTime); }