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 Summary
ConstructorsConstructorDescriptionCircuitBreakerByteBufferAllocator(org.apache.parquet.bytes.ByteBufferAllocator delegate, CircuitBreaker breaker) -
Method Summary
Modifier and TypeMethodDescriptionallocate(int capacity) booleanisDirect()voidrelease(ByteBuffer byteBuffer)
-
Constructor Details
-
CircuitBreakerByteBufferAllocator
public CircuitBreakerByteBufferAllocator(org.apache.parquet.bytes.ByteBufferAllocator delegate, CircuitBreaker breaker)
-
-
Method Details
-
allocate
- Specified by:
allocatein interfaceorg.apache.parquet.bytes.ByteBufferAllocator
-
release
- Specified by:
releasein interfaceorg.apache.parquet.bytes.ByteBufferAllocator
-
isDirect
public boolean isDirect()- Specified by:
isDirectin interfaceorg.apache.parquet.bytes.ByteBufferAllocator
-