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 Details

  • Method Details

    • size

      public abstract int size()
      Gets the size of this dataset.
      Returns:
      the size of this dataset
    • get

      public abstract T get​(int index)
      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

      public IndexableData<T> snapshot()
    • getPlotInfo

      public PlotInfo getPlotInfo()
      Specified by:
      getPlotInfo in interface PlotExceptionCause