public class ParquetDirectByteBufferAllocator extends Object implements org.apache.parquet.bytes.ByteBufferAllocator
ByteBufferAllocator
implementation that uses Drill's BufferAllocator
to allocate and release
ByteBuffer
objects.DrillBuf
, this class keeps track of it's corresponding ByteBuffer
that was passed to the Parquet library.Constructor and Description |
---|
ParquetDirectByteBufferAllocator(BufferAllocator allocator) |
ParquetDirectByteBufferAllocator(OperatorContext o) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
allocate(int sz) |
boolean |
isDirect() |
void |
release(ByteBuffer byteBuffer) |
public ParquetDirectByteBufferAllocator(OperatorContext o)
public ParquetDirectByteBufferAllocator(BufferAllocator allocator)
public ByteBuffer allocate(int sz)
allocate
in interface org.apache.parquet.bytes.ByteBufferAllocator
public void release(ByteBuffer byteBuffer)
release
in interface org.apache.parquet.bytes.ByteBufferAllocator
public boolean isDirect()
isDirect
in interface org.apache.parquet.bytes.ByteBufferAllocator
Copyright © 1970 The Apache Software Foundation. All rights reserved.