@Namespace(value="arrow::io") @Properties(inherit=arrow.class) public class SlowRandomAccessFile extends RandomAccessFileSlowInputStreamBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
SlowRandomAccessFile(Pointer p)
Pointer cast constructor.
|
SlowRandomAccessFile(RandomAccessFile stream,
double average_latency) |
SlowRandomAccessFile(RandomAccessFile stream,
double average_latency,
int seed) |
SlowRandomAccessFile(RandomAccessFile stream,
LatencyGenerator latencies) |
| Modifier and Type | Method and Description |
|---|---|
Status |
Abort() |
Status |
Close() |
boolean |
closed() |
LongResult |
GetSize()
\brief Return the total file size in bytes.
|
StringViewResult |
Peek(long nbytes) |
BufferResult |
Read(long nbytes) |
LongResult |
Read(long nbytes,
Pointer out) |
BufferResult |
ReadAt(long _position,
long nbytes)
\brief Read data from given file position.
|
LongResult |
ReadAt(long _position,
long nbytes,
Pointer out)
\brief Read data from given file position.
|
Status |
Seek(long _position) |
LongResult |
Tell() |
asInputStream, asInputStream, asSeekable, asSeekable, GetStream, WillNeedaddress, 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 SlowRandomAccessFile(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::io::RandomAccessFile>"}) RandomAccessFile stream, @SharedPtr LatencyGenerator latencies)
public SlowRandomAccessFile(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::io::RandomAccessFile>"}) RandomAccessFile stream, double average_latency)
public SlowRandomAccessFile(@SharedPtr @Cast(value={"","std::shared_ptr<arrow::io::RandomAccessFile>"}) RandomAccessFile stream, double average_latency, int seed)
public SlowRandomAccessFile(Pointer p)
Pointer(Pointer).@ByVal public LongResult Read(@Cast(value="int64_t") long nbytes, Pointer out)
@ByVal public BufferResult Read(@Cast(value="int64_t") long nbytes)
@ByVal public LongResult ReadAt(@Cast(value="int64_t") long _position, @Cast(value="int64_t") long nbytes, Pointer out)
RandomAccessFilenbytes 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.ReadAt in class RandomAccessFilenbytes - [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)
RandomAccessFilenbytes bytes are read, but it can be less if EOF is reached.ReadAt in class RandomAccessFilenbytes - [in] The number of bytes to read@ByVal public StringViewResult Peek(@Cast(value="int64_t") long nbytes)
@ByVal public LongResult GetSize()
RandomAccessFileGetSize in class RandomAccessFile@ByVal public LongResult Tell()
Copyright © 2021. All rights reserved.