Uses of Interface
org.apache.parquet.bytes.ByteBufferAllocator
-
Packages that use ByteBufferAllocator Package Description org.apache.parquet.bytes org.apache.parquet.io -
-
Uses of ByteBufferAllocator in org.apache.parquet.bytes
Classes in org.apache.parquet.bytes that implement ByteBufferAllocator Modifier and Type Class Description classDirectByteBufferAllocatorclassHeapByteBufferAllocatorclassReusingByteBufferAllocatorA specialByteBufferAllocatorimplementation that keeps oneByteBufferobject and reuses it at the nextReusingByteBufferAllocator.allocate(int)call.classTrackingByteBufferAllocatorA wrapperByteBufferAllocatorimplementation that tracks whether all allocated buffers are released.Methods in org.apache.parquet.bytes with parameters of type ByteBufferAllocator Modifier and Type Method Description BytesInputBytesInput. 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.ByteBufferBytesInput. 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.static CapacityByteArrayOutputStreamCapacityByteArrayOutputStream. 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 ByteBufferAllocator Constructor Description ByteBufferReleaser(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.ConcatenatingByteBufferCollector(ByteBufferAllocator allocator)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 ByteBufferAllocator Modifier and Type Method Description voidSeekableInputStream. 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?
-