@Namespace(value="arrow::ipc") @Properties(inherit=arrow.class) public class RecordBatchFileReader extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
RecordBatchFileReader(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
KeyValueMetadata |
metadata()
\brief Return the contents of the custom_metadata field from the file's
Footer
|
int |
num_record_batches()
\brief Returns the number of record batches in the file
|
static RecordBatchFileReaderResult |
Open(RandomAccessFile file) |
static RecordBatchFileReaderResult |
Open(RandomAccessFile file,
IpcReadOptions options)
\brief Open a RecordBatchFileReader
Open a file-like object that is assumed to be self-contained; i.e., the
end of the file interface is the end of the Arrow file.
|
static RecordBatchFileReaderResult |
Open(RandomAccessFile file,
long footer_offset) |
static RecordBatchFileReaderResult |
Open(RandomAccessFile file,
long footer_offset,
IpcReadOptions options)
\brief Open a RecordBatchFileReader
If the file is embedded within some larger file or memory region, you can
pass the absolute memory offset to the end of the file (which contains the
metadata footer).
|
RecordBatchResult |
ReadRecordBatch(int i)
\brief Read a particular record batch from the file.
|
Schema |
schema()
\brief The schema read from the file
|
ReadStats |
stats()
\brief Return current read statistics
|
arrow.MetadataVersion |
version()
\brief Return the metadata version from the file metadata
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic RecordBatchFileReader(Pointer p)
Pointer(Pointer).@ByVal public static RecordBatchFileReaderResult Open(RandomAccessFile file, @Const @ByRef(nullValue="arrow::ipc::IpcReadOptions::Defaults()") IpcReadOptions options)
@ByVal public static RecordBatchFileReaderResult Open(RandomAccessFile file)
@ByVal public static RecordBatchFileReaderResult Open(RandomAccessFile file, @Cast(value="int64_t") long footer_offset, @Const @ByRef(nullValue="arrow::ipc::IpcReadOptions::Defaults()") IpcReadOptions options)
file - [in] the data sourcefooter_offset - [in] the position of the end of the Arrow fileoptions - [in] options for IPC reading@ByVal public static RecordBatchFileReaderResult Open(RandomAccessFile file, @Cast(value="int64_t") long footer_offset)
@SharedPtr @ByVal public Schema schema()
public int num_record_batches()
public arrow.MetadataVersion version()
@SharedPtr @Cast(value={"const arrow::KeyValueMetadata*","std::shared_ptr<const arrow::KeyValueMetadata>"}) public KeyValueMetadata metadata()
@ByVal public RecordBatchResult ReadRecordBatch(int i)
i - [in] the index of the record batch to returnCopyright © 2021. All rights reserved.