Class MappableRowByRowAccessStrategy
- java.lang.Object
-
- org.apache.iotdb.udf.api.customizer.strategy.MappableRowByRowAccessStrategy
-
- All Implemented Interfaces:
AccessStrategy
public class MappableRowByRowAccessStrategy extends java.lang.Object implements AccessStrategy
Used inUDTF.beforeStart(UDFParameters, UDTFConfigurations).When the access strategy of a UDTF is set to an instance of this class, the method
UDTF.transform(Row)of the UDTF will be called to transform the original data. You need to override the method in your own UDTF class.Each call of the method
UDTF.transform(Row)processes only one row (aligned by time) of the original data and can generate any number of data points.Sample code:
{@code- See Also:
UDTF,UDTFConfigurations
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iotdb.udf.api.customizer.strategy.AccessStrategy
AccessStrategy.AccessStrategyType
-
-
Constructor Summary
Constructors Constructor Description MappableRowByRowAccessStrategy()
-
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.
-
-
-
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
-
-