Class InlineChunkProvider
- java.lang.Object
-
- com.databricks.jdbc.api.impl.arrow.InlineChunkProvider
-
- All Implemented Interfaces:
ChunkProvider
public class InlineChunkProvider extends Object implements ChunkProvider
Class to manage inline Arrow chunks
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the chunk provider and releases any resources associated with it.ArrowResultChunkgetChunk()Retrieves the current chunk of data after a successful call toChunkProvider.next().longgetChunkCount()longgetRowCount()booleanhasNextChunk()Checks if there are more chunks available to iterate over.booleanisClosed()booleannext()Advances to the next available chunk.
-
-
-
Method Detail
-
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
public ArrowResultChunk 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
-
-