Public Types | |
typedef std::shared_ptr< SmartFdHadoopJVM > | Ptr |
Public Types inherited from SWC::FS::SmartFd | |
typedef std::shared_ptr< SmartFd > | Ptr |
Public Member Functions | |
SmartFdHadoopJVM (const std::string &filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0) | |
virtual | ~SmartFdHadoopJVM () noexcept |
hdfsFile | file () noexcept |
void | file (const hdfsFile &file) noexcept |
void | use_release () noexcept |
bool | file_used () const noexcept |
hdfsFile | invalidate () noexcept |
Public Member Functions inherited from SWC::FS::SmartFd | |
SWC_CAN_INLINE | SmartFd (const std::string &filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0) |
SWC_CAN_INLINE | SmartFd (std::string &&filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0) noexcept |
virtual | ~SmartFd () noexcept |
constexpr SWC_CAN_INLINE const std::string & | filepath () const noexcept |
constexpr SWC_CAN_INLINE void | flags (uint32_t flags) noexcept |
constexpr SWC_CAN_INLINE uint32_t | flags () const noexcept |
constexpr SWC_CAN_INLINE void | fd (int32_t fd) noexcept |
constexpr SWC_CAN_INLINE int32_t | fd () const noexcept |
constexpr SWC_CAN_INLINE bool | valid () const noexcept |
constexpr SWC_CAN_INLINE int32_t | invalidate () noexcept |
constexpr SWC_CAN_INLINE void | pos (uint64_t pos) noexcept |
constexpr SWC_CAN_INLINE uint64_t | pos () const noexcept |
constexpr SWC_CAN_INLINE void | forward (uint64_t nbytes) noexcept |
std::string | to_string () const |
void | print (std::ostream &out) const |
Static Public Member Functions | |
static Ptr | make_ptr (const std::string &filepath, uint32_t flags) |
static Ptr | make_ptr (SmartFd::Ptr &smart_fd) |
Static Public Member Functions inherited from SWC::FS::SmartFd | |
static SWC_CAN_INLINE Ptr | make_ptr (const std::string &filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0) |
static SWC_CAN_INLINE Ptr | make_ptr (std::string &&filepath, uint32_t flags, int32_t fd=-1, uint64_t pos=0) |
Private Attributes | |
std::atomic< hdfsFile > | m_hfile |
Core::Atomic< size_t > | m_use_count |
Additional Inherited Members | |
Protected Attributes inherited from SWC::FS::SmartFd | |
const std::string | m_filepath |
Definition at line 127 of file FileSystem.h.
typedef std::shared_ptr<SmartFdHadoopJVM> SWC::FS::FileSystemHadoopJVM::SmartFdHadoopJVM::Ptr |
Definition at line 130 of file FileSystem.h.
SWC::FS::FileSystemHadoopJVM::SmartFdHadoopJVM::SmartFdHadoopJVM | ( | const std::string & | filepath, |
uint32_t | flags, | ||
int32_t | fd = -1 , |
||
uint64_t | pos = 0 |
||
) |
Definition at line 73 of file FileSystem.cc.
Referenced by make_ptr().
|
virtualnoexcept |
Definition at line 78 of file FileSystem.cc.
|
noexcept |
Definition at line 80 of file FileSystem.cc.
References SWC::LOG_WARN, SWC_FMT_LU, SWC_LOGF, and SWC::FS::FileSystemHadoopJVM::to_string().
|
noexcept |
Definition at line 97 of file FileSystem.cc.
|
noexcept |
Definition at line 106 of file FileSystem.cc.
|
noexcept |
Definition at line 110 of file FileSystem.cc.
|
static |
Definition at line 60 of file FileSystem.cc.
References SWC::FS::SmartFd::filepath(), SWC::FS::SmartFd::flags(), and SmartFdHadoopJVM().
Referenced by SWC::FS::FileSystemHadoopJVM::get_fd().
|
static |
Definition at line 66 of file FileSystem.cc.
|
noexcept |
Definition at line 102 of file FileSystem.cc.
|
private |
Definition at line 153 of file FileSystem.h.
|
private |
Definition at line 154 of file FileSystem.h.