Package de.gematik.combine.filter
Enum FilterOrder
- java.lang.Object
-
- java.lang.Enum<FilterOrder>
-
- de.gematik.combine.filter.FilterOrder
-
- All Implemented Interfaces:
Serializable,Comparable<FilterOrder>
public enum FilterOrder extends Enum<FilterOrder>
Defines a sorting order forTableFilterimplementations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISTINCT_COLUMNThe DistinctColumnFilter operates on the whole table and can interfere with other filters.DOUBLE_LINEUPThe DoubleLineupFilter operates on the whole table and can interfere with other filters.MAX_ROWSThe MaxRowFilter cuts the table after a defined number of rows and does not evaluate any other properties.MAX_SAME_VALUE_COLUMN_PROPERTYThe MaxSameColumnPropertyFilter operates on the whole table and can interfere with other filters.ROW_ONLYFilters that operate only on rows do not interfere with other filters.SHUFFLEShuffling should be applied before all filters that operate on the whole table.
-
Field Summary
Fields Modifier and Type Field Description intorderKey
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilterOrdergetFilterOrderFor(TableFilter tableFilter)Set<Class<? extends TableFilter>>getFilters()intgetOrderKey()static FilterOrdervalueOf(String name)Returns the enum constant of this type with the specified name.static FilterOrder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ROW_ONLY
public static final FilterOrder ROW_ONLY
Filters that operate only on rows do not interfere with other filters. Therefore, they can be applied early in filtering.
-
SHUFFLE
public static final FilterOrder SHUFFLE
Shuffling should be applied before all filters that operate on the whole table.
-
MAX_SAME_VALUE_COLUMN_PROPERTY
public static final FilterOrder 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
public static final FilterOrder 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
public static final FilterOrder 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
public static final FilterOrder 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.
-
-
Method Detail
-
values
public static FilterOrder[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FilterOrder c : FilterOrder.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FilterOrder valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getFilterOrderFor
public static FilterOrder getFilterOrderFor(TableFilter tableFilter)
-
getOrderKey
public int getOrderKey()
-
getFilters
public Set<Class<? extends TableFilter>> getFilters()
-
-