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:
Serialized Form
  • Constructor Details

  • Method Details

    • getPlotInfo

      public PlotInfo getPlotInfo()
      Specified by:
      getPlotInfo in interface PlotExceptionCause
    • 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 specified index as a double.
      Parameters:
      index - index
      Returns:
      value at index as 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

      public Spliterator.OfDouble doubleIterator()
      Gets the iterator over this dataset.
      Returns:
      dataset iterator
    • stream

      public DoubleStream 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.