Class AbstractDataset

    • Field Detail

      • columnNames

        protected java.util.List<java.lang.String> columnNames
      • _columnNamesLowercase

        protected java.util.List<java.lang.String> _columnNamesLowercase
        Transient variable to make case insensitive lookups quick
      • columnTypes

        protected java.util.List<java.lang.Class<?>> columnTypes
    • Constructor Detail

      • AbstractDataset

        public AbstractDataset​(java.util.List<java.lang.String> columnNames,
                               java.util.List<java.lang.Class<?>> columnTypes)
      • AbstractDataset

        public AbstractDataset​(java.util.List<java.lang.String> columnNames,
                               java.util.List<java.lang.Class<?>> columnTypes,
                               QualityCode[][] qualityCodes)
    • Method Detail

      • getColumnIndex

        public int getColumnIndex​(java.lang.String colName)
        Returns the index of the given column, case insensitive
        Specified by:
        getColumnIndex in interface Dataset
        Parameters:
        colName - the name of the column to look upw
        Returns:
        the index of the column
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - if the column doesn't exist
      • getColumnCount

        public int getColumnCount()
        Description copied from interface: Dataset
        Returns the number of columns.
        Specified by:
        getColumnCount in interface Dataset
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
        Description copied from interface: Dataset
        Returns an unmodifiable list of this dataset's column names, in order.
        Specified by:
        getColumnNames in interface Dataset
      • getColumnName

        public java.lang.String getColumnName​(int col)
        Description copied from interface: Dataset
        Returns the name of the given column.
        Specified by:
        getColumnName in interface Dataset
      • getColumnTypes

        public java.util.List<java.lang.Class<?>> getColumnTypes()
        Description copied from interface: Dataset
        Returns an unmodifiable list of this dataset's column types, in order.
        Specified by:
        getColumnTypes in interface Dataset
      • getColumnType

        public java.lang.Class<?> getColumnType​(int col)
        Description copied from interface: Dataset
        Returns the type of the given column.
        Specified by:
        getColumnType in interface Dataset
      • setColumnNames

        protected void setColumnNames​(java.util.List<java.lang.String> list)
      • setColumnTypes

        protected void setColumnTypes​(java.util.List<java.lang.Class<?>> list)
      • 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:
        getPrimitiveValueAt in interface Dataset
      • getValueAt

        public java.lang.Object getValueAt​(int row,
                                           java.lang.String colName)
        Returns the value at the given row and at a column named colName. Column name matching is case insensitive.
        Specified by:
        getValueAt in interface Dataset
      • getQualityAt

        public QualityCode getQualityAt​(int row,
                                        int col)
        Description copied from interface: Dataset
        Returns the quality of the value at the given location.
        Specified by:
        getQualityAt in interface Dataset
      • getBulkQualityCodes

        public QualityCode[][] getBulkQualityCodes()
      • getAsXML

        @Deprecated
        public java.lang.String getAsXML()
        Deprecated.
        Returns the data of the dataset as a Base64-encoded zipped XML string
      • convertToQualityCodes

        protected static QualityCode[][] convertToQualityCodes​(DataQuality[][] dataQualities)