Class LogicBinaryTransformer
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.binary.BinaryTransformer
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.binary.LogicBinaryTransformer
-
- All Implemented Interfaces:
LayerPointReader,YieldableReader
- Direct Known Subclasses:
LogicAndTransformer,LogicOrTransformer
public abstract class LogicBinaryTransformer extends BinaryTransformer
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.mpp.transformation.dag.transformer.binary.BinaryTransformer
isCurrentConstant, isLeftPointReaderConstant, isRightPointReaderConstant, leftPointReader, leftPointReaderDataType, rightPointReader, rightPointReaderDataType
-
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 protectedLogicBinaryTransformer(LayerPointReader leftPointReader, LayerPointReader rightPointReader)
-
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 voidcheckType()protected abstract booleanevaluate(boolean leftOperand, boolean rightOperand)org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypegetDataType()protected 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.binary.BinaryTransformer
castCurrentValueToDoubleOperand, isConstantPointReader
-
Methods inherited from class org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
currentBinary, currentBoolean, currentDouble, currentFloat, currentInt, currentLong, currentTime, isCurrentNull, next, readyForNext, yield
-
-
-
-
Constructor Detail
-
LogicBinaryTransformer
protected LogicBinaryTransformer(LayerPointReader leftPointReader, LayerPointReader rightPointReader)
-
-
Method Detail
-
checkType
protected void checkType()
- Specified by:
checkTypein classBinaryTransformer
-
yieldValue
public 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- Overrides:
yieldValuein classBinaryTransformer- Throws:
QueryProcessExceptionjava.io.IOException
-
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- Overrides:
cacheValuein classBinaryTransformer- Throws:
QueryProcessExceptionjava.io.IOException
-
evaluate
protected abstract boolean evaluate(boolean leftOperand, boolean rightOperand)
-
transformAndCache
protected void transformAndCache() throws QueryProcessException, java.io.IOException- Specified by:
transformAndCachein classBinaryTransformer- Throws:
QueryProcessExceptionjava.io.IOException
-
getDataType
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getDataType()
-
-