@Service @Transactional(readOnly=true) public class NativeQueriesServiceBean extends java.lang.Object implements NativeQueriesService
Constructor and Description |
---|
NativeQueriesServiceBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<TransitStatisticsWithTime> |
getHourlyTransits(java.util.UUID areaId,
java.time.Instant since,
java.time.Instant until,
TimeStepEnum timeInterval)
native query is used because of time_bucket_gapfill() function,
see https://docs.timescale.com/v1.2/api#time_bucket_gapfill
|
java.lang.Iterable<TransitStatisticsWithTime> |
getHourlyTransitsOnlyActive(java.util.UUID areaId,
java.time.Instant since,
java.time.Instant until,
TimeStepEnum timeInterval)
native query is used because of time_bucket_gapfill() function,
see https://docs.timescale.com/v1.2/api#time_bucket_gapfill
|
public java.lang.Iterable<TransitStatisticsWithTime> getHourlyTransits(java.util.UUID areaId, java.time.Instant since, java.time.Instant until, TimeStepEnum timeInterval)
getHourlyTransits
in interface NativeQueriesService
areaId
- the zone sequencesince
- the start of the time intervaluntil
- the end of the time intervaltimeInterval
- time step by which statistics are aggregatedpublic java.lang.Iterable<TransitStatisticsWithTime> getHourlyTransitsOnlyActive(java.util.UUID areaId, java.time.Instant since, java.time.Instant until, TimeStepEnum timeInterval)
getHourlyTransitsOnlyActive
in interface NativeQueriesService
areaId
- the zone sequencesince
- the start of the time intervaluntil
- the end of the time intervaltimeInterval
- time step by which statistics are aggregated