30 #include <unordered_map>
51 const std::vector<int64_t>& col_exprs_to_not_project);
99 void addColumn(
const std::vector<std::tuple<int8_t, int8_t>>& slots_for_col);
113 return !(*
this == that);
131 std::string str{
"Col Slot Context State\n"};
136 str +=
"\tN | P , L\n";
153 const int8_t logical_size,
154 const size_t column_idx);
int8_t getMinPaddedByteSize(const int8_t actual_min_byte_width) const
void alignPaddedSlots(const bool sort_on_gpu)
bool slotIsVarlen(const size_t slot_idx) const
void sort_on_gpu(int64_t *val_buff, int32_t *idx_buff, const uint64_t entry_count, const bool desc, const uint32_t chosen_bytes, ThrustAllocator &alloc, const int device_id)
std::unordered_map< SlotIndex, ArraySize > varlen_output_slot_map_
void setPaddedSlotWidthBytes(const size_t slot_idx, const int8_t bytes)
size_t getAllSlotsPaddedSize() const
size_t getAllSlotsAlignedPaddedSize() const
std::vector< std::vector< size_t > > col_to_slot_map_
bool hasVarlenOutput() const
std::vector< SlotSize > slot_sizes_
void setAllSlotsSize(const int8_t slot_width_size)
const SlotSize & getSlotInfo(const size_t slot_idx) const
size_t getColOnlyOffInBytes(const size_t slot_idx) const
void addColumnFlatBuffer(const int64_t flatbuffer_size)
size_t getCompactByteWidth() const
size_t getAlignedPaddedSizeForRange(const size_t end) const
bool operator==(const ColSlotContext &that) const
int64_t varlenOutputElementSize(const size_t slot_idx) const
void addColumn(const std::vector< std::tuple< int8_t, int8_t >> &slots_for_col)
void setAllSlotsPaddedSize(const int8_t padded_size)
bool checkSlotUsesFlatBufferFormat(const size_t slot_idx) const
bool operator==(const SlotSize &lhs, const SlotSize &rhs)
size_t getTotalBytesOfColumnarBuffers(const size_t entry_count) const
void addSlotForColumn(const int8_t logical_size, const size_t column_idx)
std::string toString() const
size_t getSlotCount() const
void setAllSlotsPaddedSizeToLogicalSize()
size_t getColCount() const
const std::vector< size_t > & getSlotsForCol(const size_t col_idx) const
bool operator!=(const ColSlotContext &that) const
void setAllUnsetSlotsPaddedSize(const int8_t padded_size)
int64_t getFlatBufferSize(const size_t slot_idx) const