Class UDTFMath
- java.lang.Object
-
- org.apache.iotdb.commons.udf.builtin.UDTFMath
-
- All Implemented Interfaces:
org.apache.iotdb.udf.api.UDF,org.apache.iotdb.udf.api.UDTF
- Direct Known Subclasses:
UDTFAbs,UDTFAcos,UDTFAsin,UDTFAtan,UDTFCeil,UDTFCos,UDTFCosh,UDTFDegrees,UDTFExp,UDTFFloor,UDTFLog,UDTFLog10,UDTFRadians,UDTFRound,UDTFSign,UDTFSin,UDTFSinh,UDTFSqrt,UDTFTan,UDTFTanh
public abstract class UDTFMath extends java.lang.Object implements org.apache.iotdb.udf.api.UDTF
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceUDTFMath.Transformer
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypedataTypeprotected UDTFMath.Transformertransformer
-
Constructor Summary
Constructors Constructor Description UDTFMath()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbeforeStart(org.apache.iotdb.udf.api.customizer.parameter.UDFParameters parameters, org.apache.iotdb.udf.api.customizer.config.UDTFConfigurations configurations)protected abstract voidsetTransformer()java.lang.Objecttransform(org.apache.iotdb.udf.api.access.Row row)voidtransform(org.apache.iotdb.udf.api.access.Row row, org.apache.iotdb.udf.api.collector.PointCollector collector)voidvalidate(org.apache.iotdb.udf.api.customizer.parameter.UDFParameterValidator validator)
-
-
-
Field Detail
-
transformer
protected UDTFMath.Transformer transformer
-
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
-
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:
beforeStartin interfaceorg.apache.iotdb.udf.api.UDTF- Throws:
MetadataException
-
setTransformer
protected abstract void setTransformer()
-
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:
transformin interfaceorg.apache.iotdb.udf.api.UDTF- Throws:
org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidExceptionjava.io.IOException
-
transform
public java.lang.Object transform(org.apache.iotdb.udf.api.access.Row row) throws java.io.IOException- Specified by:
transformin interfaceorg.apache.iotdb.udf.api.UDTF- Throws:
java.io.IOException
-
-