Package com.databricks.jdbc.api.impl
Interface IExecutionResult
-
- All Known Implementing Classes:
ArrowStreamResult,InlineJsonResult,LazyThriftResult,VolumeOperationResult
public interface IExecutionResultInterface to provide methods over an underlying statement result
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the result set and releases any in-memory chunks or datalonggetChunkCount()longgetCurrentRow()Gets the current row position, starting with 0.ObjectgetObject(int columnIndex)Get the object for given column index.longgetRowCount()booleanhasNext()Returns if there is next row in the result setbooleannext()Moves the cursor to next row and returns true if this can be done
-
-
-
Method Detail
-
getObject
Object getObject(int columnIndex) throws DatabricksSQLException
Get the object for given column index. Here index starts with 0.- Parameters:
columnIndex- index of column starting with 0- Returns:
- object at given index
- Throws:
DatabricksSQLException- if there is any error in getting object
-
getCurrentRow
long getCurrentRow()
Gets the current row position, starting with 0.- Returns:
- the current row position
-
next
boolean next() throws DatabricksSQLExceptionMoves the cursor to next row and returns true if this can be done- Returns:
- true if cursor is moved at next row
- Throws:
DatabricksSQLException
-
hasNext
boolean hasNext()
Returns if there is next row in the result set
-
close
void close()
Closes the result set and releases any in-memory chunks or data
-
getRowCount
long getRowCount()
-
getChunkCount
long getChunkCount()
-
-