Package io.deephaven.plot.datasets.data
Class IndexableDataSwappableTable<T>
java.lang.Object
io.deephaven.plot.datasets.data.IndexableData<T>
io.deephaven.plot.datasets.data.LiveIndexableData<T>
io.deephaven.plot.datasets.data.IndexableDataSwappableTable<T>
- All Implemented Interfaces:
PlotExceptionCause,Serializable
- Direct Known Subclasses:
IndexableDataSwappableTableDouble
IndexableData dataset whose data is a column in a SwappableTable and whose indices are the row
numbers of the column.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndexableDataSwappableTable(SwappableTable swappableTable, String column, PlotInfo plotInfo) Creates an IndexableDataSwappableTable instance. -
Method Summary
Methods inherited from class io.deephaven.plot.datasets.data.IndexableData
getPlotInfo
-
Constructor Details
-
IndexableDataSwappableTable
Creates an IndexableDataSwappableTable instance. The data is acolumnin theswappableTable. Indices are the row numbers of the column.- Parameters:
swappableTable- swappable tablecolumn- column ofswappableTableholding the data valuesplotInfo- plot information- Throws:
RequirementFailure-swappableTableandcolumnmust not be nullIllegalArgumentException-columnmust be a column inswappableTable
-
-
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- value in the column- Returns:
- value in the column converted to return type of the provider
-