FlashGraph-ng
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::request_range Class Reference

#include <io_request.h>

Public Member Functions

 request_range (const data_loc_t &loc, size_t size, int access_method, user_compute *compute)
 
const data_loc_tget_loc () const
 
size_t get_size () const
 
int get_access_method () const
 
user_computeget_compute () const
 
void set_compute (user_compute *compute)
 

Detailed Description

The class defines a compact data structure for containing the info of an I/O request issued by a user task.

Constructor & Destructor Documentation

safs::request_range::request_range ( const data_loc_t loc,
size_t  size,
int  access_method,
user_compute compute 
)
inline

The constructor.

Parameters
locthe data location in SAFS.
sizethe data size of the request.
access_methodindicates whether to read or write.
computethe user task associated with the I/O request.

Member Function Documentation

int safs::request_range::get_access_method ( ) const
inline

This method indicates whether to read or write.

Returns
whether to read or write.
user_compute* safs::request_range::get_compute ( ) const
inline

This method gets the user task associated with the I/O request.

Returns
the user task.
const data_loc_t& safs::request_range::get_loc ( ) const
inline

This method gets the data location in SAFS.

Returns
the data location.
size_t safs::request_range::get_size ( ) const
inline

This method gets the I/O request size.

Returns
the request size.
void safs::request_range::set_compute ( user_compute compute)
inline

This method sets the user task associated with the I/O request.

Parameters
computethe user task.

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