Class CircuitBreakerByteBufferAllocator

java.lang.Object
org.elasticsearch.xpack.esql.datasource.parquet.CircuitBreakerByteBufferAllocator
All Implemented Interfaces:
org.apache.parquet.bytes.ByteBufferAllocator

public class CircuitBreakerByteBufferAllocator extends Object implements org.apache.parquet.bytes.ByteBufferAllocator
A Parquet ByteBufferAllocator that uses a circuit breaker to manage memory usage.
  • Constructor Details

    • CircuitBreakerByteBufferAllocator

      public CircuitBreakerByteBufferAllocator(org.apache.parquet.bytes.ByteBufferAllocator delegate, CircuitBreaker breaker)
  • Method Details

    • allocate

      public ByteBuffer allocate(int capacity)
      Specified by:
      allocate in interface org.apache.parquet.bytes.ByteBufferAllocator
    • release

      public void release(ByteBuffer byteBuffer)
      Specified by:
      release in interface org.apache.parquet.bytes.ByteBufferAllocator
    • isDirect

      public boolean isDirect()
      Specified by:
      isDirect in interface org.apache.parquet.bytes.ByteBufferAllocator