Package org.apache.drill.exec.ops
Class BufferManagerImpl
java.lang.Object
org.apache.drill.exec.ops.BufferManagerImpl
- All Implemented Interfaces:
AutoCloseable
,BufferManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Get a managed buffer of indeterminate size.getManagedBuffer
(int size) Get a managed buffer of at least a certain size.Replace an old buffer with a new version at least of the provided size.
-
Constructor Details
-
BufferManagerImpl
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceBufferManager
-
getAllocator
- Specified by:
getAllocator
in interfaceBufferManager
-
replace
Description copied from interface:BufferManager
Replace an old buffer with a new version at least of the provided size. Does not copy data.- Specified by:
replace
in interfaceBufferManager
- Parameters:
old
- Old Buffer that the user is no longer going to use.newSize
- Size of new replacement buffer.- Returns:
-
getManagedBuffer
Description copied from interface:BufferManager
Get a managed buffer of indeterminate size.- Specified by:
getManagedBuffer
in interfaceBufferManager
- Returns:
- A buffer.
-
getManagedBuffer
Description copied from interface:BufferManager
Get a managed buffer of at least a certain size.- Specified by:
getManagedBuffer
in interfaceBufferManager
- Parameters:
size
- The desired size- Returns:
- A buffer
-