Class SessionTimeWindowAccessStrategy
- java.lang.Object
-
- org.apache.iotdb.udf.api.customizer.strategy.SessionTimeWindowAccessStrategy
-
- All Implemented Interfaces:
AccessStrategy
public class SessionTimeWindowAccessStrategy extends java.lang.Object implements AccessStrategy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iotdb.udf.api.customizer.strategy.AccessStrategy
AccessStrategy.AccessStrategyType
-
-
Constructor Summary
Constructors Constructor Description SessionTimeWindowAccessStrategy(long sessionTimeGap)Display window begin will be set to the same as the minimum timestamp of the query result set, and display window end will be set to the same as the maximum timestamp of the query result set.SessionTimeWindowAccessStrategy(long displayWindowBegin, long displayWindowEnd, long sessionTimeGap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck()Used by the system to check the access strategy.AccessStrategy.AccessStrategyTypegetAccessStrategyType()Returns the actual access strategy type.longgetDisplayWindowBegin()longgetDisplayWindowEnd()longgetSessionTimeGap()java.time.ZoneIdgetZoneId()voidsetZoneId(java.time.ZoneId zoneId)
-
-
-
Constructor Detail
-
SessionTimeWindowAccessStrategy
public SessionTimeWindowAccessStrategy(long displayWindowBegin, long displayWindowEnd, long sessionTimeGap)- Parameters:
displayWindowBegin- displayWindowBegin < displayWindowEnddisplayWindowEnd- displayWindowBegin < displayWindowEndsessionTimeGap- 0 <= sessionTimeGap
-
SessionTimeWindowAccessStrategy
public SessionTimeWindowAccessStrategy(long sessionTimeGap)
Display window begin will be set to the same as the minimum timestamp of the query result set, and display window end will be set to the same as the maximum timestamp of the query result set.- Parameters:
sessionTimeGap- 0 <= sessionTimeGap
-
-
Method Detail
-
check
public void check()
Description copied from interface:AccessStrategyUsed by the system to check the access strategy.- Specified by:
checkin interfaceAccessStrategy
-
getAccessStrategyType
public AccessStrategy.AccessStrategyType getAccessStrategyType()
Description copied from interface:AccessStrategyReturns the actual access strategy type.- Specified by:
getAccessStrategyTypein interfaceAccessStrategy- Returns:
- the actual access strategy type
-
getDisplayWindowBegin
public long getDisplayWindowBegin()
-
getDisplayWindowEnd
public long getDisplayWindowEnd()
-
getSessionTimeGap
public long getSessionTimeGap()
-
getZoneId
public java.time.ZoneId getZoneId()
-
setZoneId
public void setZoneId(java.time.ZoneId zoneId)
-
-