Class StateWindowAccessStrategy
- java.lang.Object
-
- org.apache.iotdb.udf.api.customizer.strategy.StateWindowAccessStrategy
-
- All Implemented Interfaces:
AccessStrategy
public class StateWindowAccessStrategy 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 StateWindowAccessStrategy()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.StateWindowAccessStrategy(double delta)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.StateWindowAccessStrategy(long displayWindowBegin, long displayWindowEnd)StateWindowAccessStrategy(long displayWindowBegin, long displayWindowEnd, double delta)
-
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.doublegetDelta()longgetDisplayWindowBegin()longgetDisplayWindowEnd()java.time.ZoneIdgetZoneId()voidsetZoneId(java.time.ZoneId zoneId)
-
-
-
Constructor Detail
-
StateWindowAccessStrategy
public StateWindowAccessStrategy(long displayWindowBegin, long displayWindowEnd, double delta)- Parameters:
displayWindowBegin- displayWindowBegin < displayWindowEnddisplayWindowEnd- displayWindowBegin < displayWindowEnddelta- delta >= 0
-
StateWindowAccessStrategy
public StateWindowAccessStrategy(long displayWindowBegin, long displayWindowEnd)- Parameters:
displayWindowBegin- displayWindowBegin < displayWindowEnddisplayWindowEnd- displayWindowBegin < displayWindowEnd
-
StateWindowAccessStrategy
public StateWindowAccessStrategy(double delta)
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:
delta- 0 < delta
-
StateWindowAccessStrategy
public StateWindowAccessStrategy()
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. delta default equals 0.
-
-
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()
-
getDelta
public double getDelta()
-
getZoneId
public java.time.ZoneId getZoneId()
-
setZoneId
public void setZoneId(java.time.ZoneId zoneId)
-
-