taco-db  0.1.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
taco::SysTable_Aggregation Class Reference

SysTable_Aggregation is an in-memory cached record in the system catalog SysTable_Aggregation. More...

#include <catalog/systables/Aggregation.h>

Public Member Functions

constexpr Oid aggid () const
 Returns the aggregation ID. More...
 
constexpr uint8_t aggtid () const
 Returns the type of the aggregation. More...
 
constexpr Oid aggoprtypid () const
 Returns the type of the datum that the aggregation accumulate function works on. More...
 
constexpr Oid aggrettypid () const
 Returns the return type of the aggregation finalize function. More...
 
constexpr Oid agginitfuncid () const
 Returns the initialize function ID. More...
 
constexpr Oid aggaccfuncid () const
 Returns the accumulate function ID. More...
 
constexpr Oid aggfinalizefuncid () const
 Returns the finalize function ID. More...
 
constexpr const std::string & aggname () const
 Returns the name of the aggregation. More...
 

Static Public Member Functions

static constexpr FieldId aggid_colid ()
 
static constexpr FieldId aggtid_colid ()
 
static constexpr FieldId aggoprtypid_colid ()
 
static constexpr FieldId aggrettypid_colid ()
 
static constexpr FieldId agginitfuncid_colid ()
 
static constexpr FieldId aggaccfuncid_colid ()
 
static constexpr FieldId aggfinalizefuncid_colid ()
 
static constexpr FieldId aggname_colid ()
 

Private Member Functions

 SysTable_Aggregation (Oid aggid, uint8_t aggtid, Oid aggoprtypid, Oid aggrettypid, Oid agginitfuncid, Oid aggaccfuncid, Oid aggfinalizefuncid, std::string aggname)
 
std::vector< DatumGetDatumVector () const
 Returns all the fields as a datum vector. More...
 
 SysTable_Aggregation (const SysTable_Aggregation &)=default
 
SysTable_Aggregationoperator= (const SysTable_Aggregation &)=default
 

Static Private Member Functions

static SysTable_AggregationCreate (const std::vector< Datum > &)
 Creates a new SysTable_Aggregation with a data vector read from some record payload. More...
 

Private Attributes

Oid m_aggid
 
uint8_t m_aggtid
 
Oid m_aggoprtypid
 
Oid m_aggrettypid
 
Oid m_agginitfuncid
 
Oid m_aggaccfuncid
 
Oid m_aggfinalizefuncid
 
std::string m_aggname
 

Friends

class BootstrapCatCache
 
class CatCacheInternalAccess
 

Detailed Description

SysTable_Aggregation is an in-memory cached record in the system catalog SysTable_Aggregation.

Constructor & Destructor Documentation

◆ SysTable_Aggregation() [1/2]

taco::SysTable_Aggregation::SysTable_Aggregation ( Oid  aggid,
uint8_t  aggtid,
Oid  aggoprtypid,
Oid  aggrettypid,
Oid  agginitfuncid,
Oid  aggaccfuncid,
Oid  aggfinalizefuncid,
std::string  aggname 
)
inlineprivate

◆ SysTable_Aggregation() [2/2]

taco::SysTable_Aggregation::SysTable_Aggregation ( const SysTable_Aggregation )
privatedefault

Member Function Documentation

◆ aggaccfuncid()

constexpr Oid taco::SysTable_Aggregation::aggaccfuncid ( ) const
inlineconstexpr

Returns the accumulate function ID.

◆ aggaccfuncid_colid()

static constexpr FieldId taco::SysTable_Aggregation::aggaccfuncid_colid ( )
inlinestaticconstexpr

◆ aggfinalizefuncid()

constexpr Oid taco::SysTable_Aggregation::aggfinalizefuncid ( ) const
inlineconstexpr

Returns the finalize function ID.

◆ aggfinalizefuncid_colid()

static constexpr FieldId taco::SysTable_Aggregation::aggfinalizefuncid_colid ( )
inlinestaticconstexpr

◆ aggid()

constexpr Oid taco::SysTable_Aggregation::aggid ( ) const
inlineconstexpr

Returns the aggregation ID.

◆ aggid_colid()

static constexpr FieldId taco::SysTable_Aggregation::aggid_colid ( )
inlinestaticconstexpr

◆ agginitfuncid()

constexpr Oid taco::SysTable_Aggregation::agginitfuncid ( ) const
inlineconstexpr

Returns the initialize function ID.

◆ agginitfuncid_colid()

static constexpr FieldId taco::SysTable_Aggregation::agginitfuncid_colid ( )
inlinestaticconstexpr

◆ aggname()

constexpr const std::string& taco::SysTable_Aggregation::aggname ( ) const
inlineconstexpr

Returns the name of the aggregation.

◆ aggname_colid()

static constexpr FieldId taco::SysTable_Aggregation::aggname_colid ( )
inlinestaticconstexpr

◆ aggoprtypid()

constexpr Oid taco::SysTable_Aggregation::aggoprtypid ( ) const
inlineconstexpr

Returns the type of the datum that the aggregation accumulate function works on.

This is InvalidOid (0) if the aggregation may be applied to any type..

◆ aggoprtypid_colid()

static constexpr FieldId taco::SysTable_Aggregation::aggoprtypid_colid ( )
inlinestaticconstexpr

◆ aggrettypid()

constexpr Oid taco::SysTable_Aggregation::aggrettypid ( ) const
inlineconstexpr

Returns the return type of the aggregation finalize function.

◆ aggrettypid_colid()

static constexpr FieldId taco::SysTable_Aggregation::aggrettypid_colid ( )
inlinestaticconstexpr

◆ aggtid()

constexpr uint8_t taco::SysTable_Aggregation::aggtid ( ) const
inlineconstexpr

Returns the type of the aggregation.

◆ aggtid_colid()

static constexpr FieldId taco::SysTable_Aggregation::aggtid_colid ( )
inlinestaticconstexpr

◆ Create()

SysTable_Aggregation * taco::SysTable_Aggregation::Create ( const std::vector< Datum > &  data)
staticprivate

Creates a new SysTable_Aggregation with a data vector read from some record payload.

This function is private and only accessible to the catalog cache implementation.

◆ GetDatumVector()

std::vector< Datum > taco::SysTable_Aggregation::GetDatumVector ( ) const
private

Returns all the fields as a datum vector.

Note that the entry itself must be kept alive when the datum vector is accessed, as we may return references without copying the underlying data. This function is private and only accessible to the catalog cache implementation.

◆ operator=()

SysTable_Aggregation& taco::SysTable_Aggregation::operator= ( const SysTable_Aggregation )
privatedefault

Friends And Related Function Documentation

◆ BootstrapCatCache

friend class BootstrapCatCache
friend

◆ CatCacheInternalAccess

friend class CatCacheInternalAccess
friend

Member Data Documentation

◆ m_aggaccfuncid

Oid taco::SysTable_Aggregation::m_aggaccfuncid
private

◆ m_aggfinalizefuncid

Oid taco::SysTable_Aggregation::m_aggfinalizefuncid
private

◆ m_aggid

Oid taco::SysTable_Aggregation::m_aggid
private

◆ m_agginitfuncid

Oid taco::SysTable_Aggregation::m_agginitfuncid
private

◆ m_aggname

std::string taco::SysTable_Aggregation::m_aggname
private

◆ m_aggoprtypid

Oid taco::SysTable_Aggregation::m_aggoprtypid
private

◆ m_aggrettypid

Oid taco::SysTable_Aggregation::m_aggrettypid
private

◆ m_aggtid

uint8_t taco::SysTable_Aggregation::m_aggtid
private

The documentation for this class was generated from the following files: