GPUdb C++ API  Version 5.2.0.0
gpudb::FilterByAreaRequest Struct Reference

A set of input parameters for filterByArea(const FilterByAreaRequest&) const. More...

#include <gpudb/protocol/filter_by_area.h>

Public Member Functions

 FilterByAreaRequest ()
 Constructs a FilterByAreaRequest object with default parameter values. More...
 
 FilterByAreaRequest (const std::string &tableName, const std::string &viewName, const std::string &xColumnName, const std::vector< double > &xVector, const std::string &yColumnName, const std::vector< double > &yVector, const std::map< std::string, std::string > &options)
 Constructs a FilterByAreaRequest object with the specified parameters. More...
 

Public Attributes

std::string tableName
 
std::string viewName
 
std::string xColumnName
 
std::vector< double > xVector
 
std::string yColumnName
 
std::vector< double > yVector
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for filterByArea(const FilterByAreaRequest&) const.

Calculates which objects from a table are within a named area of interest (NAI/polygon). The operation is synchronous meaning that GPUdb will not return the request until all the matching objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input NAI restriction specification is created with the name viewName passed in as part of the input.

Definition at line 24 of file filter_by_area.h.

Constructor & Destructor Documentation

gpudb::FilterByAreaRequest::FilterByAreaRequest ( )
inline

Constructs a FilterByAreaRequest object with default parameter values.

Definition at line 31 of file filter_by_area.h.

gpudb::FilterByAreaRequest::FilterByAreaRequest ( const std::string &  tableName,
const std::string &  viewName,
const std::string &  xColumnName,
const std::vector< double > &  xVector,
const std::string &  yColumnName,
const std::vector< double > &  yVector,
const std::map< std::string, std::string > &  options 
)
inline

Constructs a FilterByAreaRequest object with the specified parameters.

Parameters
[in]tableNameName of the table to filter. This may be the name of a collection, a table or a view (when chaining queries). Collections may be filtered only if all tables within the collection have the same type ID.
[in]viewNameIf provided, then this will be the name of the view containing the results. Must not be an already existing collection, table or view. Default value is an empty string.
[in]xColumnNameName of the column containing the x values to be filtered.
[in]xVectorList of x coordinates of the vertices of the polygon representing the area to be filtered.
[in]yColumnNameName of the column containing the y values to be filtered.
[in]yVectorList of y coordinates of the vertices of the polygon representing the area to be filtered.
[in]optionsOptional parameters. Default value is an empty std::map.

Definition at line 67 of file filter_by_area.h.

Member Data Documentation

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

Definition at line 84 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::tableName

Definition at line 78 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::viewName

Definition at line 79 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::xColumnName

Definition at line 80 of file filter_by_area.h.

std::vector<double> gpudb::FilterByAreaRequest::xVector

Definition at line 81 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::yColumnName

Definition at line 82 of file filter_by_area.h.

std::vector<double> gpudb::FilterByAreaRequest::yVector

Definition at line 83 of file filter_by_area.h.


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