template<>
gtopt::UidToArrowIdx<StageUid> struct

Base classes

template<typename... Uids>
struct ArrowUidTraits<Uids...>
template<typename... Uids>
struct ArrowUidTraits<StageUid>

Public types

using BaseMapTraits = UidMapTraits<ArrowIndex, Uids...>
using BaseUidTraits = ArrowUidTraits<Uids...>
using key_type = std::tuple<Uids...>
using uid_arrow_idx_map_ptr = BaseMapTraits::uid_map_ptr
using uid_arrow_idx_map_t = BaseMapTraits::uid_map_t
using uid_map_ptr = std::shared_ptr<uid_map_t>
using uid_map_t = gtopt::flat_map<key_type, value_type>
using UidIdx = uid_arrow_idx_map_ptr
using value_type = ArrowIndex

Public static functions

static auto make_arrow_uids_idx(const ArrowTable& table) -> std::pair<std::shared_ptr<uid_arrow_idx_map_t>, ArrowPresentMask>
static auto make_arrow_uids_idx_long(const ArrowTable& table) -> std::pair<gtopt::flat_map<Uid, uid_arrow_idx_map_ptr>, ArrowPresentMask>
static auto make_uid_column(const ArrowTable& table, std::string_view name) -> std::expected<std::shared_ptr<arrow::CTypeTraits<Uid>::ArrayType>, std::string>

Function documentation

template<>
static std::pair<std::shared_ptr<uid_arrow_idx_map_t>, ArrowPresentMask> gtopt::UidToArrowIdx<StageUid>::make_arrow_uids_idx(const ArrowTable& table)

Build the (stage,) → row-index map. Bit 0 indicates whether the stage column was present; the single-axis variant always requires it.

template<>
static std::pair<gtopt::flat_map<Uid, uid_arrow_idx_map_ptr>, ArrowPresentMask> gtopt::UidToArrowIdx<StageUid>::make_arrow_uids_idx_long(const ArrowTable& table)

Long-layout variant — see the (Scenario, Stage, Block) overload. Groups [stage, uid, value] rows by element uid into per-uid (Stage) -> row submaps in one scan. Table must be single-chunk.