Class UDTFValueTrend

  • All Implemented Interfaces:
    org.apache.iotdb.udf.api.UDF, org.apache.iotdb.udf.api.UDTF
    Direct Known Subclasses:
    UDTFDerivative, UDTFValueDifference

    public abstract class UDTFValueTrend
    extends java.lang.Object
    implements org.apache.iotdb.udf.api.UDTF
    • Constructor Summary

      Constructors 
      Constructor Description
      UDTFValueTrend()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void doTransform​(org.apache.iotdb.udf.api.access.Row row, org.apache.iotdb.udf.api.collector.PointCollector collector)  
      protected void updatePreviousValue​(org.apache.iotdb.udf.api.access.Row row)  
      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

        beforeStart, terminate, transform, transform, transform
    • Field Detail

      • hasPrevious

        protected boolean hasPrevious
      • previousInt

        protected int previousInt
      • previousLong

        protected long previousLong
      • previousFloat

        protected float previousFloat
      • previousDouble

        protected double previousDouble
      • dataType

        protected org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType
    • Constructor Detail

      • UDTFValueTrend

        public UDTFValueTrend()
    • 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
      • updatePreviousValue

        protected void updatePreviousValue​(org.apache.iotdb.udf.api.access.Row row)
                                    throws org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException,
                                           java.io.IOException
        Throws:
        org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException
        java.io.IOException
      • doTransform

        protected abstract void doTransform​(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
        Throws:
        org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException
        java.io.IOException