Interface Loader

  • All Known Implementing Classes:
    StreamLoader

    public interface Loader
    Bulk loader for Snowflake
    • Field Detail

      • tmpdir

        static final String tmpdir
      • BASE

        static final String BASE
    • Method Detail

      • start

        void start()
        Initiates loading threads. Executes "before" statement
      • submitRow

        void submitRow​(Object[] data)
        Pass row data
        Parameters:
        data - , must match shape of the table (requested columns, in the order provided)
      • resetOperation

        void resetOperation​(Operation op)
        If operation is changed, previous data is committed
        Parameters:
        op - operation will be reset
      • rollback

        void rollback()
        Rollback uncommitted changes. If no transaction was initialized, indeterminate fraction of rows could have been committed.
      • finish

        void finish()
             throws Exception
        Finishes processing and commits or rolls back. Will throw the exception that was the cause of an abort
        Throws:
        Exception - if that was the cause of an abort
      • close

        void close()
        Close connections that have been provided upon initialization