Class ColumnFilteredDataSet
java.lang.Object
com.inductiveautomation.ignition.common.AbstractDataset
com.inductiveautomation.factorypmi.plugins.reporting.components.columnselector.ColumnFilteredDataSet
- All Implemented Interfaces:
Dataset
,Serializable
A DataSet which is essentially a view on a underlying DataSet. This view filters out columns which are unneccesary.
- See Also:
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.common.AbstractDataset
_columnNamesLowercase, columnNames, columnTypes, qualityCodes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
binarySearch
(int column, Object key) Performs a binary search on the specified column, looking for the specified key.int
Returns the number of columns.getColumnName
(int col) Returns the name of the given column.Class<?>
getColumnType
(int col) Returns the type of the given column.getInput()
double
getPrimitiveValueAt
(int row, int col) If the given column is a numeric type or a Date, then the value will be returned as a double.int
Return the number of rows in this datasetgetValueAt
(int row, int col) Returns the value in the dataset at the given location.getValueAt
(int row, String colName) Returns the value at the given row and at a column named colName.void
setColumnFiltered
(String column, boolean filter) void
setColumnNameTranslations
(Map<String, String> columnNameTranslations) void
setFilteredColumns
(Set<String> cols) void
toString()
Methods inherited from class com.inductiveautomation.ignition.common.AbstractDataset
convertToQualityCodes, getAsXML, getBulkQualityCodes, getColumnIndex, getColumnNames, getColumnTypes, getQualityAt, hasQualityData, setColumnNames, setColumnTypes, setDirty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.inductiveautomation.ignition.common.Dataset
getColumnAsList
-
Constructor Details
-
ColumnFilteredDataSet
public ColumnFilteredDataSet() -
ColumnFilteredDataSet
-
-
Method Details
-
setInput
-
setColumnNameTranslations
-
getInput
-
setFilteredColumns
-
getFilteredColumns
-
setColumnFiltered
-
binarySearch
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 interfaceDataset
- Overrides:
getColumnCount
in classAbstractDataset
-
getColumnName
Description copied from interface:Dataset
Returns the name of the given column.- Specified by:
getColumnName
in interfaceDataset
- Overrides:
getColumnName
in classAbstractDataset
-
getColumnType
Description copied from interface:Dataset
Returns the type of the given column.- Specified by:
getColumnType
in interfaceDataset
- Overrides:
getColumnType
in classAbstractDataset
-
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 interfaceDataset
- Overrides:
getPrimitiveValueAt
in classAbstractDataset
-
getRowCount
public int getRowCount()Description copied from interface:Dataset
Return the number of rows in this dataset -
getValueAt
Description copied from interface:Dataset
Returns the value in the dataset at the given location. -
getValueAt
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 interfaceDataset
- Overrides:
getValueAt
in classAbstractDataset
-
toString
- Overrides:
toString
in classAbstractDataset
-