Class ArrowResultChunkV2
- java.lang.Object
-
- com.databricks.jdbc.api.impl.arrow.AbstractArrowResultChunk
-
- com.databricks.jdbc.api.impl.arrow.incubator.ArrowResultChunkV2
-
public class ArrowResultChunkV2 extends AbstractArrowResultChunk
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArrowResultChunkV2.Builder
-
Field Summary
Fields Modifier and Type Field Description protected longbytesDownloadedprotected byte[]downloadedBytesprotected longdownloadEndTimeprotected longdownloadStartTime-
Fields 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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
-
-
-
-
Method Detail
-
builder
public static ArrowResultChunkV2.Builder 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
protected void handleFailure(Exception exception, ChunkStatus failedStatus)
Description copied from class:AbstractArrowResultChunkHandles a failure during the download or processing of this chunk.- Specified by:
handleFailurein classAbstractArrowResultChunk
-
-