Class ArrowStreamResult
- java.lang.Object
-
- com.databricks.jdbc.api.impl.arrow.ArrowStreamResult
-
- All Implemented Interfaces:
IExecutionResult
public class ArrowStreamResult extends Object implements IExecutionResult
-
-
Constructor Summary
Constructors Constructor Description ArrowStreamResult(TGetResultSetMetadataResp resultManifest, TRowSet resultData, boolean isInlineArrow, String parentStatementId, IDatabricksSession session)ArrowStreamResult(TGetResultSetMetadataResp resultManifest, TRowSet resultData, boolean isInlineArrow, String statementId, IDatabricksSession session, IDatabricksHttpClient httpClient)ArrowStreamResult(ResultManifest resultManifest, ResultData resultData, String statementId, IDatabricksSession session)
-
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
-
ArrowStreamResult
public ArrowStreamResult(ResultManifest resultManifest, ResultData resultData, String statementId, IDatabricksSession session) throws DatabricksParsingException
- Throws:
DatabricksParsingException
-
ArrowStreamResult
public ArrowStreamResult(TGetResultSetMetadataResp resultManifest, TRowSet resultData, boolean isInlineArrow, String parentStatementId, IDatabricksSession session) throws DatabricksParsingException
- Throws:
DatabricksParsingException
-
ArrowStreamResult
public ArrowStreamResult(TGetResultSetMetadataResp resultManifest, TRowSet resultData, boolean isInlineArrow, String statementId, IDatabricksSession session, IDatabricksHttpClient httpClient) throws DatabricksParsingException
- Throws:
DatabricksParsingException
-
-
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
-
-