Class UDFInputDataSet
- java.lang.Object
-
- org.apache.iotdb.db.query.dataset.UDFInputDataSet
-
- All Implemented Interfaces:
IUDFInputDataSet
public class UDFInputDataSet extends java.lang.Object implements IUDFInputDataSet
the input data set of an UDAF query. It accepts any query results as input instead of raw timeseries data
-
-
Constructor Summary
Constructors Constructor Description UDFInputDataSet(org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet dataSet, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType>getDataTypes()returns the input data types, except the timestamp column(the last column).booleanhasNextRowInObjects()Whether the data set has next row.java.lang.Object[]nextRowInObjects()Get the next row for UDFPlan input.-
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.dag.input.IUDFInputDataSet
canYieldNextRowInObjects
-
-
-
-
Method Detail
-
getDataTypes
public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> getDataTypes()
Description copied from interface:IUDFInputDataSetreturns the input data types, except the timestamp column(the last column).- Specified by:
getDataTypesin interfaceIUDFInputDataSet
-
hasNextRowInObjects
public boolean hasNextRowInObjects() throws java.io.IOExceptionDescription copied from interface:IUDFInputDataSetWhether the data set has next row.- Specified by:
hasNextRowInObjectsin interfaceIUDFInputDataSet- Throws:
java.io.IOException
-
nextRowInObjects
public java.lang.Object[] nextRowInObjects() throws java.io.IOExceptionDescription copied from interface:IUDFInputDataSetGet the next row for UDFPlan input.The last element in the row is the timestamp.
- Specified by:
nextRowInObjectsin interfaceIUDFInputDataSet- Throws:
java.io.IOException
-
-