| Package | Description |
|---|---|
| org.apache.parquet.bytes | |
| org.apache.parquet.io |
| Modifier and Type | Class and Description |
|---|---|
class |
DirectByteBufferAllocator |
class |
HeapByteBufferAllocator |
class |
ReusingByteBufferAllocator
A special
ByteBufferAllocator implementation that keeps one ByteBuffer object and reuses it at the
next ReusingByteBufferAllocator.allocate(int) call. |
class |
TrackingByteBufferAllocator
A wrapper
ByteBufferAllocator implementation that tracks whether all allocated buffers are released. |
| Modifier and Type | Method and Description |
|---|---|
BytesInput |
BytesInput.copy(ByteBufferAllocator allocator,
Consumer<ByteBuffer> callback)
Copies the content of this
BytesInput object to a newly created ByteBuffer and returns it wrapped
in a BytesInput object. |
static ReusingByteBufferAllocator |
ReusingByteBufferAllocator.strict(ByteBufferAllocator allocator)
Creates a new strict
ReusingByteBufferAllocator object with the specified "parent" allocator to be used for
allocating/releasing the one buffer. |
ByteBuffer |
BytesInput.toByteBuffer(ByteBufferAllocator allocator,
Consumer<ByteBuffer> callback)
Returns a
ByteBuffer object referencing the data behind this BytesInput object. |
static ReusingByteBufferAllocator |
ReusingByteBufferAllocator.unsafe(ByteBufferAllocator allocator)
Creates a new unsafe
ReusingByteBufferAllocator object with the specified "parent" allocator to be used for
allocating/releasing the one buffer. |
static CapacityByteArrayOutputStream |
CapacityByteArrayOutputStream.withTargetNumSlabs(int minSlabSize,
int maxCapacityHint,
int targetNumSlabs,
ByteBufferAllocator allocator)
Construct a CapacityByteArrayOutputStream configured such that its initial slab size is
determined by
CapacityByteArrayOutputStream.initialSlabSizeHeuristic(int, int, int), with targetCapacity == maxCapacityHint |
static TrackingByteBufferAllocator |
TrackingByteBufferAllocator.wrap(ByteBufferAllocator allocator) |
| Constructor and Description |
|---|
ByteBufferReleaser(ByteBufferAllocator allocator)
Constructs a new
ByteBufferReleaser instance with the specified ByteBufferAllocator to be used for
releasing the buffers in ByteBufferReleaser.close(). |
CapacityByteArrayOutputStream(int initialSlabSize,
ByteBufferAllocator allocator)
Deprecated.
|
CapacityByteArrayOutputStream(int initialSlabSize,
int maxCapacityHint,
ByteBufferAllocator allocator) |
ConcatenatingByteBufferCollector(ByteBufferAllocator allocator)
Constructs a new
ConcatenatingByteBufferCollector instance with the specified allocator. |
| Modifier and Type | Method and Description |
|---|---|
void |
SeekableInputStream.readVectored(List<ParquetFileRange> ranges,
ByteBufferAllocator allocator)
Read a set of disjoint file ranges in a vectored manner.
|
boolean |
SeekableInputStream.readVectoredAvailable(ByteBufferAllocator allocator)
Is the
SeekableInputStream.readVectored(List, ByteBufferAllocator) method available? |
Copyright © 2023 The Apache Software Foundation. All rights reserved.