Class IndexableData<T>
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableData<T>
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
- Direct Known Subclasses:
IndexableDataArray
,IndexableDataArrayNullCategory
,IndexableDataByte
,IndexableDataCharacter
,IndexableDataDBDateTime
,IndexableDataDouble
,IndexableDataFloat
,IndexableDataInfinite
,IndexableDataInteger
,IndexableDataListNullCategory
,IndexableDataLong
,IndexableDataShort
,IndexableDataWithDefault
,LiveIndexableData
public abstract class IndexableData<T> extends Object implements Serializable, PlotExceptionCause
Dataset where values can be retrieved via an integer index.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableData(PlotInfo plotInfo)
-
Method Summary
Modifier and Type Method Description abstract T
get(int index)
Gets the value at the given index.PlotInfo
getPlotInfo()
void
onClose()
Tear down once a figure is removed.abstract int
size()
Gets the size of this dataset.IndexableData<T>
snapshot()
-
Constructor Details
-
IndexableData
- Parameters:
plotInfo
- plot information
-
-
Method Details
-
size
public abstract int size()Gets the size of this dataset.- Returns:
- the size of this dataset
-
get
Gets the value at the given index.- Parameters:
index
- index- Returns:
- value of this dataset at
index
-
onClose
public void onClose()Tear down once a figure is removed. -
snapshot
-
getPlotInfo
- Specified by:
getPlotInfo
in interfacePlotExceptionCause
-