Skip to main content

◆ filterByArea() [1/4]

FilterByAreaResponse gpudb::GPUdb::filterByArea (const FilterByAreaRequest &request_) 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.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ filterByArea() [2/4]

FilterByAreaResponse & gpudb::GPUdb::filterByArea (const FilterByAreaRequest &request_,
FilterByAreaResponse &response_ ) 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.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ filterByArea() [3/4]

FilterByAreaResponse gpudb::GPUdb::filterByArea (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 ) 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.

Parameters
[in]tableNameName of the table to filter, in [schema_name.]table_name format, using standard name resolution rules. This may be the name of a table or a view (when chaining queries).
[in]viewNameIf provided, then this will be the name of the view containing the results, in [schema_name.]view_name format, using standard name resolution rules and meeting table naming criteria. Must not be an already existing table or view. The default value is ”.
[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.The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ filterByArea() [4/4]

FilterByAreaResponse & gpudb::GPUdb::filterByArea (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,
FilterByAreaResponse &response_ ) 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.

Parameters
[in]tableNameName of the table to filter, in [schema_name.]table_name format, using standard name resolution rules. This may be the name of a table or a view (when chaining queries).
[in]viewNameIf provided, then this will be the name of the view containing the results, in [schema_name.]view_name format, using standard name resolution rules and meeting table naming criteria. Must not be an already existing table or view. The default value is ”.
[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.The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).