Class UnaryTransformer
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.unary.UnaryTransformer
-
- All Implemented Interfaces:
LayerPointReader,YieldableReader
- Direct Known Subclasses:
ArithmeticNegationTransformer,InTransformer,IsNullTransformer,LogicNotTransformer,RegularTransformer,TransparentTransformer
public abstract class UnaryTransformer extends Transformer
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisLayerPointReaderConstantprotected LayerPointReaderlayerPointReaderprotected org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypelayerPointReaderDataType-
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 Constructor Description UnaryTransformer(LayerPointReader layerPointReader)
-
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 setbooleanisConstantPointReader()protected abstract voidtransformAndCache()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.Transformer
currentBinary, currentBoolean, currentDouble, currentFloat, currentInt, currentLong, currentTime, isCurrentNull, next, readyForNext, yield
-
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.db.mpp.transformation.api.LayerPointReader
getDataType
-
-
-
-
Field Detail
-
layerPointReader
protected final LayerPointReader layerPointReader
-
layerPointReaderDataType
protected final org.apache.iotdb.tsfile.file.metadata.enums.TSDataType layerPointReaderDataType
-
isLayerPointReaderConstant
protected final boolean isLayerPointReaderConstant
-
-
Constructor Detail
-
UnaryTransformer
public UnaryTransformer(LayerPointReader layerPointReader)
-
-
Method Detail
-
isConstantPointReader
public final boolean isConstantPointReader()
-
yieldValue
public YieldableState yieldValue() throws java.io.IOException, QueryProcessException
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:
java.io.IOExceptionQueryProcessException
-
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
-
transformAndCache
protected abstract void transformAndCache() throws QueryProcessException, java.io.IOException- Throws:
QueryProcessExceptionjava.io.IOException
-
-