Class BasicDaoImpl

  • All Implemented Interfaces:
    BasicDao

    @Repository
    @PropertySource("classpath:application.properties")
    public class BasicDaoImpl
    extends java.lang.Object
    implements BasicDao
    • 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.String getInterval​(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 void setTimestampRadioX​(java.lang.String timestampPrecision)  
      • Methods inherited from class java.lang.Object

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

      • BasicDaoImpl

        @Autowired
        public BasicDaoImpl​(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
    • Method Detail

      • getMetaData

        public java.util.List<java.lang.String> getMetaData()
        Specified by:
        getMetaData in interface BasicDao
      • 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:
        querySeries in interface BasicDao
      • 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)