Logo
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
velox::vdfs Class Reference

#include <vdfs.hh>

Collaboration diagram for velox::vdfs:
Collaboration graph

Public Member Functions

 vdfs (std::string job_id, int tid, bool initializer)
 
 vdfs (vdfs &)
 
 ~vdfs ()
 
vdfsoperator= (vdfs &)
 
velox::file open (std::string)
 
long open_file (std::string)
 
bool close (long)
 
bool is_open (long)
 
velox::file upload (std::string)
 
velox::file upload_idv (std::string)
 
bool rm (std::string)
 
bool rm (long)
 
bool format ()
 
bool exists (std::string)
 
uint32_t write (long, const char *, uint32_t, uint32_t)
 
uint32_t write (long, const char *, uint32_t, uint32_t, uint64_t)
 
uint32_t read (long, char *, uint64_t, uint64_t)
 
uint32_t read_chunk (char *buf, uint32_t boff)
 
model::metadata get_metadata (long fid, int type)
 
void append (std::string, std::string)
 
std::vector< model::metadatalist (bool all, std::string name="")
 
bool rename (std::string, std::string)
 
velox::file write_file (std::string, const std::string &, uint64_t)
 
int get_tmg_id ()
 

Public Attributes

int tmg_id
 
std::string job_id
 
bool initializer
 

Protected Member Functions

std::string load (std::string)
 

Protected Attributes

DFSdfs
 

Constructor & Destructor Documentation

◆ vdfs() [1/2]

vdfs::vdfs ( std::string  job_id,
int  tid,
bool  initializer 
)

◆ vdfs() [2/2]

vdfs::vdfs ( vdfs that)

◆ ~vdfs()

vdfs::~vdfs ( )

Member Function Documentation

◆ append()

void vdfs::append ( std::string  name,
std::string  content 
)

◆ close()

bool vdfs::close ( long  fid)

◆ exists()

bool vdfs::exists ( std::string  name)

◆ format()

bool vdfs::format ( )

◆ get_metadata()

model::metadata vdfs::get_metadata ( long  fid,
int  type = 0 
)

◆ get_tmg_id()

int vdfs::get_tmg_id ( )

◆ is_open()

bool vdfs::is_open ( long  fid)

◆ list()

std::vector< model::metadata > vdfs::list ( bool  all,
std::string  name = "" 
)

◆ load()

std::string vdfs::load ( std::string  name)
protected

◆ open()

file vdfs::open ( std::string  name)

◆ open_file()

long vdfs::open_file ( std::string  fname)

◆ operator=()

vdfs & vdfs::operator= ( vdfs rhs)

◆ read()

uint32_t vdfs::read ( long  fid,
char *  buf,
uint64_t  off,
uint64_t  len 
)

◆ read_chunk()

uint32_t vdfs::read_chunk ( char *  buf,
uint32_t  boff 
)

◆ rename()

bool vdfs::rename ( std::string  src,
std::string  dst 
)

◆ rm() [1/2]

bool vdfs::rm ( long  fid)

◆ rm() [2/2]

bool vdfs::rm ( std::string  name)

◆ upload()

file vdfs::upload ( std::string  name)

◆ upload_idv()

file vdfs::upload_idv ( std::string  name)

◆ write() [1/2]

uint32_t vdfs::write ( long  fid,
const char *  buf,
uint32_t  off,
uint32_t  len 
)

◆ write() [2/2]

uint32_t vdfs::write ( long  fid,
const char *  buf,
uint32_t  off,
uint32_t  len,
uint64_t  block_size 
)

◆ write_file()

file vdfs::write_file ( std::string  name,
const std::string &  buf,
uint64_t  len 
)

Member Data Documentation

◆ dfs

DFS* velox::vdfs::dfs
protected

◆ initializer

bool velox::vdfs::initializer

◆ job_id

std::string velox::vdfs::job_id

◆ tmg_id

int velox::vdfs::tmg_id

The documentation for this class was generated from the following files: