![]() |
Project
|
#include <LocalByteSource.h>
Inherits o2::aod::native::ByteSource.
Public Member Functions | |
| LocalByteSource (std::string path, Options const &options) | |
| ~LocalByteSource () override | |
| uint64_t | size () const override |
| void | readInto (uint64_t off, size_t len, void *dst) override |
| Throws IoError, or CorruptData when the range is past the end of the file. | |
| void | readvInto (std::span< ReadRequest > requests) override |
| std::span< const uint8_t > | tryMap (uint64_t off, size_t len) override |
| A view of the bytes without copying them, if the backend can provide it. | |
| bool | canMap () const override |
| Whether tryMap() provides every range, so that nothing needs reading. | |
| void | willNeed (uint64_t off, size_t len) override |
| Hints that a range will be needed soon, or is no longer needed. | |
| void | dontNeed (uint64_t off, size_t len) override |
| uint64_t | bytesRead () const override |
| uint64_t | readCalls () const override |
| std::string | url () const override |
Public Member Functions inherited from o2::aod::native::ByteSource | |
| virtual | ~ByteSource () |
| virtual bool | isRemote () const |
| Whether each read is a network round trip, worth hiding behind decoding. | |
Additional Inherited Members | |
Static Public Member Functions inherited from o2::aod::native::ByteSource | |
| static std::unique_ptr< ByteSource > | open (std::string url, const Options &) |
A local file, mmapped read-only on 64-bit hosts, with pread as fallback (mmap failure, or –aod-reader-local-io=pread).
Definition at line 23 of file LocalByteSource.h.
| o2::aod::native::LocalByteSource::LocalByteSource | ( | std::string | path, |
| Options const & | options | ||
| ) |
Definition at line 34 of file LocalByteSource.cxx.
|
override |
Definition at line 56 of file LocalByteSource.cxx.
|
inlineoverridevirtual |
Implements o2::aod::native::ByteSource.
Definition at line 35 of file LocalByteSource.h.
|
inlineoverridevirtual |
Whether tryMap() provides every range, so that nothing needs reading.
Reimplemented from o2::aod::native::ByteSource.
Definition at line 32 of file LocalByteSource.h.
|
overridevirtual |
Reimplemented from o2::aod::native::ByteSource.
Definition at line 128 of file LocalByteSource.cxx.
|
inlineoverridevirtual |
Implements o2::aod::native::ByteSource.
Definition at line 36 of file LocalByteSource.h.
|
overridevirtual |
Throws IoError, or CorruptData when the range is past the end of the file.
Implements o2::aod::native::ByteSource.
Definition at line 71 of file LocalByteSource.cxx.
|
overridevirtual |
Implements o2::aod::native::ByteSource.
Definition at line 98 of file LocalByteSource.cxx.
|
inlineoverridevirtual |
Implements o2::aod::native::ByteSource.
Definition at line 28 of file LocalByteSource.h.
|
overridevirtual |
A view of the bytes without copying them, if the backend can provide it.
Reimplemented from o2::aod::native::ByteSource.
Definition at line 105 of file LocalByteSource.cxx.
|
inlineoverridevirtual |
Implements o2::aod::native::ByteSource.
Definition at line 37 of file LocalByteSource.h.
|
overridevirtual |
Hints that a range will be needed soon, or is no longer needed.
Reimplemented from o2::aod::native::ByteSource.
Definition at line 127 of file LocalByteSource.cxx.