Class DynamicSliceViewIterator

java.lang.Object
org.eclipse.dawnsci.analysis.dataset.slicer.DynamicSliceViewIterator
All Implemented Interfaces:
Iterator<org.eclipse.january.dataset.ILazyDataset>, ISliceViewIterator

public class DynamicSliceViewIterator extends Object implements ISliceViewIterator
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamicSliceViewIterator(org.eclipse.january.dataset.IDynamicDataset lazy, org.eclipse.january.dataset.IDynamicDataset[] keys, org.eclipse.january.dataset.IDynamicDataset finished, int dataSize)
     
    DynamicSliceViewIterator(org.eclipse.january.dataset.IDynamicDataset lazy, org.eclipse.january.dataset.IDynamicDataset[] keys, org.eclipse.january.dataset.IDynamicDataset finished, int dataSize, boolean repeating)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Get the shape of the subsampled view
    int
    Get the total number of views to be iterated over
    boolean
     
    org.eclipse.january.dataset.ILazyDataset
    Get the current view on the ILazyDataset
    void
     
    void
    Resets the iterator
    void
    setMaxTimeout(int maxTimeout)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining
  • Constructor Details

    • DynamicSliceViewIterator

      public DynamicSliceViewIterator(org.eclipse.january.dataset.IDynamicDataset lazy, org.eclipse.january.dataset.IDynamicDataset[] keys, org.eclipse.january.dataset.IDynamicDataset finished, int dataSize)
    • DynamicSliceViewIterator

      public DynamicSliceViewIterator(org.eclipse.january.dataset.IDynamicDataset lazy, org.eclipse.january.dataset.IDynamicDataset[] keys, org.eclipse.january.dataset.IDynamicDataset finished, int dataSize, boolean repeating)
  • Method Details

    • setMaxTimeout

      public void setMaxTimeout(int maxTimeout)
    • updateShape

      public void updateShape()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.eclipse.january.dataset.ILazyDataset>
    • reset

      public void reset()
      Resets the iterator
      Specified by:
      reset in interface ISliceViewIterator
    • next

      public org.eclipse.january.dataset.ILazyDataset next()
      Get the current view on the ILazyDataset
      Specified by:
      next in interface Iterator<org.eclipse.january.dataset.ILazyDataset>
      Returns:
      lazyDataset
    • getTotal

      public int getTotal()
      Get the total number of views to be iterated over
      Returns:
      total;
    • getShape

      public int[] getShape()
      Get the shape of the subsampled view
      Specified by:
      getShape in interface ISliceViewIterator
      Returns:
      shape
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<org.eclipse.january.dataset.ILazyDataset>