Class ArrowStreamResult
java.lang.Object
com.databricks.jdbc.api.impl.arrow.ArrowStreamResult
-
Constructor Summary
ConstructorsConstructorDescriptionArrowStreamResult(TFetchResultsResp resultsResp, boolean isInlineArrow, IDatabricksStatementInternal parentStatementId, IDatabricksSession session) ArrowStreamResult(ResultManifest resultManifest, ResultData resultData, StatementId statementId, IDatabricksSession session) -
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.longbooleanhasNext()Returns if there is next row in the result setstatic booleanChecks if the given type is a complex type (ARRAY, MAP, or STRUCT).booleannext()Moves the cursor to next row and returns true if this can be done
-
Constructor Details
-
ArrowStreamResult
public ArrowStreamResult(ResultManifest resultManifest, ResultData resultData, StatementId statementId, IDatabricksSession session) throws DatabricksSQLException - Throws:
DatabricksSQLException
-
ArrowStreamResult
public ArrowStreamResult(TFetchResultsResp resultsResp, boolean isInlineArrow, IDatabricksStatementInternal parentStatementId, IDatabricksSession session) throws DatabricksSQLException - Throws:
DatabricksSQLException
-
-
Method Details
-
getArrowMetadata
- Throws:
DatabricksSQLException
-
getObject
Get 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
-
isComplexType
Checks if the given type is a complex type (ARRAY, MAP, or STRUCT).- Parameters:
type- The type to check- Returns:
- true if the type is a complex type, false otherwise
-
getCurrentRow
public long getCurrentRow()Gets the current row position, starting with 0.- Specified by:
getCurrentRowin interfaceIExecutionResult- Returns:
- the current row position
-
next
Moves 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()Returns if there is next row in the result set- Specified by:
hasNextin interfaceIExecutionResult
-
close
public void close()Closes 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
-