java.lang.Object
com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.AbstractFilter
com.inductiveautomation.factorypmi.plugins.reporting.components.rowselector.DiscreteFilter
All Implemented Interfaces:
Filter

public class DiscreteFilter extends AbstractFilter
  • Constructor Details

    • DiscreteFilter

      public DiscreteFilter()
  • Method Details

    • classifyObject

      public Comparable classifyObject(Object obj)
      Specified by:
      classifyObject in class AbstractFilter
    • getDistributionEstimate

      public int getDistributionEstimate()
      Description copied from interface: Filter
      Given an evenly distributed dataset, how many different classification keys should be expected from this Filter? For instance, a Month filter would return 12, a Day-of-week filter would return 7, while a Year filter would simply return some guess. This isn't critical, it is used to try and give arrays reasonable initial sizes so they don't have to re-allocate frequently.
    • copyFilter

      public Filter copyFilter()
      Description copied from interface: Filter
      Creates a copy of this filter. Used for the customizer
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • invalidateCache

      public void invalidateCache()
      Description copied from interface: Filter
      Called when the dataset being passed to classify has changed. This is used for Filters who do some work up front on the DataSet the first time classify is called, such as calculating the column index that they are working on.
      Specified by:
      invalidateCache in interface Filter
      Overrides:
      invalidateCache in class AbstractFilter
    • getFormatString

      public String getFormatString()
    • setFormatString

      public void setFormatString(String formatString)