Class MutableDataset
java.lang.Object
com.inductiveautomation.ignition.gateway.util.MutableDataset
- All Implemented Interfaces:
- Dataset,- Serializable
An implementation of Dataset that is used by gateway-side functions for returning to clients. Doesn't implement
 binarySearch, but this shouldn't be important as this class won't be re-constituted on the client side - it will get
 parsed into a BasicDataset
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMutableDataset(String[] columns, Class<?>[] types) MutableDataset(String[] columns, Class<?>[] types, int initialSize) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidintbinarySearch(int column, Object key) Performs a binary search on the specified column, looking for the specified key.intReturns the number of columns.intgetColumnIndex(String name) Returns the index of the given column, case-insensitivegetColumnName(int col) Returns the name of the given column.Returns an unmodifiable list of this dataset's column names, in order.Class<?>getColumnType(int col) Returns the type of the given column.Returns an unmodifiable list of this dataset's column types, in order.doublegetPrimitiveValueAt(int row, int col) If the given column is a numeric type or a Date, then the value will be returned as a double.getQualityAt(int row, int col) Returns the quality of the value at the given location.intReturn 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.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.DatasetgetColumnAsList, hasQualityData
- 
Constructor Details- 
MutableDataset
- 
MutableDataset
 
- 
- 
Method Details- 
addRow
- 
binarySearchDescription copied from interface:DatasetPerforms 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.- Specified by:
- binarySearchin interface- Dataset
- 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.
 
- 
getColumnCountpublic int getColumnCount()Description copied from interface:DatasetReturns the number of columns.- Specified by:
- getColumnCountin interface- Dataset
 
- 
getColumnIndexDescription copied from interface:DatasetReturns the index of the given column, case-insensitive- Specified by:
- getColumnIndexin interface- Dataset
- Parameters:
- name- the name of the column to look up
- Returns:
- the index of the column
 
- 
getColumnNameDescription copied from interface:DatasetReturns the name of the given column.- Specified by:
- getColumnNamein interface- Dataset
 
- 
getColumnNamesDescription copied from interface:DatasetReturns an unmodifiable list of this dataset's column names, in order.- Specified by:
- getColumnNamesin interface- Dataset
 
- 
getColumnTypeDescription copied from interface:DatasetReturns the type of the given column.- Specified by:
- getColumnTypein interface- Dataset
 
- 
getColumnTypesDescription copied from interface:DatasetReturns an unmodifiable list of this dataset's column types, in order.- Specified by:
- getColumnTypesin interface- Dataset
 
- 
getPrimitiveValueAtpublic double getPrimitiveValueAt(int row, int col) Description copied from interface:DatasetIf the given column is a numeric type or a Date, then the value will be returned as a double. (Charts uses this functionality to provide a seamless interface with certain optimized dataset implementations.- Specified by:
- getPrimitiveValueAtin interface- Dataset
 
- 
getRowCountpublic int getRowCount()Description copied from interface:DatasetReturn the number of rows in this dataset- Specified by:
- getRowCountin interface- Dataset
 
- 
getValueAtDescription copied from interface:DatasetReturns the value in the dataset at the given location.- Specified by:
- getValueAtin interface- Dataset
 
- 
getValueAtDescription copied from interface:DatasetReturns the value at the given row and at a column named colName. Column name matching is case insensitive.- Specified by:
- getValueAtin interface- Dataset
 
- 
getQualityAtDescription copied from interface:DatasetReturns the quality of the value at the given location.- Specified by:
- getQualityAtin interface- Dataset
 
 
-