#define ClassDef(name, id)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Reads and writes its data via the HDFS protocols.
THDFSFile(const char *path, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseGeneralPurpose)
Usual Constructor. See the TFile constructor for details.
Int_t SysWrite(Int_t fd, const void *buf, Int_t len)
Write a buffer into the file; this is not supported currently.
Int_t SysClose(Int_t fd)
Close the file in HDFS.
Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode)
Open a file in HDFS.
Int_t SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime)
Perform a stat on the HDFS file; see TFile::SysStat().
void ResetErrno() const
ResetErrno; simply calls TSystem::ResetErrno().
void * fFS
HDFS user handle.
Int_t SysSync(Int_t fd)
Sync remaining data to disk; Not supported by HDFS.
Long64_t fSysOffset
Seek offset in file.
Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence)
Seek to a specified position in the file.
Int_t SysRead(Int_t fd, void *buf, Int_t len)
Read specified number of bytes from current offset into the buffer.
virtual ~THDFSFile()
Close and clean-up HDFS file.
void * fHdfsFH
HDFS file handle.
Directory handler for HDFS (THDFSFile).
void * OpenDirectory(const char *name)
Open a directory via hdfs.
void * fFH
HDFS filesystem handle.
void FreeDirectory(void *dirp)
Free a directory.
Bool_t AccessPathName(const char *path, EAccessMode mode)
Returns FALSE if one can access a file using the specified access mode.
TUrl * fUrlp
Pointer to the array of directory content URLs.
Int_t fDirEntries
The number of entries in the fDirp array.
Int_t MakeDirectory(const char *name)
Make a directory.
const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
Int_t fDirCtr
The current position in the fDirp array.
void * fDirp
Pointer to the array of file information.
Int_t GetPathInfo(const char *path, FileStat_t &buf)
Get info about a file.
Int_t Unlink(const char *path)
Unlink, i.e.
Abstract base class defining a generic interface to the underlying Operating System.
This class represents a WWW compatible URL.
@ kUseGeneralPurpose
Use the recommended general-purpose setting; moderate read / write speed and compression ratio.