Class UDTFValueTrend
- java.lang.Object
-
- org.apache.iotdb.commons.udf.builtin.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
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypedataTypeprotected booleanhasPreviousprotected doublepreviousDoubleprotected floatpreviousFloatprotected intpreviousIntprotected longpreviousLong
-
Constructor Summary
Constructors Constructor Description UDTFValueTrend()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoTransform(org.apache.iotdb.udf.api.access.Row row, org.apache.iotdb.udf.api.collector.PointCollector collector)protected voidupdatePreviousValue(org.apache.iotdb.udf.api.access.Row row)voidvalidate(org.apache.iotdb.udf.api.customizer.parameter.UDFParameterValidator validator)
-
-
-
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
-
-
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:
validatein interfaceorg.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.UDFInputSeriesDataTypeNotValidExceptionjava.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.UDFInputSeriesDataTypeNotValidExceptionjava.io.IOException
-
-