Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::WindowInputExpression Struct Reference
Collaboration diagram for duckdb::WindowInputExpression:

Public Member Functions

 WindowInputExpression (DataChunk &chunk, column_t col_idx)
PhysicalType InternalType () const
template<typename T>
T GetCell (idx_t i) const
bool CellIsNull (idx_t i) const
void CopyCell (Vector &target, idx_t target_offset, idx_t width=1) const

Private Attributes

PhysicalType ptype
bool scalar
DataChunk & chunk
const column_t col_idx

Constructor & Destructor Documentation

◆ WindowInputExpression()

duckdb::WindowInputExpression::WindowInputExpression ( DataChunk & chunk,
column_t col_idx )
inline
163716 : ptype(PhysicalType::INVALID), scalar(true), chunk(chunk), col_idx(col_idx) {
163717 if (col_idx < chunk.data.size()) {
163718 auto &col = chunk.data[col_idx];
163719 ptype = col.GetType().InternalType();
163720 scalar = (col.GetVectorType() == VectorType::CONSTANT_VECTOR);
163721 if (!scalar && col.GetVectorType() != VectorType::FLAT_VECTOR) {
163722 col.Flatten(chunk.size());
163723 }
163724 }
163725 }

Member Function Documentation

◆ InternalType()

PhysicalType duckdb::WindowInputExpression::InternalType ( ) const
inline
163727 {
163728 return ptype;
163729 }

◆ GetCell()

template<typename T>
T duckdb::WindowInputExpression::GetCell ( idx_t i) const
inline
163732 {
163733 D_ASSERT(!chunk.data.empty());
163734 const auto data = FlatVector::GetData<T>(chunk.data[col_idx]);
163735 return data[scalar ? 0 : i];
163736 }

◆ CellIsNull()

bool duckdb::WindowInputExpression::CellIsNull ( idx_t i) const
inline
163738 {
163739 D_ASSERT(!chunk.data.empty());
163740 auto &col = chunk.data[col_idx];
163741
163742 if (scalar) {
163743 return ConstantVector::IsNull(col);
163744 }
163745 return FlatVector::IsNull(col, i);
163746 }

◆ CopyCell()

void duckdb::WindowInputExpression::CopyCell ( Vector & target,
idx_t target_offset,
idx_t width = 1 ) const
inline
163748 {
163749 D_ASSERT(!chunk.data.empty());
163750 auto &source = chunk.data[col_idx];
163751 auto source_offset = scalar ? 0 : target_offset;
163752 VectorOperations::Copy(source, target, source_offset + width, source_offset, target_offset);
163753 }

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