java.lang.Object
com.inductiveautomation.ignition.common.AbstractDataset
com.inductiveautomation.factorypmi.plugins.reporting.components.columnselector.ColumnFilteredDataSet
All Implemented Interfaces:
Dataset, Serializable

public class ColumnFilteredDataSet extends AbstractDataset
A DataSet which is essentially a view on a underlying DataSet. This view filters out columns which are unneccesary.
See Also:
  • Constructor Details

    • ColumnFilteredDataSet

      public ColumnFilteredDataSet()
    • ColumnFilteredDataSet

      public ColumnFilteredDataSet(Dataset input, Set<String> filteredColumns)
  • Method Details

    • setInput

      public void setInput(Dataset input)
    • setColumnNameTranslations

      public void setColumnNameTranslations(Map<String,String> columnNameTranslations)
    • getInput

      public Dataset getInput()
    • setFilteredColumns

      public void setFilteredColumns(Set<String> cols)
    • getFilteredColumns

      public Set<String> getFilteredColumns()
    • setColumnFiltered

      public void setColumnFiltered(String column, boolean filter)
    • binarySearch

      public int binarySearch(int column, Object key)
      Description copied from interface: Dataset
      Performs a binary search on the specified column, looking for the specified key. Column MUST be sorted in ascending order. Dataset provides an inefficient default implementation of binary search that allocates a new array list for the entire column.
      Returns:
      index of the search key, if it is contained in the list; otherwise, (-(insertion point) - 1). The insertion point is defined as the point at which the key would be inserted into the list: the index of the first element greater than the key, or list.size(), if all elements in the list are less than the specified key. Note that this guarantees the return value will be greater than or equal to 0, but only if the key is found.
    • getColumnCount

      public int getColumnCount()
      Description copied from interface: Dataset
      Returns the number of columns.
      Specified by:
      getColumnCount in interface Dataset
      Overrides:
      getColumnCount in class AbstractDataset
    • getColumnName

      public String getColumnName(int col)
      Description copied from interface: Dataset
      Returns the name of the given column.
      Specified by:
      getColumnName in interface Dataset
      Overrides:
      getColumnName in class AbstractDataset
    • getColumnType

      public Class<?> getColumnType(int col)
      Description copied from interface: Dataset
      Returns the type of the given column.
      Specified by:
      getColumnType in interface Dataset
      Overrides:
      getColumnType in class AbstractDataset
    • getPrimitiveValueAt

      public double getPrimitiveValueAt(int row, int col)
      Description copied from class: AbstractDataset
      If the given column is a numeric type or a Date, then the value will be returned as a double. The Chart uses this functionality to provide a seamless interface with the optimized dataset.
      Specified by:
      getPrimitiveValueAt in interface Dataset
      Overrides:
      getPrimitiveValueAt in class AbstractDataset
    • getRowCount

      public int getRowCount()
      Description copied from interface: Dataset
      Return the number of rows in this dataset
    • getValueAt

      public Object getValueAt(int row, int col)
      Description copied from interface: Dataset
      Returns the value in the dataset at the given location.
    • getValueAt

      public Object getValueAt(int row, String colName)
      Description copied from class: AbstractDataset
      Returns the value at the given row and at a column named colName. Column name matching is case insensitive.
      Specified by:
      getValueAt in interface Dataset
      Overrides:
      getValueAt in class AbstractDataset
    • toString

      public String toString()
      Overrides:
      toString in class AbstractDataset