Class ReusingByteBufferAllocator

java.lang.Object
org.apache.parquet.bytes.ReusingByteBufferAllocator
All Implemented Interfaces:
AutoCloseable, ByteBufferAllocator

public abstract class ReusingByteBufferAllocator extends Object implements ByteBufferAllocator, AutoCloseable
A special ByteBufferAllocator implementation that keeps one ByteBuffer object and reuses it at the next allocate(int) call. The close() shall be called when this allocator is not needed anymore to really release the one buffer.