GPUdb C++ API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gpudb::FilterByValueRequest Struct Reference

A set of input parameters for const. More...

#include <gpudb/protocol/filter_by_value.h>

Public Member Functions

 FilterByValueRequest ()
 Constructs a FilterByValueRequest object with default parameter values. More...
 
 FilterByValueRequest (const std::string &tableName_, const std::string &viewName_, const bool isString_, const double value_, const std::string &valueStr_, const std::string &columnName_, const std::map< std::string, std::string > &options_)
 Constructs a FilterByValueRequest object with the specified parameters. More...
 

Public Attributes

std::string tableName
 
std::string viewName
 
bool isString
 
double value
 
std::string valueStr
 
std::string columnName
 
std::map< std::string,
std::string > 
options
 

Detailed Description

A set of input parameters for const.

Calculates which objects from a table has a particular value for a particular column. The input parameters provide a way to specify either a String or a Double valued column and a desired value for the column on which the filter is performed. The operation is synchronous, meaning that a response will not be returned until all the objects are fully available. The response payload provides the count of the resulting set. A new result view which satisfies the input filter restriction specification is also created with a view name passed in as part of the input payload. Although this functionality can also be accomplished with the standard filter function, it is more efficient.

Definition at line 27 of file filter_by_value.h.

Constructor & Destructor Documentation

gpudb::FilterByValueRequest::FilterByValueRequest ( )
inline

Constructs a FilterByValueRequest object with default parameter values.

Definition at line 34 of file filter_by_value.h.

gpudb::FilterByValueRequest::FilterByValueRequest ( const std::string &  tableName_,
const std::string &  viewName_,
const bool  isString_,
const double  value_,
const std::string &  valueStr_,
const std::string &  columnName_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a FilterByValueRequest object with the specified parameters.

Parameters
[in]tableName_Name of an existing table on which to perform the calculation.
[in]viewName_If provided, then this will be the name of the view containing the results. Has the same naming restrictions as tables.
[in]isString_Indicates whether the value being searched for is string or numeric.
[in]value_The value to search for.
[in]valueStr_The string value to search for.
[in]columnName_Name of a column on which the filter by value would be applied.
[in]options_Optional parameters.
  • gpudb::filter_by_value_collection_name: Name of a collection which is to contain the newly created view. If the collection provided is non-existent, the collection will be automatically created. If empty, then the newly created view will be top-level.

Definition at line 74 of file filter_by_value.h.

Member Data Documentation

std::string gpudb::FilterByValueRequest::columnName

Definition at line 90 of file filter_by_value.h.

bool gpudb::FilterByValueRequest::isString

Definition at line 87 of file filter_by_value.h.

std::map<std::string, std::string> gpudb::FilterByValueRequest::options

Definition at line 91 of file filter_by_value.h.

std::string gpudb::FilterByValueRequest::tableName

Definition at line 85 of file filter_by_value.h.

double gpudb::FilterByValueRequest::value

Definition at line 88 of file filter_by_value.h.

std::string gpudb::FilterByValueRequest::valueStr

Definition at line 89 of file filter_by_value.h.

std::string gpudb::FilterByValueRequest::viewName

Definition at line 86 of file filter_by_value.h.


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