Uses of Interface
org.apache.parquet.bytes.ByteBufferAllocator
Packages that use ByteBufferAllocator
-
Uses of ByteBufferAllocator in org.apache.parquet.bytes
Classes in org.apache.parquet.bytes that implement ByteBufferAllocatorModifier and TypeClassDescriptionclassclassclassA specialByteBufferAllocatorimplementation that keeps oneByteBufferobject and reuses it at the nextReusingByteBufferAllocator.allocate(int)call.final classA wrapperByteBufferAllocatorimplementation that tracks whether all allocated buffers are released.Methods in org.apache.parquet.bytes with parameters of type ByteBufferAllocatorModifier and TypeMethodDescriptionBytesInput.copy(ByteBufferAllocator allocator, Consumer<ByteBuffer> callback) Copies the content of thisBytesInputobject to a newly createdByteBufferand returns it wrapped in aBytesInputobject.static ReusingByteBufferAllocatorReusingByteBufferAllocator.strict(ByteBufferAllocator allocator) Creates a new strictReusingByteBufferAllocatorobject with the specified "parent" allocator to be used for allocating/releasing the one buffer.BytesInput.toByteBuffer(ByteBufferAllocator allocator, Consumer<ByteBuffer> callback) Returns aByteBufferobject referencing the data behind thisBytesInputobject.static ReusingByteBufferAllocatorReusingByteBufferAllocator.unsafe(ByteBufferAllocator allocator) Creates a new unsafeReusingByteBufferAllocatorobject with the specified "parent" allocator to be used for allocating/releasing the one buffer.CapacityByteArrayOutputStream.withTargetNumSlabs(int minSlabSize, int maxCapacityHint, int targetNumSlabs, ByteBufferAllocator allocator) Construct a CapacityByteArrayOutputStream configured such that its initial slab size is determined byCapacityByteArrayOutputStream.initialSlabSizeHeuristic(int, int, int), with targetCapacity == maxCapacityHintstatic TrackingByteBufferAllocatorTrackingByteBufferAllocator.wrap(ByteBufferAllocator allocator) Constructors in org.apache.parquet.bytes with parameters of type ByteBufferAllocatorModifierConstructorDescriptionByteBufferReleaser(ByteBufferAllocator allocator) Constructs a newByteBufferReleaserinstance with the specifiedByteBufferAllocatorto be used for releasing the buffers inByteBufferReleaser.close().CapacityByteArrayOutputStream(int initialSlabSize, int maxCapacityHint, ByteBufferAllocator allocator) CapacityByteArrayOutputStream(int initialSlabSize, ByteBufferAllocator allocator) Deprecated.Constructs a newConcatenatingByteBufferCollectorinstance with the specified allocator. -
Uses of ByteBufferAllocator in org.apache.parquet.io
Methods in org.apache.parquet.io with parameters of type ByteBufferAllocatorModifier and TypeMethodDescriptionvoidSeekableInputStream.readVectored(List<ParquetFileRange> ranges, ByteBufferAllocator allocator) Read a set of disjoint file ranges in a vectored manner.booleanSeekableInputStream.readVectoredAvailable(ByteBufferAllocator allocator) Is theSeekableInputStream.readVectored(List, ByteBufferAllocator)method available?
CapacityByteArrayOutputStream(int, int, ByteBufferAllocator)