GPUdb C++ API  Version 6.0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
gpudb::FilterByAreaRequest Struct Reference

A set of input parameters for 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 const.

Calculates which objects from a table are within a named area of interest (NAI/polygon). The operation is synchronous, meaning that a response will not be returned 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.

Note that if you call this endpoint using a table that has WKT data, the x_column_name and y_column_name settings are no longer required because the geospatial filter works automatically.

Definition at line 28 of file filter_by_area.h.

Constructor & Destructor Documentation

gpudb::FilterByAreaRequest::FilterByAreaRequest ( )
inline

Constructs a FilterByAreaRequest object with default parameter values.

Definition at line 35 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]tableName_Name 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]viewName_If provided, then this will be the name of the view containing the results. Has the same naming restrictions as tables.
[in]xColumnName_Name of the column containing the x values to be filtered.
[in]xVector_List of x coordinates of the vertices of the polygon representing the area to be filtered.
[in]yColumnName_Name of the column containing the y values to be filtered.
[in]yVector_List of y coordinates of the vertices of the polygon representing the area to be filtered.
[in]options_Optional parameters.

Definition at line 71 of file filter_by_area.h.

Member Data Documentation

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

Definition at line 88 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::tableName

Definition at line 82 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::viewName

Definition at line 83 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::xColumnName

Definition at line 84 of file filter_by_area.h.

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

Definition at line 85 of file filter_by_area.h.

std::string gpudb::FilterByAreaRequest::yColumnName

Definition at line 86 of file filter_by_area.h.

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

Definition at line 87 of file filter_by_area.h.


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