Class InlineChunkProvider
java.lang.Object
com.databricks.jdbc.api.impl.arrow.InlineChunkProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the chunk provider and releases any resources associated with it.getChunk()Retrieves the current chunk of data after a successful call toChunkProvider.next().longlongbooleanChecks if there are more chunks available to iterate over.booleanisClosed()booleannext()Advances to the next available chunk.
-
Method Details
-
hasNextChunk
public boolean hasNextChunk()Checks if there are more chunks available to iterate over.- Specified by:
hasNextChunkin interfaceChunkProvider- Returns:
trueif there are additional chunks to be retrieved;falseotherwise.
-
next
public boolean next()Advances to the next available chunk. This method should be called before callingChunkProvider.getChunk()to retrieve the data from the next chunk.- Specified by:
nextin interfaceChunkProvider- Returns:
trueif the next chunk was successfully moved to;falseif there are no more chunks.
-
getChunk
Retrieves the current chunk of data after a successful call toChunkProvider.next().- Specified by:
getChunkin interfaceChunkProvider- Returns:
- The current
AbstractArrowResultChunkcontaining the data.
-
close
public void close()Closes the chunk provider and releases any resources associated with it. After calling this method, the chunk provider should not be used again.- Specified by:
closein interfaceChunkProvider
-
getRowCount
public long getRowCount()- Specified by:
getRowCountin interfaceChunkProvider
-
getChunkCount
public long getChunkCount()- Specified by:
getChunkCountin interfaceChunkProvider
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceChunkProvider
-