A new frontier in large-scale graph analysis and data mining
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
safs::file_io_factory Class Referenceabstract

#include <io_interface.h>

Inherited by safs::in_mem_io_factory.

Public Member Functions

void set_sched_creator (comp_io_sched_creator::ptr creator)
comp_io_sched_creator::ptr get_sched_creator () const
const std::string & get_name () const
virtual int get_file_id () const =0
ssize_t get_file_size () const

Detailed Description

This class defines the interface of creating I/O instances of accessing a file.

Member Function Documentation

virtual int safs::file_io_factory::get_file_id ( ) const
pure virtual

This method gets the Id of the file associated with the I/O factory.

the file ID.
ssize_t safs::file_io_factory::get_file_size ( ) const

This method gets the size of the file accessed by the I/O factory.

the file size.
const std::string& safs::file_io_factory::get_name ( ) const

This method gets the name of the SAFS file that the I/O instances in the I/O factory access.

the file name.
comp_io_sched_creator::ptr safs::file_io_factory::get_sched_creator ( ) const

This method gets an I/O scheduler creator in the I/O factory.

the I/O scheduler creator.
void safs::file_io_factory::set_sched_creator ( comp_io_sched_creator::ptr  creator)

This method sets an I/O scheduler creator in the I/O factory. An I/O scheduler only works in the page cache, so it has no effect if the I/O instance doesn't have a page cache.

createrthe I/O scheduler creator.

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