Kuzu C++ API
Loading...
Searching...
No Matches
kuzu::common::UnionType Struct Reference

#include <types.h>

Static Public Member Functions

static union_field_idx_t getInternalFieldIdx (union_field_idx_t idx)
static std::string getFieldName (const LogicalType &type, union_field_idx_t idx)
static const LogicalTypegetFieldType (const LogicalType &type, union_field_idx_t idx)
static const LogicalTypegetFieldType (const LogicalType &type, const std::string &key)
static uint64_t getNumFields (const LogicalType &type)
static bool hasField (const LogicalType &type, const std::string &key)
static union_field_idx_t getFieldIdx (const LogicalType &type, const std::string &key)

Static Public Attributes

static constexpr union_field_idx_t TAG_FIELD_IDX = 0
static constexpr auto TAG_FIELD_TYPE = LogicalTypeID::UINT16
static constexpr char TAG_FIELD_NAME [] = "tag"

Member Function Documentation

◆ getFieldIdx()

union_field_idx_t kuzu::common::UnionType::getFieldIdx ( const LogicalType & type,
const std::string & key )
static

◆ getFieldName()

std::string kuzu::common::UnionType::getFieldName ( const LogicalType & type,
union_field_idx_t idx )
static

◆ getFieldType() [1/2]

const LogicalType & kuzu::common::UnionType::getFieldType ( const LogicalType & type,
const std::string & key )
static

◆ getFieldType() [2/2]

const LogicalType & kuzu::common::UnionType::getFieldType ( const LogicalType & type,
union_field_idx_t idx )
static

◆ getInternalFieldIdx()

union_field_idx_t kuzu::common::UnionType::getInternalFieldIdx ( union_field_idx_t idx)
static

◆ getNumFields()

uint64_t kuzu::common::UnionType::getNumFields ( const LogicalType & type)
static

◆ hasField()

bool kuzu::common::UnionType::hasField ( const LogicalType & type,
const std::string & key )
static

Member Data Documentation

◆ TAG_FIELD_IDX

union_field_idx_t kuzu::common::UnionType::TAG_FIELD_IDX = 0
staticconstexpr

◆ TAG_FIELD_NAME

char kuzu::common::UnionType::TAG_FIELD_NAME[] = "tag"
staticconstexpr

◆ TAG_FIELD_TYPE

auto kuzu::common::UnionType::TAG_FIELD_TYPE = LogicalTypeID::UINT16
staticconstexpr

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