Package io.deephaven.plot.datasets.data
Class IndexableNumericDataSwappableTable
java.lang.Object
io.deephaven.plot.datasets.data.IndexableNumericData
io.deephaven.plot.datasets.data.LiveIndexableNumericData
io.deephaven.plot.datasets.data.IndexableNumericDataSwappableTable
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
IndexableData
dataset whose data is a column in a SwappableTable
and whose indices are the row
numbers of the column.
The column must be numeric.- See Also:
-
Constructor Summary
ConstructorDescriptionIndexableNumericDataSwappableTable
(SwappableTable swappableTable, String column, PlotInfo plotInfo) Creates an IndexableNumericDataSwappableTable instance. -
Method Summary
Methods inherited from class io.deephaven.plot.datasets.data.IndexableNumericData
doubleIterator, getPlotInfo, stream
-
Constructor Details
-
IndexableNumericDataSwappableTable
public IndexableNumericDataSwappableTable(SwappableTable swappableTable, String column, PlotInfo plotInfo) Creates an IndexableNumericDataSwappableTable instance. The numeric 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:
RequirementFailure
-swappableTable
andcolumn
must not be nullIllegalArgumentException
-column
must be a column inswappableTable
RuntimeException
-column
must be numeric
-
-
Method Details
-
size
public int size()Description copied from class:IndexableNumericData
Gets the size of this dataset.- Specified by:
size
in classIndexableNumericData
- Returns:
- size of this dataset
-
get
public double get(int i) Description copied from class:IndexableNumericData
Gets the value at the specifiedindex
as a double.- Specified by:
get
in classIndexableNumericData
- Parameters:
i
- index- Returns:
- value at
index
as a double
-
getSwappableTable
-
getColumn
-