Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
|
A OperatorSpecification defines the operator that the user wants to execute. More...
#include <specification.hpp>
Public Member Functions | |
OperatorSpecification (const std::string &operator_name, const Tuple &feature_vector, ProcessingDeviceMemoryID location_of_input_data, ProcessingDeviceMemoryID location_for_output_data) | |
constructs an OperatorSpecification object by assigning necessary informations to all fields of the object | |
const std::string & | getOperatorName () const throw () |
returns the operations's name | |
const Tuple & | getFeatureVector () const throw () |
returns the feature vector of this operator | |
ProcessingDeviceMemoryID | getMemoryLocation () const throw () |
returns the memory id where the input data is stored | |
Private Attributes | |
std::string | operator_name_ |
the operations's name | |
Tuple | feature_vector_ |
the feature vector of this operator | |
ProcessingDeviceMemoryID | location_of_input_data_ |
the memory id where the input data is stored | |
ProcessingDeviceMemoryID | location_for_output_data_ |
the memory id where the output data is stored |
Hence, it contains the name of the operation and the features of the input data set as well as the two memory ids, where the first identifies where the input data is stored, and the second specifies where the input data is stored. Note that HyPE needs this information to estimate the overhead of data transfers in case the data needs to be copied to use a certain processing device.
Definition at line 85 of file specification.hpp.
hype::core::OperatorSpecification::OperatorSpecification | ( | const std::string & | operator_name, |
const Tuple & | feature_vector, | ||
ProcessingDeviceMemoryID | location_of_input_data, | ||
ProcessingDeviceMemoryID | location_for_output_data | ||
) |
operator_name | the operations's name |
feature_vector | the feature vector of this operator |
location_of_input_data | the memory id where the input data is stored |
location_for_output_data | the memory id where the output data is stored |
Definition at line 65 of file specification.cpp.
const Tuple & hype::core::OperatorSpecification::getFeatureVector | ( | ) | const throw () |
Definition at line 77 of file specification.cpp.
References feature_vector_.
Referenced by hype::core::Scheduler::getEstimatedExecutionTime(), and hype::core::Scheduler::getOptimalAlgorithm().
ProcessingDeviceMemoryID hype::core::OperatorSpecification::getMemoryLocation | ( | ) | const throw () |
Definition at line 82 of file specification.cpp.
References location_of_input_data_.
const std::string & hype::core::OperatorSpecification::getOperatorName | ( | ) | const throw () |
Definition at line 87 of file specification.cpp.
References operator_name_.
Referenced by hype::core::Scheduler::getEstimatedExecutionTime(), and hype::core::Scheduler::getOptimalAlgorithm().
Definition at line 113 of file specification.hpp.
Referenced by getFeatureVector().
Definition at line 117 of file specification.hpp.
Definition at line 115 of file specification.hpp.
Referenced by getMemoryLocation().
std::string hype::core::OperatorSpecification::operator_name_ [private] |
Definition at line 111 of file specification.hpp.
Referenced by getOperatorName().