java.lang.Object
de.hybris.platform.acceleratorservices.dataimport.batch.converter.impl.DefaultImpexRowFilter
All Implemented Interfaces:
ImpexRowFilter

public class DefaultImpexRowFilter extends Object implements ImpexRowFilter
Default implementation of ImpexRowFilter. This implementation uses Groovy to evaluate the given row supplied as parameter "row". The expression is treated as a boolean. For example, the evaluation if a column is blank can be written as "row[]".
  • Constructor Details

    • DefaultImpexRowFilter

      public DefaultImpexRowFilter()
  • Method Details

    • filter

      public boolean filter(Map<Integer,String> row)
      Description copied from interface: ImpexRowFilter
      Evaluate a single row and return a false, if the row should be filtered.
      Specified by:
      filter in interface ImpexRowFilter
      Parameters:
      row - CSV row containing column indexes and values
      Returns:
      false, if the row should not be converted
      See Also:
    • setExpression

      public void setExpression(String expression)
      Parameters:
      expression - the expression to set