Class UniversalUDFQueryTransformer
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.multi.UDFQueryTransformer
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.multi.UniversalUDFQueryTransformer
-
- All Implemented Interfaces:
LayerPointReader,YieldableReader
- Direct Known Subclasses:
UDFQueryRowTransformer,UDFQueryRowWindowTransformer
public abstract class UniversalUDFQueryTransformer extends UDFQueryTransformer
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisLayerPointReaderConstantprotected LayerPointReaderlayerPointReader-
Fields inherited from class org.apache.iotdb.db.mpp.transformation.dag.transformer.multi.UDFQueryTransformer
executor, terminated, tsDataType
-
Fields inherited from class org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
cachedBinary, cachedBoolean, cachedDouble, cachedFloat, cachedInt, cachedLong, cachedTime, currentNull, hasCachedValue
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUniversalUDFQueryTransformer(UDTFExecutor executor)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancacheValue()if this method returns true, at least one of the cached field should be setprotected booleancacheValueFromUDFOutput()protected abstract booleanexecuteUDFOnce()booleanisConstantPointReader()protected abstract YieldableStatetryExecuteUDFOnce()protected YieldableStateyieldValue()if this method returns YieldableState.YIELDABLE, at least one of the cached field should be set-
Methods inherited from class org.apache.iotdb.db.mpp.transformation.dag.transformer.multi.UDFQueryTransformer
getDataType, terminate
-
Methods inherited from class org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
currentBinary, currentBoolean, currentDouble, currentFloat, currentInt, currentLong, currentTime, isCurrentNull, next, readyForNext, yield
-
-
-
-
Field Detail
-
layerPointReader
protected final LayerPointReader layerPointReader
-
isLayerPointReaderConstant
protected final boolean isLayerPointReaderConstant
-
-
Constructor Detail
-
UniversalUDFQueryTransformer
protected UniversalUDFQueryTransformer(UDTFExecutor executor)
-
-
Method Detail
-
yieldValue
protected final YieldableState yieldValue() throws QueryProcessException, java.io.IOException
Description copied from class:Transformerif this method returns YieldableState.YIELDABLE, at least one of the cached field should be set- Specified by:
yieldValuein classTransformer- Throws:
QueryProcessExceptionjava.io.IOException
-
cacheValue
protected final boolean cacheValue() throws QueryProcessException, java.io.IOExceptionDescription copied from class:Transformerif this method returns true, at least one of the cached field should be set- Specified by:
cacheValuein classTransformer- Throws:
QueryProcessExceptionjava.io.IOException
-
tryExecuteUDFOnce
protected abstract YieldableState tryExecuteUDFOnce() throws QueryProcessException, java.io.IOException
- Throws:
QueryProcessExceptionjava.io.IOException
-
executeUDFOnce
protected abstract boolean executeUDFOnce() throws QueryProcessException, java.io.IOException- Throws:
QueryProcessExceptionjava.io.IOException
-
cacheValueFromUDFOutput
protected final boolean cacheValueFromUDFOutput() throws QueryProcessException, java.io.IOException- Throws:
QueryProcessExceptionjava.io.IOException
-
isConstantPointReader
public final boolean isConstantPointReader()
-
-