org.eclipse.january.dataset

## Class ContiguousPairIterator

- java.lang.Object
- - org.eclipse.january.dataset.IndexIterator
  - - org.eclipse.january.dataset.BroadcastIteratorBase
    - - org.eclipse.january.dataset.BroadcastIterator
      - - org.eclipse.january.dataset.ContiguousPairIterator

-     public class ContiguousPairIterator
      extends BroadcastIterator

  Class to run over a pair of contiguous datasets

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.january.dataset.BroadcastIterator

      `aDouble, aLong, oDataset, oIndex, outputA, outputB`

    - ### Fields inherited from class org.eclipse.january.dataset.BroadcastIteratorBase

      `aDataset, aIndex, asDouble, bDataset, bDouble, bIndex, bLong, maxShape, pos, read`

    - ### Fields inherited from class org.eclipse.january.dataset.IndexIterator

      `index`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ContiguousPairIterator(Dataset a, Dataset b, Dataset o, boolean createIfNull)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int[]` | `getPos()`
    `boolean` | `hasNext()`
    `void` | `reset()` Reset iterator

    - ### Methods inherited from class org.eclipse.january.dataset.BroadcastIterator

      `createIterator, createIterator, createIterator, getOutput, storeCurrentValues`

    - ### Methods inherited from class org.eclipse.january.dataset.BroadcastIteratorBase

      `getShape, isOutputDouble, setOutputDouble`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### ContiguousPairIterator

          public ContiguousPairIterator(Dataset a,
                                Dataset b,
                                Dataset o,
                                boolean createIfNull)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Specified by:
        `hasNext` in class `IndexIterator`
      Returns:
        true if there is another iteration

    - #### getPos

          public int[] getPos()

      Overrides:
        `getPos` in class `BroadcastIteratorBase`
      Returns:
        position indices (nb this is reference not a copy so avoid changing and can be null)

    - #### reset

          public void reset()

      Description copied from class: `IndexIterator`
      Reset iterator
      Specified by:
        `reset` in class `IndexIterator`

Copyright © 2017. All rights reserved.