Class PackMower

    • Constructor Detail

      • PackMower

        public PackMower​(@NotNull
                         int[] fieldLimits,
                         @NotNull
                         Charset truncateCharset,
                         boolean truncateInBytes,
                         @NotNull
                         Logger truncationLogger)
    • Method Detail

      • preprocessRow

        public boolean preprocessRow​(@NotNull
                                     String csvFileName,
                                     @NotNull
                                     Object[] row,
                                     int rowNum)
        Description copied from interface: CSVRowPreprocessor
        Applied to data read from CSV file. Can modify row or skip it completely. To skip row processor should return false.
        Specified by:
        preprocessRow in interface CSVRowPreprocessor
        Parameters:
        csvFileName - CSV file name
        row - row from the CSV file
        rowNum - row number in the CSV file
        Returns:
        true if row should be preserved and false if it should be filtered out