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 sizeIOException
void removeWriter(Path path) throws IOException
path
- the file that has been closedIOException
void addedRow(int rows) throws IOException
rows
- number of rows addedIOException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.