@Namespace(value="parquet") @NoOffset @Properties(inherit=parquet.class) public class ReaderProperties extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ReaderProperties() |
ReaderProperties(long size)
Native array allocator.
|
ReaderProperties(MemoryPool pool) |
ReaderProperties(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
buffer_size() |
void |
disable_buffered_stream() |
void |
enable_buffered_stream() |
FileDecryptionProperties |
file_decryption_properties() |
void |
file_decryption_properties(FileDecryptionProperties decryption) |
ReaderProperties |
getPointer(long i) |
InputStream |
GetStream(RandomAccessFile source,
long start,
long num_bytes) |
boolean |
is_buffered_stream_enabled()
Buffered stream reading allows the user to control the memory usage of
parquet readers.
|
MemoryPool |
memory_pool() |
ReaderProperties |
position(long position) |
void |
set_buffer_size(long size) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ReaderProperties(Pointer p)
Pointer(Pointer)
.public ReaderProperties(long size)
Pointer.position(long)
.public ReaderProperties(MemoryPool pool)
public ReaderProperties()
public ReaderProperties position(long position)
public ReaderProperties getPointer(long i)
getPointer
in class Pointer
public MemoryPool memory_pool()
@Cast(value="parquet::ArrowInputStream*") @SharedPtr public InputStream GetStream(@Cast(value="parquet::ArrowInputFile*") @SharedPtr RandomAccessFile source, @Cast(value="int64_t") long start, @Cast(value="int64_t") long num_bytes)
@Cast(value="bool") public boolean is_buffered_stream_enabled()
RandomAccessFile::ReadAt
calls are
wrapped in a buffered reader that uses a fix sized buffer (of size
buffer_size()
) instead of the full size of the ReadAt.
The primary reason for this control knobs is for resource control and not
performance.public void enable_buffered_stream()
public void disable_buffered_stream()
public void file_decryption_properties(@SharedPtr FileDecryptionProperties decryption)
@SharedPtr public FileDecryptionProperties file_decryption_properties()
Copyright © 2022. All rights reserved.