Class UDTFExample

  • All Implemented Interfaces:
    org.apache.iotdb.udf.api.UDF, org.apache.iotdb.udf.api.UDTF

    public class UDTFExample
    extends java.lang.Object
    implements org.apache.iotdb.udf.api.UDTF
    This is an internal example of the UDTF implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      UDTFExample()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeStart​(org.apache.iotdb.udf.api.customizer.parameter.UDFParameters parameters, org.apache.iotdb.udf.api.customizer.config.UDTFConfigurations configurations)  
      void transform​(org.apache.iotdb.udf.api.access.Row row, org.apache.iotdb.udf.api.collector.PointCollector collector)  
      void validate​(org.apache.iotdb.udf.api.customizer.parameter.UDFParameterValidator validator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.iotdb.udf.api.UDF

        beforeDestroy
      • Methods inherited from interface org.apache.iotdb.udf.api.UDTF

        terminate, transform, transform
    • Constructor Detail

      • UDTFExample

        public UDTFExample()
    • Method Detail

      • validate

        public void validate​(org.apache.iotdb.udf.api.customizer.parameter.UDFParameterValidator validator)
                      throws java.lang.Exception
        Specified by:
        validate in interface org.apache.iotdb.udf.api.UDF
        Throws:
        java.lang.Exception
      • beforeStart

        public void beforeStart​(org.apache.iotdb.udf.api.customizer.parameter.UDFParameters parameters,
                                org.apache.iotdb.udf.api.customizer.config.UDTFConfigurations configurations)
        Specified by:
        beforeStart in interface org.apache.iotdb.udf.api.UDTF
      • transform

        public void transform​(org.apache.iotdb.udf.api.access.Row row,
                              org.apache.iotdb.udf.api.collector.PointCollector collector)
                       throws java.io.IOException
        Specified by:
        transform in interface org.apache.iotdb.udf.api.UDTF
        Throws:
        java.io.IOException