UidTraits struct
#include <gtopt/uid_traits.hpp>
Traits for UID-based data access patterns.
Provides type aliases and mappings for accessing data using UID keys
Derived classes
- struct InputTraits
- Input data access traits.
Public types
-
template<typename... Uid>using array_table_vector_uid_idx_t = std::tuple<array_
uid_ idx_ map_ t<Uid...>, table_ uid_ idx_ map_ t<Uid...>, vector_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using array_uid_idx_map_t = base_
map_ t<CFNameUid, arrow_ array_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using array_vector_uid_idx_v = std::variant<arrow_
array_ uid_ idx_ t<Uid...>, vector_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using arrow_array_uid_idx_t = std::tuple<ArrowChunkedArray, ArrowUidIdx<Uid...>, PresentMask>
-
template<typename... Uid>using arrow_table_uid_idx_t = std::tuple<ArrowTable, ArrowUidIdx<Uid...>, PresentMask>
-
template<typename... Uid>using ArrowUidIdx = UidToArrowIdx<Uid...>::
UidIdx -
template<typename Key, typename Value>using base_map_t = gtopt::
flat_map<Key, Value> - using CFName = std::tuple<ClassNameType, FieldNameType>
- using CFNameUid = std::tuple<ClassNameType, FieldNameType, Uid>
- using ClassNameType = std::string_view
- using FieldNameType = std::string_view
-
template<typename... Uid>using idx_key_t = UidToVectorIdx<Uid...>::
IndexKey -
template<typename value_type, typename... Uid>using idx_vector_t = mvector_
traits<value_type, idx_ key_ t<Uid...>>:: vector_type - using PresentMask = ArrowPresentMask
-
template<typename... Uid>using table_uid_idx_map_t = base_
map_ t<CFName, arrow_ table_ uid_ idx_ t<Uid...>> -
template<typename... Uid>using vector_uid_idx_t = VectorUidIdx<Uid...>
-
template<typename... Uid>using VectorUidIdx = UidToVectorIdx<Uid...>::
UidIdx
Typedef documentation
using gtopt:: UidTraits:: PresentMask = ArrowPresentMask
Bitmask describing which UID dimensions are present in an input table. Bit i corresponds to the i-th UID in the parameter pack. When a bit is 0, the underlying column was absent from the table and the loader has built / will look up the index with a default-constructed UID in that slot — i.e. the value is broadcast across that dimension. See UidToArrowIdx<...>::make_arrow_uids_idx.