Class DrillCursor

java.lang.Object
org.apache.drill.jdbc.impl.DrillCursor
All Implemented Interfaces:
AutoCloseable, org.apache.calcite.avatica.util.Cursor

public class DrillCursor extends Object implements org.apache.calcite.avatica.util.Cursor
  • Method Details

    • getCurrentRecordNumber

      protected int getCurrentRecordNumber()
    • getQueryId

      public String getQueryId()
    • isBeforeFirst

      public boolean isBeforeFirst()
    • isAfterLast

      public boolean isAfterLast()
    • createAccessors

      public List<org.apache.calcite.avatica.util.Cursor.Accessor> createAccessors(List<org.apache.calcite.avatica.ColumnMetaData> types, Calendar localCalendar, org.apache.calcite.avatica.util.ArrayImpl.Factory factory)
      Specified by:
      createAccessors in interface org.apache.calcite.avatica.util.Cursor
    • next

      public boolean next() throws SQLException
      Advances this cursor to the next row, if any, or to after the sequence of rows if no next row.
      Specified by:
      next in interface org.apache.calcite.avatica.util.Cursor
      Returns:
      whether cursor is positioned at a row (false when after end of results)
      Throws:
      SQLException
    • cancel

      public void cancel()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.calcite.avatica.util.Cursor
    • wasNull

      public boolean wasNull() throws SQLException
      Specified by:
      wasNull in interface org.apache.calcite.avatica.util.Cursor
      Throws:
      SQLException
    • getElapsedTimer

      public org.apache.drill.shaded.guava.com.google.common.base.Stopwatch getElapsedTimer()