@Namespace(value="arrow::io") @NoOffset @Properties(inherit=arrow.class) public class ReadableFile extends ReadableFileRandomAccessFileConcurrencyWrapper
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ReadableFile(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
closed()
\brief Return whether the stream is closed
|
int |
file_descriptor() |
static ReadableFileResult |
Open(BytePointer path) |
static ReadableFileResult |
Open(BytePointer path,
MemoryPool pool) |
static ReadableFileResult |
Open(int fd) |
static ReadableFileResult |
Open(int fd,
MemoryPool pool)
\brief Open a local file for reading
|
static ReadableFileResult |
Open(String path) |
static ReadableFileResult |
Open(String path,
MemoryPool pool)
\brief Open a local file for reading
|
Status |
WillNeed(ReadRange ranges)
EXPERIMENTAL: Inform that the given ranges may be read soon.
|
Abort, Close, GetSize, Peek, Read, Read, ReadAt, ReadAt, Seek, Tell
asSeekable, asSeekable, GetStream
Advance, asReadable, asReadable, ReadMetadata, ReadMetadataAsync, ReadMetadataAsync, supports_zero_copy
mode
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ReadableFile(Pointer p)
Pointer(Pointer)
.@ByVal public static ReadableFileResult Open(@StdString String path, MemoryPool pool)
path
- [in] with UTF8 encodingpool
- [in] a MemoryPool for memory allocations@ByVal public static ReadableFileResult Open(@StdString String path)
@ByVal public static ReadableFileResult Open(@StdString BytePointer path, MemoryPool pool)
@ByVal public static ReadableFileResult Open(@StdString BytePointer path)
@ByVal public static ReadableFileResult Open(int fd, MemoryPool pool)
fd
- [in] file descriptorpool
- [in] a MemoryPool for memory allocations@ByVal public static ReadableFileResult Open(int fd)
@Cast(value="bool") public boolean closed()
FileInterface
closed
in class FileInterface
public int file_descriptor()
@ByVal public Status WillNeed(@StdVector ReadRange ranges)
RandomAccessFile
WillNeed
in class RandomAccessFile
Copyright © 2022. All rights reserved.