Class IndexableNumericDataArrayDate
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableNumericData
com.illumon.iris.db.plot.datasets.data.IndexableNumericDataArrayDate
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
public class IndexableNumericDataArrayDate extends IndexableNumericData
IndexableNumericData
dataset comprised of an array of Date
s.
Date values are accessed as nanoseconds from epoch.
Data conversion to double means these values are accurate to about 250 nanoseconds.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableNumericDataArrayDate(Date[] data, PlotInfo plotInfo)
Creates an IndexableNumericDataArrayDate instance. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableNumericData
doubleIterator, getPlotInfo, getRange, onClose, stream
-
Constructor Details
-
IndexableNumericDataArrayDate
Creates an IndexableNumericDataArrayDate 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 index)Description copied from class:IndexableNumericData
Gets the value at the specifiedindex
as a double.- Specified by:
get
in classIndexableNumericData
- Parameters:
index
- index- Returns:
- value at
index
as a double
-