Expand description
Defines the spilling functions
Modulesยง
- in_
progress_ ๐spill_ file - Define the
InProgressSpillFilestruct, which represents an in-progress spill file used for writingRecordBatches to disk, created bySpillManager. - spill_
manager ๐ - Define the
SpillManagerstruct, which is responsible for reading and writingRecordBatches to raw files based on the provided configurations.
Structsยง
- IPCStream
Writer ๐ - Write in Arrow IPC Stream format to a file.
- Spill
Reader ๐Stream - Stream that reads spill files from disk where each batch is read in a spawned blocking task
It will read one batch at a time and will not do any buffering, to buffer data use
crate::common::spawn_buffered
Enumsยง
Constantsยง
Functionsยง
- count_
array_ ๐data_ memory_ size - Count the memory usage of
array_dataand its children recursively. - get_
max_ ๐alignment_ for_ schema - get_
record_ batch_ memory_ size - Calculate total used memory of this batch.
- spill_
record_ batch_ by_ size Deprecated - Spill the
RecordBatchto disk as smaller batches split bybatch_size_rows
Type Aliasesยง
- Next
Record ๐Batch Result - When we poll for the next batch, we will get back both the batch and the reader,
so we can call
nextagain.