Class IndexableDataTable<T>
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.IndexableDataTable<T>
- All Implemented Interfaces:
PlotExceptionCause,Serializable
public class IndexableDataTable<T> extends LiveIndexableData<T>
IndexableData dataset whose data is a column in a table
and whose indices are the row numbers of the column.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableDataTable(ColumnHandlerFactory.ColumnHandler columnHandler, PlotInfo plotInfo)Creates an IndexableDataTable instance. -
Method Summary
Modifier and Type Method Description Tconvert(Object v)Converts between the value in the column and the return value of the provider.Tget(int index)Gets the value at the given index.voidonClose()Tear down once a figure is removed.intsize()Gets the size of this dataset.IndexableData<T>snapshot()
-
Constructor Details
-
IndexableDataTable
Creates an IndexableDataTable instance.- Parameters:
columnHandler- dataplotInfo- plot information- Throws:
com.fishlib.base.verify.RequirementFailure-columnHandlermust not be null
-
-
Method Details
-
size
public int size()Description copied from class:IndexableDataGets the size of this dataset.- Specified by:
sizein classIndexableData<T>- Returns:
- the size of this dataset
-
get
Description copied from class:IndexableDataGets the value at the given index.- Specified by:
getin classIndexableData<T>- Parameters:
index- index- Returns:
- value of this dataset at
index
-
convert
Converts between the value in the column and the return value of the provider.- Parameters:
v- raw value from the column- Returns:
- raw value converted into the desired data value
-
onClose
public void onClose()Description copied from class:IndexableDataTear down once a figure is removed.- Overrides:
onClosein classIndexableData<T>
-
snapshot
- Specified by:
snapshotin classLiveIndexableData<T>
-