Class VolumeOperationResult
java.lang.Object
com.databricks.jdbc.api.impl.volume.VolumeOperationResult
-
Constructor Summary
ConstructorsConstructorDescriptionVolumeOperationResult(long totalRows, long totalColumns, IDatabricksSession session, IExecutionResult resultHandler, IDatabricksStatementInternal statement) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the result set and releases any in-memory chunks or datalonglongGets the current row position, starting with 0.getObject(int columnIndex) Get the object for given column index.longorg.apache.http.entity.InputStreamEntitybooleanhasNext()Returns if there is next row in the result setbooleannext()Moves the cursor to next row and returns true if this can be donevoidsetVolumeOperationEntityStream(org.apache.http.HttpEntity httpEntity)
-
Constructor Details
-
VolumeOperationResult
public VolumeOperationResult(long totalRows, long totalColumns, IDatabricksSession session, IExecutionResult resultHandler, IDatabricksStatementInternal statement) throws DatabricksSQLException - Throws:
DatabricksSQLException
-
-
Method Details
-
getObject
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
Description 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
-
setVolumeOperationEntityStream
public void setVolumeOperationEntityStream(org.apache.http.HttpEntity httpEntity) throws IOException - Throws:
IOException
-
getVolumeOperationInputStream
public org.apache.http.entity.InputStreamEntity getVolumeOperationInputStream() -
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
-
getRowCount
public long getRowCount()- Specified by:
getRowCountin interfaceIExecutionResult
-
getChunkCount
public long getChunkCount()- Specified by:
getChunkCountin interfaceIExecutionResult
-