Interface ICsvInputAwareImportProgressDialog


  • public interface ICsvInputAwareImportProgressDialog
    A common interface for progress dialogs that import csv data.
    • Method Detail

      • open

        String open​(boolean failOnParseError)
      • getStringFromRow

        default String getStringFromRow​(IRowMeta rowMeta,
                                        Object[] row,
                                        int index,
                                        boolean failOnParseError)
                                 throws HopException
        When failOnParseError is set to false, returns the String value from RowMeta at the given index, or directly from the row object, if there is a problem fetching the value from RowMeta. When failOnParseError is true, any Exception thrown by the call to RowMeta.getString(Object[], int) is reported back to the caller.
        Parameters:
        rowMeta - an instance of IRowMeta
        row - an Object array containing row data
        index - the index representing the column in a row
        failOnParseError - when true, Exceptions are reported back to the called, when false, exceptions are ignored and a null value is returned
        Returns:
        the row value at the given index
        Throws:
        HopException