Enum Class FilterOrder

java.lang.Object
java.lang.Enum<FilterOrder>
de.gematik.combine.filter.FilterOrder
All Implemented Interfaces:
Serializable, Comparable<FilterOrder>, Constable

public enum FilterOrder extends Enum<FilterOrder>
Defines a sorting order for TableFilter implementations.
  • Enum Constant Details

    • 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.
  • Field Details

    • orderKey

      public final int orderKey
  • Method Details

    • values

      public static FilterOrder[] 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

      public static FilterOrder valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFilterOrderFor

      public static FilterOrder getFilterOrderFor(TableFilter tableFilter)
    • getOrderKey

      public int getOrderKey()
    • getFilters

      public Set<Class<? extends TableFilter>> getFilters()