◆ 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 }
◆ 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: