12 #ifndef ROOT_THDFSFile 13 #define ROOT_THDFSFile 39 const char *ftitle=
"",
Int_t compress=1);
63 void *OpenDirectory(
const char *name);
64 void FreeDirectory(
void *dirp);
65 const char *GetDirEntry(
void *dirp);
68 Int_t Unlink(
const char *path);
void * fDirp
Pointer to the array of file information.
Int_t SysClose(Int_t fd)
Close the file in HDFS.
Int_t SysSync(Int_t fd)
Sync remaining data to disk; Not supported by HDFS.
THDFSFile(const char *path, Option_t *option="", const char *ftitle="", Int_t compress=1)
Usual Constructor. See the TFile constructor for details.
This class represents a WWW compatible URL.
void * fFS
HDFS user handle.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual ~THDFSFile()
Close and clean-up HDFS file.
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().
#define ClassDef(name, id)
Long64_t fSysOffset
Seek offset in file.
void ResetErrno() const
ResetErrno; simply calls TSystem::ResetErrno().
Reads and writes its data via the HDFS protocols.
Directory handler for HDFS (THDFSFile).
Int_t fDirCtr
The current position in the fDirp array.
void * fHdfsFH
HDFS file handle.
Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode)
Open a file in HDFS.
Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence)
Seek to a specified position in the file.
TUrl * fUrlp
Pointer to the array of directory content URLs.
Int_t SysRead(Int_t fd, void *buf, Int_t len)
Read specified number of bytes from current offset into the buffer.
void * fFH
HDFS filesystem handle.
Int_t fDirEntries
The number of entries in the fDirp array.
Abstract base class defining a generic interface to the underlying Operating System.
Int_t SysWrite(Int_t fd, const void *buf, Int_t len)
Write a buffer into the file; this is not supported currently.