public interface MemoryManager
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MemoryManager.Callback |
| Modifier and Type | Method and Description |
|---|---|
void |
addedRow(int rows)
Give the memory manager an opportunity for doing a memory check.
|
void |
addWriter(Path path,
long requestedAllocation,
MemoryManager.Callback callback)
Add a new writer's memory allocation to the pool.
|
void |
removeWriter(Path path)
Remove the given writer from the pool.
|
void addWriter(Path path, long requestedAllocation, MemoryManager.Callback callback) throws IOException
path - the file that is being writtenrequestedAllocation - the requested buffer sizeIOExceptionvoid removeWriter(Path path) throws IOException
path - the file that has been closedIOExceptionvoid addedRow(int rows)
throws IOException
rows - number of rows addedIOExceptionCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.