Class 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).
      boolean hasNextRowInObjects()
      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
    • Constructor Detail

      • UDFInputDataSet

        public UDFInputDataSet​(org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet dataSet,
                               java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes)
    • Method Detail

      • getDataTypes

        public java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> getDataTypes()
        Description copied from interface: IUDFInputDataSet
        returns the input data types, except the timestamp column(the last column).
        Specified by:
        getDataTypes in interface IUDFInputDataSet
      • hasNextRowInObjects

        public boolean hasNextRowInObjects()
                                    throws java.io.IOException
        Description copied from interface: IUDFInputDataSet
        Whether the data set has next row.
        Specified by:
        hasNextRowInObjects in interface IUDFInputDataSet
        Throws:
        java.io.IOException
      • nextRowInObjects

        public java.lang.Object[] nextRowInObjects()
                                            throws java.io.IOException
        Description copied from interface: IUDFInputDataSet
        Get the next row for UDFPlan input.

        The last element in the row is the timestamp.

        Specified by:
        nextRowInObjects in interface IUDFInputDataSet
        Throws:
        java.io.IOException