Class AssociativeDataSwappableTable<KEY,VALUE,VALUECOLUMN>

java.lang.Object
com.illumon.iris.db.plot.datasets.data.AssociativeData<KEY,VALUE>
com.illumon.iris.db.plot.datasets.data.LiveAssociativeData<KEY,VALUE,VALUECOLUMN>
com.illumon.iris.db.plot.datasets.data.AssociativeDataSwappableTable<KEY,VALUE,VALUECOLUMN>
All Implemented Interfaces:
PlotExceptionCause, SwappableTable.LocalTableUpdateListener, Serializable

public class AssociativeDataSwappableTable<KEY,VALUE,VALUECOLUMN> extends LiveAssociativeData<KEY,VALUE,VALUECOLUMN> implements SwappableTable.LocalTableUpdateListener
An AssociativeData dataset backed by a SwappableTable. Table columns hold the keys and associated values. Data types are specified in construction.
See Also:
  • Constructor Details

    • AssociativeDataSwappableTable

      public AssociativeDataSwappableTable(DataChangeListener dataChangeListener, SwappableTable swappableTable, String keyColumn, String valueColumn, Class<KEY> keyColumnType, Class<VALUECOLUMN> valueColumnType, PlotInfo plotInfo)
      Creates an AssociativeDataSwappableTable instance. The swappableTable must have had a lastBy applied! Keys are held in the keyColumn of swappableTable. Their associated values are held in the valueColumn. The data type of the keys is specified by keyColumnType. The data type of the values is specified by valueColumnType.
      Parameters:
      dataChangeListener - listener for data changes in this series
      swappableTable - table. Must have a lastBy applied.
      keyColumn - column in swappableTable which holds the key values
      valueColumn - column in swappableTable which holds the values associated with the keys
      keyColumnType - data type of the keys
      valueColumnType - data type of the values
      plotInfo - plot information
      Throws:
      com.fishlib.base.verify.RequirementFailure - swappableTable, keyColumn, and valueColumn must not be null
      IllegalArgumentException - keyColumn and valueColumn must be columns in swappableTable
      RuntimeException - the specified data types must match the data types of the corresponding columns
  • Method Details