@Namespace(value="arrow::io") @NoOffset @Properties(inherit=arrow.class) public class RandomAccessFile extends InputStream
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
RandomAccessFile(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Seekable |
asSeekable() |
static Seekable |
asSeekable(RandomAccessFile pointer) |
LongResult |
GetSize()
Return the total file size in bytes.
|
Status |
GetSize(long[] size)
Deprecated.
|
Status |
GetSize(LongBuffer size)
Deprecated.
|
Status |
GetSize(LongPointer size)
Deprecated.
|
static InputStream |
GetStream(RandomAccessFile file,
long file_offset,
long nbytes)
\brief Create an isolated InputStream that reads a segment of a
RandomAccessFile.
|
BufferResult |
ReadAt(long _position,
long nbytes)
\brief Read data from given file position.
|
Status |
ReadAt(long _position,
long nbytes,
ArrowBuffer out)
Deprecated.
|
Status |
ReadAt(long _position,
long nbytes,
long[] bytes_read,
Pointer out)
Deprecated.
|
Status |
ReadAt(long _position,
long nbytes,
LongBuffer bytes_read,
Pointer out)
Deprecated.
|
Status |
ReadAt(long _position,
long nbytes,
LongPointer bytes_read,
Pointer out)
Deprecated.
|
LongResult |
ReadAt(long _position,
long nbytes,
Pointer out)
\brief Read data from given file position.
|
Advance, asReadable, asReadable, Peek, supports_zero_copyAbort, Close, closed, mode, Tell, Tell, Tell, Telladdress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic RandomAccessFile(Pointer p)
Pointer.Pointer(Pointer).public Seekable asSeekable()
@Namespace @Name(value="static_cast<arrow::io::Seekable*>") public static Seekable asSeekable(RandomAccessFile pointer)
@SharedPtr public static InputStream GetStream(@SharedPtr RandomAccessFile file, @Cast(value="int64_t") long file_offset, @Cast(value="int64_t") long nbytes)
file - [in] a file instancefile_offset - [in] the starting position in the filenbytes - [in] the extent of bytes to read. The file should have
sufficient bytes available@ByVal public LongResult GetSize()
@ByVal public LongResult ReadAt(@Cast(value="int64_t") long _position, @Cast(value="int64_t") long nbytes, Pointer out)
nbytes bytes are read. The number of bytes read is returned
(it can be less than nbytes if EOF is reached).
This method can be safely called from multiple threads concurrently.
It is unspecified whether this method updates the file position or not.
The default RandomAccessFile-provided implementation uses Seek() and Read(),
but subclasses may override it with a more efficient implementation
that doesn't depend on implicit file positioning.position - [in] Where to read bytes fromnbytes - [in] The number of bytes to readout - [out] The buffer to read bytes into@ByVal public BufferResult ReadAt(@Cast(value="int64_t") long _position, @Cast(value="int64_t") long nbytes)
nbytes bytes are read, but it can be less if EOF is reached.position - [in] Where to read bytes fromnbytes - [in] The number of bytes to read@Deprecated @ByVal public Status ReadAt(@Cast(value="int64_t") long _position, @Cast(value="int64_t") long nbytes, @Cast(value="int64_t*") LongPointer bytes_read, Pointer out)
@Deprecated @ByVal public Status ReadAt(@Cast(value="int64_t") long _position, @Cast(value="int64_t") long nbytes, @Cast(value="int64_t*") LongBuffer bytes_read, Pointer out)
@Deprecated @ByVal public Status ReadAt(@Cast(value="int64_t") long _position, @Cast(value="int64_t") long nbytes, @Cast(value="int64_t*") long[] bytes_read, Pointer out)
@Deprecated @ByVal public Status ReadAt(@Cast(value="int64_t") long _position, @Cast(value="int64_t") long nbytes, @SharedPtr @Cast(value={"","std::shared_ptr<arrow::Buffer>*"}) ArrowBuffer out)
@Deprecated @ByVal public Status GetSize(@Cast(value="int64_t*") LongPointer size)
@Deprecated @ByVal public Status GetSize(@Cast(value="int64_t*") LongBuffer size)
@Deprecated @ByVal public Status GetSize(@Cast(value="int64_t*") long[] size)
Copyright © 2020. All rights reserved.