Class Page.ReadOnlyPage

java.lang.Object
nz.org.riskscape.engine.sched.Page.ReadOnlyPage
All Implemented Interfaces:
AutoCloseable, Iterator<nz.org.riskscape.engine.Tuple>, nz.org.riskscape.engine.relation.TupleIterator
Enclosing class:
Page

public class Page.ReadOnlyPage extends Object implements nz.org.riskscape.engine.relation.TupleIterator
  • Field Summary

    Fields inherited from interface nz.org.riskscape.engine.relation.TupleIterator

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    boolean
     
    nz.org.riskscape.engine.Tuple
     
    nz.org.riskscape.engine.Tuple
     
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.Iterator

    remove

    Methods inherited from interface nz.org.riskscape.engine.relation.TupleIterator

    close, collect, forEachRemaining
  • Constructor Details

    • ReadOnlyPage

      public ReadOnlyPage()
  • Method Details

    • next

      public nz.org.riskscape.engine.Tuple next()
      Specified by:
      next in interface Iterator<nz.org.riskscape.engine.Tuple>
      Returns:
      the next Tuple in the page to read.
    • peek

      public nz.org.riskscape.engine.Tuple peek()
      Returns:
      the Tuple in the page that will be read next.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<nz.org.riskscape.engine.Tuple>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getTupleCount

      public int getTupleCount()
      Returns:
      the total number of Tuples to be read