Class IndexableNumericDataArrayLong
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableNumericData
com.illumon.iris.db.plot.datasets.data.IndexableNumericDataArrayLong
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
public class IndexableNumericDataArrayLong extends IndexableNumericData
IndexableNumericData
dataset backed by an array of longs.
When accessed, data values are converted to doubles before being returned.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableNumericDataArrayLong(long[] data, PlotInfo plotInfo)
Creates an IndexableNumericDataArrayLong instance. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableNumericData
doubleIterator, getPlotInfo, getRange, onClose, stream
-
Constructor Details
-
IndexableNumericDataArrayLong
Creates an IndexableNumericDataArrayLong instance.- Parameters:
data
- dataplotInfo
- plot information- Throws:
com.fishlib.base.verify.RequirementFailure
-data
must not be null
-
-
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
-