Class ArrowResultChunkV2
java.lang.Object
com.databricks.jdbc.api.impl.arrow.AbstractArrowResultChunk
com.databricks.jdbc.api.impl.arrow.incubator.ArrowResultChunkV2
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected byte[]protected longprotected longFields inherited from class com.databricks.jdbc.api.impl.arrow.AbstractArrowResultChunk
arrowMetadata, chunkIndex, chunkLink, chunkReadyFuture, chunkReadyTimeoutSeconds, errorMessage, expiryTime, numRows, recordBatchList, rootAllocator, rowOffset, SECONDS_BUFFER_FOR_EXPIRY, stateMachine, statementId -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrowResultChunkV2.Builderbuilder()protected voiddownloadData(IDatabricksHttpClient httpClient, CompressionCodec compressionCodec, double speedThreshold) Downloads and initializes data for this chunk using the provided HTTP client and compression codec.protected voidhandleFailure(Exception exception, ChunkStatus failedStatus) Handles a failure during the download or processing of this chunk.Methods inherited from class com.databricks.jdbc.api.impl.arrow.AbstractArrowResultChunk
getArrowMetadata, getChunkIndex, getChunkIterator, getChunkReadyFuture, getColumnVector, getNumRows, getRecordBatchCountInChunk, getRecordBatchList, getStatus, initializeData, isChunkLinkInvalid, releaseChunk, setChunkLink, setStatus, waitForChunkReady
-
Field Details
-
downloadStartTime
protected volatile long downloadStartTime -
downloadEndTime
protected volatile long downloadEndTime -
bytesDownloaded
protected volatile long bytesDownloaded -
downloadedBytes
protected byte[] downloadedBytes
-
-
Method Details
-
builder
-
downloadData
protected void downloadData(IDatabricksHttpClient httpClient, CompressionCodec compressionCodec, double speedThreshold) Description copied from class:AbstractArrowResultChunkDownloads and initializes data for this chunk using the provided HTTP client and compression codec.- Specified by:
downloadDatain classAbstractArrowResultChunk- Parameters:
httpClient- the HTTP client to use for downloadingcompressionCodec- the compression codec to use for decompressionspeedThreshold- the minimum expected download speed in MB/s for logging warnings
-
handleFailure
Description copied from class:AbstractArrowResultChunkHandles a failure during the download or processing of this chunk.- Specified by:
handleFailurein classAbstractArrowResultChunk
-