Package org.apache.arrow.datafusion
Interface DataFrame
public interface DataFrame
A dataframe is a rectangle shaped data that holds columns and rows, and can be
collected into batches and read via reader.-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<org.apache.arrow.vector.ipc.ArrowReader>collect(org.apache.arrow.memory.BufferAllocator allocator)Collect dataframe into a list of record batcheslonggetPointer()java.util.concurrent.CompletableFuture<java.lang.Void>show()Print results.
-
Method Details
-
collect
java.util.concurrent.CompletableFuture<org.apache.arrow.vector.ipc.ArrowReader> collect(org.apache.arrow.memory.BufferAllocator allocator)Collect dataframe into a list of record batches- Parameters:
allocator-buffer allocatorto allocate vectors within Reader- Returns:
readerinstance to extract the data, you are expected toArrowReader.close()it after usage to release memory
-
show
java.util.concurrent.CompletableFuture<java.lang.Void> show()Print results.- Returns:
- null
-
getPointer
long getPointer()
-