public class ColumnWriterBufferFactory extends Object
ColumnWriterBuffer.
The factory is thread-safe and can be used by multiple threads or connections.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllBuffers()
Clear all buffers to free the buffered memory
This method is exported to be called by users manually
|
ColumnWriterBuffer |
getBuffer()
Obtain an instance of
ColumnWriterBuffer. |
static ColumnWriterBufferFactory |
getInstance() |
void |
recycleBuffer(ColumnWriterBuffer buffer) |
public static ColumnWriterBufferFactory getInstance()
public ColumnWriterBuffer getBuffer()
ColumnWriterBuffer.
The method tries to get an instance from storage. If one is available, the buffer is reset and returned. Otherwise a new one is created and return.
public void clearAllBuffers()
public void recycleBuffer(ColumnWriterBuffer buffer)
Copyright © 2021. All rights reserved.