Class TrackingByteBufferAllocator

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

public final class TrackingByteBufferAllocator extends Object implements ByteBufferAllocator, AutoCloseable
A wrapper ByteBufferAllocator implementation that tracks whether all allocated buffers are released. It throws the related exception at close() if any buffer remains un-released. It also clears the buffers at release so if they continued being used it'll generate errors.

To be used for testing purposes.