Class IoTDBSource<T>

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.flink.api.common.functions.Function, org.apache.flink.api.common.functions.RichFunction, org.apache.flink.streaming.api.functions.source.SourceFunction<T>

    public abstract class IoTDBSource<T>
    extends org.apache.flink.streaming.api.functions.source.RichSourceFunction<T>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.flink.streaming.api.functions.source.SourceFunction

        org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel()  
      void close()  
      abstract T convert​(org.apache.iotdb.tsfile.read.common.RowRecord rowRecord)
      Convert raw data (in form of RowRecord) extracted from IoTDB to user-defined data type
      void open​(org.apache.flink.configuration.Configuration parameters)  
      void run​(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> sourceContext)  
      • Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction

        getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • open

        public void open​(org.apache.flink.configuration.Configuration parameters)
                  throws java.lang.Exception
        Specified by:
        open in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        open in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        java.lang.Exception
      • convert

        public abstract T convert​(org.apache.iotdb.tsfile.read.common.RowRecord rowRecord)
        Convert raw data (in form of RowRecord) extracted from IoTDB to user-defined data type
        Parameters:
        rowRecord - row record from IoTDB
        Returns:
        object in user-defined form
      • run

        public void run​(org.apache.flink.streaming.api.functions.source.SourceFunction.SourceContext<T> sourceContext)
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • cancel

        public void cancel()
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface org.apache.flink.api.common.functions.RichFunction
        Overrides:
        close in class org.apache.flink.api.common.functions.AbstractRichFunction
        Throws:
        java.lang.Exception