Class IndexableDataSwappableTableDouble
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableData<T>
com.illumon.iris.db.plot.datasets.data.LiveIndexableData<T>
com.illumon.iris.db.plot.datasets.data.IndexableDataSwappableTable<Double>
com.illumon.iris.db.plot.datasets.data.IndexableDataSwappableTableDouble
- All Implemented Interfaces:
PlotExceptionCause
,SwappableTable.LocalTableUpdateListener
,Serializable
public class IndexableDataSwappableTableDouble extends IndexableDataSwappableTable<Double>
IndexableData
dataset whose data is a column in a SwappableTable
and whose indices are the row numbers of the column.
Data values are converted to doubles.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableDataSwappableTableDouble(SwappableTable swappableTable, String column, PlotInfo plotInfo)
Creates an IndexableDataSwappableTable instance. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableDataSwappableTable
get, onClose, onLocalTableUpdate, size, snapshot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.plot.util.tables.SwappableTable.LocalTableUpdateListener
onInitialSnapshot
-
Constructor Details
-
IndexableDataSwappableTableDouble
public IndexableDataSwappableTableDouble(SwappableTable swappableTable, String column, PlotInfo plotInfo)Creates an IndexableDataSwappableTable instance. The data is acolumn
in theswappableTable
. Indices are the row numbers of the column.- Parameters:
swappableTable
- swappable tablecolumn
- column ofswappableTable
holding the data valuesplotInfo
- plot information- Throws:
com.fishlib.base.verify.RequirementFailure
-swappableTable
andcolumn
must not be nullIllegalArgumentException
-column
must be a column inswappableTable
RuntimeException
- data incolumn
must be numeric
-
-
Method Details
-
convert
Description copied from class:IndexableDataSwappableTable
Converts between the value in the column and the return value of the provider.- Overrides:
convert
in classIndexableDataSwappableTable<Double>
- Parameters:
v
- value in the column- Returns:
- value in the column converted to return type of the provider
-