Package de.gematik.combine.filter
Enum Class FilterOrder
- All Implemented Interfaces:
Serializable,Comparable<FilterOrder>,Constable
Defines a sorting order for
TableFilter implementations.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe DistinctColumnFilter operates on the whole table and can interfere with other filters.The DoubleLineupFilter operates on the whole table and can interfere with other filters.The MaxRowFilter cuts the table after a defined number of rows and does not evaluate any other properties.The MaxSameColumnPropertyFilter operates on the whole table and can interfere with other filters.Filters that operate only on rows do not interfere with other filters.Shuffling should be applied before all filters that operate on the whole table. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FilterOrdergetFilterOrderFor(TableFilter tableFilter) Set<Class<? extends TableFilter>>intstatic FilterOrderReturns the enum constant of this class with the specified name.static FilterOrder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROW_ONLY
Filters that operate only on rows do not interfere with other filters. Therefore, they can be applied early in filtering. -
SHUFFLE
Shuffling should be applied before all filters that operate on the whole table. -
MAX_SAME_VALUE_COLUMN_PROPERTY
The MaxSameColumnPropertyFilter operates on the whole table and can interfere with other filters. It can filter out rows that would not be filtered if MaxSameColumnPropertyFilter is applied later. Therefore, the MaxSameColumnPropertyFilter should be applied late in filtering process. -
DISTINCT_COLUMN
The DistinctColumnFilter operates on the whole table and can interfere with other filters. It can filter out rows that would not be filtered if DistinctColumnFilter is applied later. Therefore, the DistinctColumnFilter should be applied late in filtering process. -
DOUBLE_LINEUP
The DoubleLineupFilter operates on the whole table and can interfere with other filters. It can filter out rows that would not be filtered if DoubleLineupFilter is applied later. Therefore, the DoubleLineupFilter should be applied late in filtering process. -
MAX_ROWS
The MaxRowFilter cuts the table after a defined number of rows and does not evaluate any other properties. Therefore, the MaxRowFilter should be applied as last filter.
-
-
Field Details
-
orderKey
public final int orderKey
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFilterOrderFor
-
getOrderKey
public int getOrderKey() -
getFilters
-