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 Summary
FieldsModifier and TypeFieldDescriptionTransient variable to make case insensitive lookups quickprotected QualityCode[][] -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDataset(List<String> columnNames, List<Class<?>> columnTypes) AbstractDataset(List<String> columnNames, List<Class<?>> columnTypes, QualityCode[][] qualityCodes) -
Method Summary
Modifier 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()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.Dataset
binarySearch, getColumnAsList, getRowCount, getValueAt
-
Field Details
-
columnNames
-
_columnNamesLowercase
Transient variable to make case insensitive lookups quick -
columnTypes
-
qualityCodes
-
-
Constructor Details
-
AbstractDataset
-
AbstractDataset
public AbstractDataset(List<String> columnNames, List<Class<?>> columnTypes, QualityCode[][] qualityCodes)
-
-
Method Details
-
getColumnIndex
Returns the index of the given column, case-insensitive- Specified by:
getColumnIndexin interfaceDataset- Parameters:
colName- the name of the column to look upw- Returns:
- the index of the column
- Throws:
ArrayIndexOutOfBoundsException- if the column doesn't exist
-
getColumnCount
public int getColumnCount()Description copied from interface:DatasetReturns the number of columns.- Specified by:
getColumnCountin interfaceDataset
-
getColumnNames
Description copied from interface:DatasetReturns an unmodifiable list of this dataset's column names, in order.- Specified by:
getColumnNamesin interfaceDataset
-
getColumnName
Description copied from interface:DatasetReturns the name of the given column.- Specified by:
getColumnNamein interfaceDataset
-
getColumnTypes
Description copied from interface:DatasetReturns an unmodifiable list of this dataset's column types, in order.- Specified by:
getColumnTypesin interfaceDataset
-
getColumnType
Description copied from interface:DatasetReturns the type of the given column.- Specified by:
getColumnTypein interfaceDataset
-
setColumnNames
-
setColumnTypes
-
setDirty
protected void setDirty() -
getPrimitiveValueAt
public 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 interfaceDataset
-
getValueAt
Returns the value at the given row and at a column named colName. Column name matching is case insensitive.- Specified by:
getValueAtin interfaceDataset
-
getQualityAt
Description copied from interface:DatasetReturns the quality of the value at the given location.- Specified by:
getQualityAtin interfaceDataset
-
hasQualityData
public 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 interfaceDataset- See Also:
-
getBulkQualityCodes
-
getAsXML
Deprecated.Returns the data of the dataset as a Base64-encoded zipped XML string -
toString
-
convertToQualityCodes
-