Class UDTFContinuouslySatisfy
- java.lang.Object
-
- org.apache.iotdb.commons.udf.builtin.UDTFContinuouslySatisfy
-
- All Implemented Interfaces:
org.apache.iotdb.udf.api.UDF,org.apache.iotdb.udf.api.UDTF
- Direct Known Subclasses:
UDTFNonZeroCount,UDTFNonZeroDuration,UDTFZeroCount,UDTFZeroDuration
public abstract class UDTFContinuouslySatisfy 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 org.apache.iotdb.tsfile.utils.Pair<java.lang.Long,java.lang.Long>intervalprotected longmaxprotected longminprotected longsatisfyValueCountprotected longsatisfyValueLastTimeprotected longsatisfyValueStartTime
-
Constructor Summary
Constructors Constructor Description UDTFContinuouslySatisfy()
-
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 longgetDefaultMax()protected abstract longgetDefaultMin()protected abstract java.lang.LonggetRecord()protected abstract booleansatisfyBoolean(java.lang.Boolean value)protected abstract booleansatisfyDouble(double value)protected abstract booleansatisfyFloat(float value)protected abstract booleansatisfyInt(int value)protected abstract booleansatisfyLong(long value)voidterminate(org.apache.iotdb.udf.api.collector.PointCollector collector)voidtransform(org.apache.iotdb.udf.api.access.Row row, org.apache.iotdb.udf.api.collector.PointCollector collector)protected booleantransformBoolean(long time, boolean value)protected booleantransformDouble(long time, double value)protected booleantransformFloat(long time, float value)protected booleantransformInt(long time, int value)protected booleantransformLong(long time, long value)voidvalidate(org.apache.iotdb.udf.api.customizer.parameter.UDFParameterValidator validator)
-
-
-
Field Detail
-
min
protected long min
-
max
protected long max
-
dataType
protected org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType
-
satisfyValueCount
protected long satisfyValueCount
-
satisfyValueLastTime
protected long satisfyValueLastTime
-
satisfyValueStartTime
protected long satisfyValueStartTime
-
interval
protected org.apache.iotdb.tsfile.utils.Pair<java.lang.Long,java.lang.Long> interval
-
-
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
-
getDefaultMin
protected abstract long getDefaultMin()
-
getDefaultMax
protected abstract long getDefaultMax()
-
beforeStart
public void beforeStart(org.apache.iotdb.udf.api.customizer.parameter.UDFParameters parameters, org.apache.iotdb.udf.api.customizer.config.UDTFConfigurations configurations) throws MetadataException, org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException- Specified by:
beforeStartin interfaceorg.apache.iotdb.udf.api.UDTF- Throws:
MetadataExceptionorg.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException
-
transform
public void transform(org.apache.iotdb.udf.api.access.Row row, org.apache.iotdb.udf.api.collector.PointCollector collector) throws java.io.IOException, org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException- Specified by:
transformin interfaceorg.apache.iotdb.udf.api.UDTF- Throws:
java.io.IOExceptionorg.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException
-
transformDouble
protected boolean transformDouble(long time, double value)
-
transformFloat
protected boolean transformFloat(long time, float value)
-
transformLong
protected boolean transformLong(long time, long value)
-
transformInt
protected boolean transformInt(long time, int value)
-
transformBoolean
protected boolean transformBoolean(long time, boolean value)
-
getRecord
protected abstract java.lang.Long getRecord()
-
terminate
public void terminate(org.apache.iotdb.udf.api.collector.PointCollector collector) throws org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidException, java.io.IOException- Specified by:
terminatein interfaceorg.apache.iotdb.udf.api.UDTF- Throws:
org.apache.iotdb.udf.api.exception.UDFInputSeriesDataTypeNotValidExceptionjava.io.IOException
-
satisfyInt
protected abstract boolean satisfyInt(int value)
-
satisfyLong
protected abstract boolean satisfyLong(long value)
-
satisfyFloat
protected abstract boolean satisfyFloat(float value)
-
satisfyDouble
protected abstract boolean satisfyDouble(double value)
-
satisfyBoolean
protected abstract boolean satisfyBoolean(java.lang.Boolean value)
-
-