Class SynchronizedResultIterator<T>

java.lang.Object
io.trino.plugin.raptor.legacy.util.SynchronizedResultIterator<T>
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<T>, org.jdbi.v3.core.result.ResultIterator<T>

public class SynchronizedResultIterator<T> extends Object implements org.jdbi.v3.core.result.ResultIterator<T>
  • Constructor Details

    • SynchronizedResultIterator

      public SynchronizedResultIterator(org.jdbi.v3.core.result.ResultIterator<T> iterator)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.jdbi.v3.core.result.ResultIterator<T>
    • getContext

      public org.jdbi.v3.core.statement.StatementContext getContext()
      Specified by:
      getContext in interface org.jdbi.v3.core.result.ResultIterator<T>