Interface RecordReader<P>

    • Method Detail

      • open

        default void open()
                   throws java.lang.Exception
        Open the reader.
        Throws:
        java.lang.Exception - if an error occurs during reader opening
      • readRecord

        Record<P> readRecord()
                      throws java.lang.Exception
        Read next record from the data source.
        Returns:
        the next record from the data source or null if the end of the data source is reached
        Throws:
        java.lang.Exception - if an error occurs during reading next record
      • close

        default void close()
                    throws java.lang.Exception
        Close the reader.
        Throws:
        java.lang.Exception - if an error occurs during reader closing