code: public static <E extends Exception> long importCSV(final File file, final long offset, final long count, final Try.Predicate<String[], E> filter,
              final PreparedStatement stmt, final int batchSize, final int batchInterval,
              final Try.BiConsumer<? super PreparedStatement, ? super String[], SQLException> stmtSetter) throws UncheckedSQLException, UncheckedIOException, E {
          Reader reader = null;
  
          try {
              reader = new FileReader(file);
  
              return importCSV(reader, offset, count, filter, stmt, batchSize, batchInterval, stmtSetter);
          } catch (IOException e) {
              throw new UncheckedIOException(e);
          } finally {
              IOUtil.close(reader);
          }
      }
docs: Imports the data from CSV to database.
  
  @param file
  @param offset
  @param count
  @param filter
  @param stmt the column order in the sql should be consistent with the column order in the CSV file.
  @param batchSize
  @param batchInterval
  @param stmtSetter
  @return