Class BinaryTransformer
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.binary.BinaryTransformer
-
- All Implemented Interfaces:
LayerPointReader,YieldableReader
- Direct Known Subclasses:
ArithmeticBinaryTransformer,CompareBinaryTransformer,LogicBinaryTransformer
public abstract class BinaryTransformer extends Transformer
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisCurrentConstantprotected booleanisLeftPointReaderConstantprotected booleanisRightPointReaderConstantprotected LayerPointReaderleftPointReaderprotected org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypeleftPointReaderDataTypeprotected LayerPointReaderrightPointReaderprotected org.apache.iotdb.tsfile.file.metadata.enums.TSDataTyperightPointReaderDataType-
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 protectedBinaryTransformer(LayerPointReader leftPointReader, LayerPointReader rightPointReader)
-
Method Summary
All Methods Static 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 static doublecastCurrentValueToDoubleOperand(LayerPointReader layerPointReader, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType layerPointReaderDataType)protected abstract voidcheckType()booleanisConstantPointReader()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
-
leftPointReader
protected final LayerPointReader leftPointReader
-
rightPointReader
protected final LayerPointReader rightPointReader
-
leftPointReaderDataType
protected final org.apache.iotdb.tsfile.file.metadata.enums.TSDataType leftPointReaderDataType
-
rightPointReaderDataType
protected final org.apache.iotdb.tsfile.file.metadata.enums.TSDataType rightPointReaderDataType
-
isLeftPointReaderConstant
protected final boolean isLeftPointReaderConstant
-
isRightPointReaderConstant
protected final boolean isRightPointReaderConstant
-
isCurrentConstant
protected final boolean isCurrentConstant
-
-
Constructor Detail
-
BinaryTransformer
protected BinaryTransformer(LayerPointReader leftPointReader, LayerPointReader rightPointReader)
-
-
Method Detail
-
checkType
protected abstract void checkType()
-
isConstantPointReader
public 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 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
-
castCurrentValueToDoubleOperand
protected static double castCurrentValueToDoubleOperand(LayerPointReader layerPointReader, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType layerPointReaderDataType) throws java.io.IOException, QueryProcessException
- Throws:
java.io.IOExceptionQueryProcessException
-
-