Class ConstantInputReader
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.dag.input.ConstantInputReader
-
- All Implemented Interfaces:
LayerPointReader,YieldableReader
public class ConstantInputReader extends java.lang.Object implements LayerPointReader
LayerPointReader for constants.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.iotdb.tsfile.utils.BinarycachedBinaryprotected booleancachedBooleanprotected doublecachedDoubleprotected floatcachedFloatprotected intcachedIntprotected longcachedLong
-
Constructor Summary
Constructors Constructor Description ConstantInputReader(ConstantOperand expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.iotdb.tsfile.utils.BinarycurrentBinary()booleancurrentBoolean()doublecurrentDouble()floatcurrentFloat()intcurrentInt()longcurrentLong()longcurrentTime()org.apache.iotdb.tsfile.file.metadata.enums.TSDataTypegetDataType()booleanisConstantPointReader()booleanisCurrentNull()booleannext()voidreadyForNext()YieldableStateyield()
-
-
-
Constructor Detail
-
ConstantInputReader
public ConstantInputReader(ConstantOperand expression) throws QueryProcessException
- Throws:
QueryProcessException
-
-
Method Detail
-
isConstantPointReader
public boolean isConstantPointReader()
- Specified by:
isConstantPointReaderin interfaceLayerPointReader
-
yield
public YieldableState yield()
- Specified by:
yieldin interfaceYieldableReader
-
next
public boolean next()
- Specified by:
nextin interfaceLayerPointReader
-
readyForNext
public void readyForNext()
- Specified by:
readyForNextin interfaceLayerPointReader
-
getDataType
public org.apache.iotdb.tsfile.file.metadata.enums.TSDataType getDataType()
- Specified by:
getDataTypein interfaceLayerPointReader
-
currentTime
public long currentTime() throws java.io.IOException- Specified by:
currentTimein interfaceLayerPointReader- Throws:
java.io.IOException
-
currentInt
public int currentInt() throws java.io.IOException- Specified by:
currentIntin interfaceLayerPointReader- Throws:
java.io.IOException
-
currentLong
public long currentLong() throws java.io.IOException- Specified by:
currentLongin interfaceLayerPointReader- Throws:
java.io.IOException
-
currentFloat
public float currentFloat() throws java.io.IOException- Specified by:
currentFloatin interfaceLayerPointReader- Throws:
java.io.IOException
-
currentDouble
public double currentDouble() throws java.io.IOException- Specified by:
currentDoublein interfaceLayerPointReader- Throws:
java.io.IOException
-
currentBoolean
public boolean currentBoolean() throws java.io.IOException- Specified by:
currentBooleanin interfaceLayerPointReader- Throws:
java.io.IOException
-
currentBinary
public org.apache.iotdb.tsfile.utils.Binary currentBinary() throws java.io.IOException- Specified by:
currentBinaryin interfaceLayerPointReader- Throws:
java.io.IOException
-
isCurrentNull
public boolean isCurrentNull()
- Specified by:
isCurrentNullin interfaceLayerPointReader
-
-