14namespace transaction {
23 std::array<common::sel_t, common::DEFAULT_VECTOR_CAPACITY>
rowsInVector;
26 std::unique_ptr<VectorUpdateInfo>
prev;
30 std::unique_ptr<ColumnChunkData>
data;
39 std::unique_ptr<VectorUpdateInfo>
movePrev() {
return std::move(
prev); }
40 void setPrev(std::unique_ptr<VectorUpdateInfo>
prev) { this->prev = std::move(
prev); }
54 vectorsInfo[vectorIdx] = std::move(vectorInfo);
72 std::vector<std::unique_ptr<VectorUpdateInfo>> vectorsInfo;
Definition value_vector.h:20
Definition update_info.h:46
void clearVectorInfo(common::idx_t vectorIdx)
Definition update_info.h:56
UpdateInfo()
Definition update_info.h:48
VectorUpdateInfo * getVectorInfo(const transaction::Transaction *transaction, common::idx_t idx) const
bool hasUpdates(const transaction::Transaction *transaction, common::row_idx_t startRow, common::length_t numRows) const
common::row_idx_t getNumUpdatedRows(const transaction::Transaction *transaction) const
void setVectorInfo(common::idx_t vectorIdx, std::unique_ptr< VectorUpdateInfo > vectorInfo)
Definition update_info.h:53
VectorUpdateInfo * update(const transaction::Transaction *transaction, common::idx_t vectorIdx, common::sel_t rowIdxInVector, const common::ValueVector &values)
common::idx_t getNumVectors() const
Definition update_info.h:58
Definition transaction.h:28
uint64_t length_t
Definition types.h:53
uint32_t idx_t
Definition types.h:39
constexpr uint64_t DEFAULT_VECTOR_CAPACITY
Definition constants.h:12
uint64_t transaction_t
Definition types.h:57
uint64_t sel_t
Definition types.h:24
uint64_t row_idx_t
Definition types.h:46
Definition alter_type.h:5
static std::unique_ptr< ColumnChunkData > createColumnChunkData(common::LogicalType dataType, bool enableCompression, uint64_t capacity, ResidencyState residencyState, bool hasNullData=true)
Definition update_info.h:21
VectorUpdateInfo * getNext() const
Definition update_info.h:43
common::transaction_t version
Definition update_info.h:22
std::unique_ptr< ColumnChunkData > data
Definition update_info.h:30
common::sel_t numRowsUpdated
Definition update_info.h:24
VectorUpdateInfo * getPrev() const
Definition update_info.h:41
void setNext(VectorUpdateInfo *next)
Definition update_info.h:42
void setPrev(std::unique_ptr< VectorUpdateInfo > prev)
Definition update_info.h:40
std::array< common::sel_t, common::DEFAULT_VECTOR_CAPACITY > rowsInVector
Definition update_info.h:23
VectorUpdateInfo * next
Definition update_info.h:28
std::unique_ptr< VectorUpdateInfo > prev
Definition update_info.h:26
std::unique_ptr< VectorUpdateInfo > movePrev()
Definition update_info.h:39
VectorUpdateInfo(const common::transaction_t transactionID, common::LogicalType dataType)
Definition update_info.h:32