public interface BufferManager extends AutoCloseable
ArrowBuf
s that can be reallocated as needed. Upon
re-allocation the old buffer will be freed. Managing a list of these buffers
prevents some parts of the system from needing to define a correct location
to place the final call to free them.Modifier and Type | Method and Description |
---|---|
void |
close() |
ArrowBuf |
getManagedBuffer()
Get a managed buffer of indeterminate size.
|
ArrowBuf |
getManagedBuffer(long size)
Get a managed buffer of at least a certain size.
|
ArrowBuf |
replace(ArrowBuf old,
long newSize)
Replace an old buffer with a new version at least of the provided size.
|
ArrowBuf replace(ArrowBuf old, long newSize)
old
- Old Buffer that the user is no longer going to use.newSize
- Size of new replacement buffer.ArrowBuf getManagedBuffer()
ArrowBuf getManagedBuffer(long size)
size
- The desired sizevoid close()
close
in interface AutoCloseable
Copyright © 2023 The Apache Software Foundation. All rights reserved.