Class BasicDaoImpl
- java.lang.Object
-
- org.apache.iotdb.web.grafana.dao.impl.BasicDaoImpl
-
-
Constructor Summary
Constructors Constructor Description BasicDaoImpl(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInterval(long hours)java.util.List<java.lang.String>getMetaData()java.util.List<TimeValues>querySeries(java.lang.String s, org.apache.iotdb.tsfile.utils.Pair<java.time.ZonedDateTime,java.time.ZonedDateTime> timeRange)Note: If the query fails this could be due to AGGREGATION like AVG on boolean field.java.util.List<TimeValues>querySeriesInternal(java.lang.String s, org.apache.iotdb.tsfile.utils.Pair<java.time.ZonedDateTime,java.time.ZonedDateTime> timeRange, java.lang.String function)static voidsetTimestampRadioX(java.lang.String timestampPrecision)
-
-
-
Method Detail
-
getMetaData
public java.util.List<java.lang.String> getMetaData()
- Specified by:
getMetaDatain interfaceBasicDao
-
setTimestampRadioX
public static void setTimestampRadioX(java.lang.String timestampPrecision)
-
querySeries
public java.util.List<TimeValues> querySeries(java.lang.String s, org.apache.iotdb.tsfile.utils.Pair<java.time.ZonedDateTime,java.time.ZonedDateTime> timeRange)
Note: If the query fails this could be due to AGGREGATION like AVG on boolean field. Thus, we then do a retry with FIRST aggregation. This should be solved better in the long run.- Specified by:
querySeriesin interfaceBasicDao
-
querySeriesInternal
public java.util.List<TimeValues> querySeriesInternal(java.lang.String s, org.apache.iotdb.tsfile.utils.Pair<java.time.ZonedDateTime,java.time.ZonedDateTime> timeRange, java.lang.String function)
-
getInterval
public java.lang.String getInterval(long hours)
-
-