Package io.keikai.range.impl
Class AdvancedFilterHelper
java.lang.Object
io.keikai.range.impl.AdvancedFilterHelper
Helper class implementing the advanced filter algorithm:
- Parse criteria range (column headers + conditions)
- Support AND (same row) and OR (different rows) criteria
- Support wildcard matching (*, ?)
- Support comparison operators (>, <, >=, <=, <>)
- Either hide non-matching rows (in-place) or copy matching rows to destination
- Since:
- 7.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapplyAdvancedFilter(SSheet sheet, CellRegion dataRange, CellRegion criteriaRange, CellRegion copyToRange, boolean unique, AdvancedFilterAction action) Applies the advanced filter to the given data range.
-
Method Details
-
applyAdvancedFilter
public static void applyAdvancedFilter(SSheet sheet, CellRegion dataRange, CellRegion criteriaRange, CellRegion copyToRange, boolean unique, AdvancedFilterAction action) Applies the advanced filter to the given data range.- Parameters:
sheet- the sheet containing the datadataRange- the data range (including header row)criteriaRange- the criteria range (header + condition rows)copyToRange- destination range for COPY_TO_ANOTHER_LOCATION; may be nullunique- if true, only include unique rowsaction- the filter action
-