Package org.apache.drill.jdbc.impl
Class DrillCursor
java.lang.Object
org.apache.drill.jdbc.impl.DrillCursor
- All Implemented Interfaces:
AutoCloseable,org.apache.calcite.avatica.util.Cursor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.avatica.util.Cursor
org.apache.calcite.avatica.util.Cursor.Accessor -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidclose()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) protected intcom.google.common.base.Stopwatchbooleanbooleanbooleannext()Advances this cursor to the next row, if any, or to after the sequence of rows if no next row.booleanwasNull()
-
Method Details
-
getCurrentRecordNumber
protected int getCurrentRecordNumber() -
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:
createAccessorsin interfaceorg.apache.calcite.avatica.util.Cursor
-
next
Advances this cursor to the next row, if any, or to after the sequence of rows if no next row.- Specified by:
nextin interfaceorg.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:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.apache.calcite.avatica.util.Cursor
-
wasNull
- Specified by:
wasNullin interfaceorg.apache.calcite.avatica.util.Cursor- Throws:
SQLException
-
getElapsedTimer
public com.google.common.base.Stopwatch getElapsedTimer()
-