Class IndexableNumericData
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableNumericData
- All Implemented Interfaces:
PlotExceptionCause,Serializable
- Direct Known Subclasses:
IndexableNumericDataArrayDate,IndexableNumericDataArrayDBDateTime,IndexableNumericDataArrayDouble,IndexableNumericDataArrayFloat,IndexableNumericDataArrayInt,IndexableNumericDataArrayLong,IndexableNumericDataArrayNumber,IndexableNumericDataArrayShort,IndexableNumericDataListNumber,LiveIndexableNumericData
public abstract class IndexableNumericData
extends Object
implements PlotExceptionCause, Serializable
Dataset with indexed numeric values.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the iterator over this dataset.abstract doubleget(int index) Gets the value at the specifiedindexas a double.org.jfree.data.RangegetRange()Gets the range of values.voidonClose()Tear down once a figure is removed.abstract intsize()Gets the size of this dataset.stream()Gets the values of this dataset as a stream of doubles.
-
Constructor Details
-
IndexableNumericData
- Parameters:
plotInfo- plot information
-
-
Method Details
-
getPlotInfo
- Specified by:
getPlotInfoin interfacePlotExceptionCause
-
size
public abstract int size()Gets the size of this dataset.- Returns:
- size of this dataset
-
get
public abstract double get(int index) Gets the value at the specifiedindexas a double.- Parameters:
index- index- Returns:
- value at
indexas a double
-
getRange
public org.jfree.data.Range getRange()Gets the range of values. Default implementation assumes array backed data. Should be overridden for Table backed data.- Returns:
- range of values
-
doubleIterator
Gets the iterator over this dataset.- Returns:
- dataset iterator
-
stream
Gets the values of this dataset as a stream of doubles.- Returns:
- stream of this dataset's values as doubles
-
onClose
public void onClose()Tear down once a figure is removed.
-