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 TypeMethodDescriptionvoid
cancel()
void
close()
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 int
com.google.common.base.Stopwatch
boolean
boolean
boolean
next()
Advances this cursor to the next row, if any, or to after the sequence of rows if no next row.boolean
wasNull()
-
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:
createAccessors
in 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:
next
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.apache.calcite.avatica.util.Cursor
-
wasNull
- Specified by:
wasNull
in interfaceorg.apache.calcite.avatica.util.Cursor
- Throws:
SQLException
-
getElapsedTimer
public com.google.common.base.Stopwatch getElapsedTimer()
-