Class StreamLoader

    • Method Detail

      • start

        public void start()
        Starts the loader
        Specified by:
        start in interface Loader
      • rollback

        public void rollback()
        Description copied from interface: Loader
        Rollback uncommitted changes. If no transaction was initialized, indeterminate fraction of rows could have been committed.
        Specified by:
        rollback in interface Loader
      • submitRow

        public void submitRow​(Object[] row)
        Description copied from interface: Loader
        Pass row data
        Specified by:
        submitRow in interface Loader
        Parameters:
        row - , must match shape of the table (requested columns, in the order provided)
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • finish

        public void finish()
                    throws Exception
        Finishes loader
        Specified by:
        finish in interface Loader
        Throws:
        Exception - an exception raised in finishing loader.
      • close

        public void close()
        Description copied from interface: Loader
        Close connections that have been provided upon initialization
        Specified by:
        close in interface Loader
      • resetOperation

        public void resetOperation​(Operation op)
        Description copied from interface: Loader
        If operation is changed, previous data is committed
        Specified by:
        resetOperation in interface Loader
        Parameters:
        op - operation will be reset