Class MappingUncertainIterator<T,R>

java.lang.Object
com.github.basking2.sdsai.itrex.iterators.splitjoin.MappingUncertainIterator<T,R>
All Implemented Interfaces:
UncertainIterator<R>

public class MappingUncertainIterator<T,R> extends Object implements UncertainIterator<R>
This does just what MappingIterator does but for UncertainIterator objects. The mapping function must define a result.
  • Constructor Details

  • Method Details

    • next

      public R next()
      Description copied from interface: UncertainIterator
      Get the next value or throw NoSuchElementException.
      Specified by:
      next in interface UncertainIterator<T>
      Returns:
      The next element.
    • hasNext

      public UncertainIterator.HAS_NEXT hasNext()
      Description copied from interface: UncertainIterator
      Return TRUE if elements are ready, FALSE if they are not or MAYBE if we do not know. If no other sources of data are available and the state of the computation system cannot be changed, then MAYBE should be considered FALSE.
      Specified by:
      hasNext in interface UncertainIterator<T>
      Returns:
      TRUE if elements are ready, FALSE if they are not or MAYBE if we do not know.