Class AbstractDataset
java.lang.Object
com.inductiveautomation.ignition.common.AbstractDataset
- All Implemented Interfaces:
- Dataset,- Serializable
- Direct Known Subclasses:
- BasicDataset,- BasicStreamingDataset,- ColumnFilteredDataSet,- OptimizedDataSet
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionTransient variable to make case insensitive lookups quickprotected QualityCode[][]
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractDataset(List<String> columnNames, List<Class<?>> columnTypes) AbstractDataset(List<String> columnNames, List<Class<?>> columnTypes, QualityCode[][] qualityCodes) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected static QualityCode[][]convertToQualityCodes(DataQuality[][] dataQualities) getAsXML()Deprecated.QualityCode[][]intReturns the number of columns.intgetColumnIndex(String colName) 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.getValueAt(int row, String colName) Returns the value at the given row and at a column named colName.booleanWhether this dataset has any quality data to report.protected voidsetColumnNames(List<String> list) protected voidsetColumnTypes(List<Class<?>> list) protected voidsetDirty()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.DatasetbinarySearch, getColumnAsList, getRowCount, getValueAt
- 
Field Details- 
columnNames
- 
_columnNamesLowercaseTransient variable to make case insensitive lookups quick
- 
columnTypes
- 
qualityCodes
 
- 
- 
Constructor Details- 
AbstractDataset
- 
AbstractDatasetpublic AbstractDataset(List<String> columnNames, List<Class<?>> columnTypes, QualityCode[][] qualityCodes) 
 
- 
- 
Method Details- 
getColumnIndexReturns the index of the given column, case-insensitive- Specified by:
- getColumnIndexin interface- Dataset
- Parameters:
- colName- the name of the column to look upw
- Returns:
- the index of the column
- Throws:
- ArrayIndexOutOfBoundsException- if the column doesn't exist
 
- 
getColumnCountpublic int getColumnCount()Description copied from interface:DatasetReturns the number of columns.- Specified by:
- getColumnCountin interface- Dataset
 
- 
getColumnNamesDescription copied from interface:DatasetReturns an unmodifiable list of this dataset's column names, in order.- Specified by:
- getColumnNamesin interface- Dataset
 
- 
getColumnNameDescription copied from interface:DatasetReturns the name of the given column.- Specified by:
- getColumnNamein interface- Dataset
 
- 
getColumnTypesDescription copied from interface:DatasetReturns an unmodifiable list of this dataset's column types, in order.- Specified by:
- getColumnTypesin interface- Dataset
 
- 
getColumnTypeDescription copied from interface:DatasetReturns the type of the given column.- Specified by:
- getColumnTypein interface- Dataset
 
- 
setColumnNames
- 
setColumnTypes
- 
setDirtyprotected void setDirty()
- 
getPrimitiveValueAtpublic 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. The Chart uses this functionality to provide a seamless interface with the optimized dataset.- Specified by:
- getPrimitiveValueAtin interface- Dataset
 
- 
getValueAtReturns 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
 
- 
hasQualityDatapublic boolean hasQualityData()Description copied from interface:DatasetWhether this dataset has any quality data to report. If false, getQualityAt is expected to returnQualityCode.Good.- Specified by:
- hasQualityDatain interface- Dataset
- See Also:
 
- 
getBulkQualityCodes
- 
getAsXMLDeprecated.Returns the data of the dataset as a Base64-encoded zipped XML string
- 
convertToQualityCodes
 
-