Class Transformer
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.dag.transformer.Transformer
-
- All Implemented Interfaces:
LayerPointReader,YieldableReader
- Direct Known Subclasses:
BinaryTransformer,TernaryTransformer,UDFQueryTransformer,UnaryTransformer
public abstract class Transformer extends java.lang.Object implements LayerPointReader
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.iotdb.tsfile.utils.BinarycachedBinaryprotected booleancachedBooleanprotected doublecachedDoubleprotected floatcachedFloatprotected intcachedIntprotected longcachedLongprotected longcachedTimeprotected booleancurrentNullprotected booleanhasCachedValue
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransformer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleancacheValue()if this method returns true, at least one of the cached field should be setorg.apache.iotdb.tsfile.utils.BinarycurrentBinary()booleancurrentBoolean()doublecurrentDouble()floatcurrentFloat()intcurrentInt()longcurrentLong()longcurrentTime()booleanisCurrentNull()booleannext()voidreadyForNext()YieldableStateyield()protected abstract YieldableStateyieldValue()if this method returns YieldableState.YIELDABLE, at least one of the cached field should be set-
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, isConstantPointReader
-
-
-
-
Field Detail
-
hasCachedValue
protected boolean hasCachedValue
-
cachedTime
protected long cachedTime
-
cachedInt
protected int cachedInt
-
cachedLong
protected long cachedLong
-
cachedFloat
protected float cachedFloat
-
cachedDouble
protected double cachedDouble
-
cachedBoolean
protected boolean cachedBoolean
-
cachedBinary
protected org.apache.iotdb.tsfile.utils.Binary cachedBinary
-
currentNull
protected boolean currentNull
-
-
Method Detail
-
next
public final boolean next() throws QueryProcessException, java.io.IOException- Specified by:
nextin interfaceLayerPointReader- Throws:
QueryProcessExceptionjava.io.IOException
-
cacheValue
protected abstract boolean cacheValue() throws QueryProcessException, java.io.IOExceptionif this method returns true, at least one of the cached field should be set- Throws:
QueryProcessExceptionjava.io.IOException
-
yield
public final YieldableState yield() throws java.io.IOException, QueryProcessException
- Specified by:
yieldin interfaceYieldableReader- Throws:
java.io.IOExceptionQueryProcessException
-
yieldValue
protected abstract YieldableState yieldValue() throws QueryProcessException, java.io.IOException
if this method returns YieldableState.YIELDABLE, at least one of the cached field should be set- Throws:
QueryProcessExceptionjava.io.IOException
-
readyForNext
public final void readyForNext()
- Specified by:
readyForNextin interfaceLayerPointReader
-
currentTime
public final long currentTime()
- Specified by:
currentTimein interfaceLayerPointReader
-
currentInt
public final int currentInt()
- Specified by:
currentIntin interfaceLayerPointReader
-
currentLong
public final long currentLong()
- Specified by:
currentLongin interfaceLayerPointReader
-
currentFloat
public final float currentFloat()
- Specified by:
currentFloatin interfaceLayerPointReader
-
currentDouble
public final double currentDouble()
- Specified by:
currentDoublein interfaceLayerPointReader
-
currentBoolean
public final boolean currentBoolean()
- Specified by:
currentBooleanin interfaceLayerPointReader
-
currentBinary
public final org.apache.iotdb.tsfile.utils.Binary currentBinary()
- Specified by:
currentBinaryin interfaceLayerPointReader
-
isCurrentNull
public final boolean isCurrentNull()
- Specified by:
isCurrentNullin interfaceLayerPointReader
-
-