GPUdb C++ API  Version 6.2.0.3
gpudb::GetRecordsByColumnRequest Struct Reference

A set of input parameters for getRecordsByColumnRaw(const GetRecordsByColumnRequest&) const. More...

#include <gpudb/protocol/get_records_by_column.h>

Public Member Functions

 GetRecordsByColumnRequest ()
 Constructs a GetRecordsByColumnRequest object with default parameter values. More...
 
 GetRecordsByColumnRequest (const std::string &tableName_, const std::vector< std::string > &columnNames_, const int64_t offset_, const int64_t limit_, const std::map< std::string, std::string > &options_)
 Constructs a GetRecordsByColumnRequest object with the specified parameters. More...
 
 GetRecordsByColumnRequest (const std::string &tableName_, const std::vector< std::string > &columnNames_, const int64_t offset_, const int64_t limit_, const std::string &encoding_, const std::map< std::string, std::string > &options_)
 Constructs a GetRecordsByColumnRequest object with the specified parameters. More...
 

Public Attributes

std::string tableName
 
std::vector< std::string > columnNames
 
int64_t offset
 
int64_t limit
 
std::string encoding
 
std::map< std::string, std::string > options
 

Detailed Description

A set of input parameters for getRecordsByColumnRaw(const GetRecordsByColumnRequest&) const.

For a given table, retrieves the values from the requested column(s). Maps of column name to the array of values as well as the column data type are returned. This endpoint supports pagination with the offset and limit parameters.

Window functions, which can perform operations like moving averages, are available through this endpoint as well as createProjection(const CreateProjectionRequest&) const.

When using pagination, if the table (or the underlying table in the case of a view) is modified (records are inserted, updated, or deleted) during a call to the endpoint, the records or values retrieved may differ between calls based on the type of the update, e.g., the contiguity across pages cannot be relied upon.

The response is returned as a dynamic schema. For details see: dynamic schemas documentation.

Definition at line 38 of file get_records_by_column.h.

Constructor & Destructor Documentation

◆ GetRecordsByColumnRequest() [1/3]

gpudb::GetRecordsByColumnRequest::GetRecordsByColumnRequest ( )
inline

Constructs a GetRecordsByColumnRequest object with default parameter values.

Definition at line 45 of file get_records_by_column.h.

◆ GetRecordsByColumnRequest() [2/3]

gpudb::GetRecordsByColumnRequest::GetRecordsByColumnRequest ( const std::string &  tableName_,
const std::vector< std::string > &  columnNames_,
const int64_t  offset_,
const int64_t  limit_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a GetRecordsByColumnRequest object with the specified parameters.

Parameters
[in]tableName_Name of the table on which this operation will be performed. The table cannot be a parent set.
[in]columnNames_The list of column values to retrieve.
[in]offset_A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The minimum allowed value is 0. The maximum allowed value is MAX_INT.
[in]limit_A positive integer indicating the maximum number of results to be returned (if not provided the default is 10000), or END_OF_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned.
[in]options_

Definition at line 114 of file get_records_by_column.h.

◆ GetRecordsByColumnRequest() [3/3]

gpudb::GetRecordsByColumnRequest::GetRecordsByColumnRequest ( const std::string &  tableName_,
const std::vector< std::string > &  columnNames_,
const int64_t  offset_,
const int64_t  limit_,
const std::string &  encoding_,
const std::map< std::string, std::string > &  options_ 
)
inline

Constructs a GetRecordsByColumnRequest object with the specified parameters.

Parameters
[in]tableName_Name of the table on which this operation will be performed. The table cannot be a parent set.
[in]columnNames_The list of column values to retrieve.
[in]offset_A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The minimum allowed value is 0. The maximum allowed value is MAX_INT.
[in]limit_A positive integer indicating the maximum number of results to be returned (if not provided the default is 10000), or END_OF_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned.
[in]encoding_Specifies the encoding for returned records; either 'binary' or 'json'. The default value is gpudb::get_records_by_column_binary.
[in]options_

Definition at line 192 of file get_records_by_column.h.

Member Data Documentation

◆ columnNames

std::vector<std::string> gpudb::GetRecordsByColumnRequest::columnNames

Definition at line 203 of file get_records_by_column.h.

◆ encoding

std::string gpudb::GetRecordsByColumnRequest::encoding

Definition at line 206 of file get_records_by_column.h.

◆ limit

int64_t gpudb::GetRecordsByColumnRequest::limit

Definition at line 205 of file get_records_by_column.h.

◆ offset

int64_t gpudb::GetRecordsByColumnRequest::offset

Definition at line 204 of file get_records_by_column.h.

◆ options

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

Definition at line 207 of file get_records_by_column.h.

◆ tableName

std::string gpudb::GetRecordsByColumnRequest::tableName

Definition at line 202 of file get_records_by_column.h.


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