Class PositionedCursor<T>

java.lang.Object
org.apache.calcite.avatica.util.AbstractCursor
org.apache.calcite.avatica.util.PositionedCursor<T>
Type Parameters:
T - Element type
All Implemented Interfaces:
AutoCloseable, Cursor
Direct Known Subclasses:
IteratorCursor

public abstract class PositionedCursor<T> extends AbstractCursor
Abstract implementation of Cursor that caches its current row.
  • Constructor Details

    • PositionedCursor

      public PositionedCursor()
  • Method Details

    • current

      protected abstract T current()
      Returns the current row.
      Returns:
      current row
      Throws:
      NoSuchElementException - if the iteration has no more elements