Class OptimizedDataSet
java.lang.Object
com.inductiveautomation.ignition.common.AbstractDataset
com.inductiveautomation.ignition.client.gateway_interface.OptimizedDataSet
- All Implemented Interfaces:
- Dataset,- Serializable
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Object[]protected static org.apache.log4j.Loggerprotected static XMLReaderPoolXML Reader pool used for deserializing xml serialized dataFields inherited from class com.inductiveautomation.ignition.common.AbstractDataset_columnNamesLowercase, columnNames, columnTypes, qualityCodes
- 
Constructor SummaryConstructorsConstructorDescriptionNote: This constructor is used for serialization (see DataSetPersistenceDelegate)OptimizedDataSet(List<String> columnNames, List<Class<?>> columnTypes, Object[] columns, QualityCode[][] quality) OptimizedDataSet(List<String> columnNames, List<Class<?>> columnTypes, Object[] columns, DataQuality[][] dataQualities) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionintbinarySearch(int column, Object searchFor) Performs a binary search on the specified column, looking for the specified key.byte[]getByteColumn(int col) Returns a primitive column.Object[]double[]getDoubleColumn(int col) Returns a primitive column.float[]getFloatColumn(int col) Returns a primitive column.int[]getIntColumn(int col) Returns a primitive column.long[]getLongColumn(int col) Returns a primitive column.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.intReturn the number of rows in this datasetshort[]getShortColumn(int col) Returns a primitive column.getValueAt(int row, int col) Returns the value in the dataset at the given location.voidtoString()Methods inherited from class com.inductiveautomation.ignition.common.AbstractDatasetconvertToQualityCodes, getAsXML, getBulkQualityCodes, getColumnCount, getColumnIndex, getColumnName, getColumnNames, getColumnType, getColumnTypes, getQualityAt, getValueAt, hasQualityData, setColumnNames, setColumnTypes, setDirtyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.DatasetgetColumnAsList
- 
Field Details- 
xmlReaderPoolXML Reader pool used for deserializing xml serialized data
- 
logprotected static org.apache.log4j.Logger log
- 
columns
 
- 
- 
Constructor Details- 
OptimizedDataSetpublic OptimizedDataSet()
- 
OptimizedDataSetNote: This constructor is used for serialization (see DataSetPersistenceDelegate)
- 
OptimizedDataSet
- 
OptimizedDataSet@Deprecated public OptimizedDataSet(List<String> columnNames, List<Class<?>> columnTypes, Object[] columns, DataQuality[][] dataQualities) Deprecated.Deprecated due to use ofDataQualitybut required for deserialization of windows from versions 7.9 and prior.
 
- 
- 
Method Details- 
setFromXML
- 
getColumns
- 
getRowCountpublic int getRowCount()Description copied from interface:DatasetReturn the number of rows in this dataset
- 
getValueAtDescription copied from interface:DatasetReturns the value in the dataset at the given location.
- 
getPrimitiveValueAtpublic double getPrimitiveValueAt(int row, int col) Description copied from class:AbstractDatasetIf 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:
- getPrimitiveValueAtin interface- Dataset
- Overrides:
- getPrimitiveValueAtin class- AbstractDataset
 
- 
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.- 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.
 
- 
getIntColumnpublic int[] getIntColumn(int col) Returns a primitive column. USE AT YOUR OWN RISK - no checking is performed to ensure data is the correct type.
- 
getDoubleColumnpublic double[] getDoubleColumn(int col) Returns a primitive column. USE AT YOUR OWN RISK - no checking is performed to ensure data is the correct type.
- 
getLongColumnpublic long[] getLongColumn(int col) Returns a primitive column. USE AT YOUR OWN RISK - no checking is performed to ensure data is the correct type.
- 
getFloatColumnpublic float[] getFloatColumn(int col) Returns a primitive column. USE AT YOUR OWN RISK - no checking is performed to ensure data is the correct type.
- 
getByteColumnpublic byte[] getByteColumn(int col) Returns a primitive column. USE AT YOUR OWN RISK - no checking is performed to ensure data is the correct type.
- 
getShortColumnpublic short[] getShortColumn(int col) Returns a primitive column. USE AT YOUR OWN RISK - no checking is performed to ensure data is the correct type.
- 
toString
 
-