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(long totalRows, long totalColumns, IDatabricksSession session, IExecutionResult resultHandler, IDatabricksStatementInternal statement)
-
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 datalonggetChunkCount()longgetCurrentRow()Gets the current row position, starting with 0.ObjectgetObject(int columnIndex)Get the object for given column index.longgetRowCount()org.apache.http.entity.InputStreamEntitygetVolumeOperationInputStream()booleanhasNext()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 Detail
-
VolumeOperationResult
public VolumeOperationResult(long totalRows, long totalColumns, IDatabricksSession session, IExecutionResult resultHandler, IDatabricksStatementInternal statement) throws DatabricksSQLException- Throws:
DatabricksSQLException
-
-
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
-
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
-
-