Class VolumeOperationResult
- java.lang.Object
-
- com.databricks.jdbc.api.impl.volume.VolumeOperationResult
-
- All Implemented Interfaces:
IExecutionResult
public class VolumeOperationResult extends Object implements IExecutionResult
Class to handle the result of a volume operation
-
-
Constructor Summary
Constructors Constructor Description VolumeOperationResult(String statementId, long totalRows, long totalColumns, IDatabricksSession session, IExecutionResult resultHandler, IDatabricksStatement statement, IDatabricksResultSet resultSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the result set and releases any in-memory chunks or datalonggetCurrentRow()Gets the current row position, starting with 0.ObjectgetObject(int columnIndex)Get the object for given column index.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
-
-
-
Constructor Detail
-
VolumeOperationResult
public VolumeOperationResult(String statementId, long totalRows, long totalColumns, IDatabricksSession session, IExecutionResult resultHandler, IDatabricksStatement statement, IDatabricksResultSet resultSet)
-
-
Method Detail
-
getObject
public Object getObject(int columnIndex) throws DatabricksSQLException
Description copied from interface:IExecutionResultGet the object for given column index. Here index starts with 0.- Specified by:
getObjectin interfaceIExecutionResult- Parameters:
columnIndex- index of column starting with 0- Returns:
- object at given index
- Throws:
DatabricksSQLException- if there is any error in getting object
-
getCurrentRow
public long getCurrentRow()
Description copied from interface:IExecutionResultGets the current row position, starting with 0.- Specified by:
getCurrentRowin interfaceIExecutionResult- Returns:
- the current row position
-
next
public boolean next() throws DatabricksSQLExceptionDescription copied from interface:IExecutionResultMoves the cursor to next row and returns true if this can be done- Specified by:
nextin interfaceIExecutionResult- Returns:
- true if cursor is moved at next row
- Throws:
DatabricksSQLException
-
hasNext
public boolean hasNext()
Description copied from interface:IExecutionResultReturns if there is next row in the result set- Specified by:
hasNextin interfaceIExecutionResult
-
close
public void close()
Description copied from interface:IExecutionResultCloses the result set and releases any in-memory chunks or data- Specified by:
closein interfaceIExecutionResult
-
-