Class UDTFOnOff

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

    public class UDTFOnOff
    extends java.lang.Object
    implements org.apache.iotdb.udf.api.UDTF
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double threshold  
    • Constructor Summary

      Constructors 
      Constructor Description
      UDTFOnOff()  
    • 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)  
      java.lang.Object transform​(org.apache.iotdb.udf.api.access.Row row)  
      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
    • Field Detail

      • threshold

        protected double threshold
    • Constructor Detail

      • UDTFOnOff

        public UDTFOnOff()
    • Method Detail

      • validate

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

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

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

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