| 34 | } |
| 35 | |
| 36 | void ValueVector::setState(const std::shared_ptr<DataChunkState>& state_) { |
| 37 | this->state = state_; |
| 38 | if (dataType.getPhysicalType() == PhysicalTypeID::STRUCT) { |
| 39 | auto childrenVectors = StructVector::getFieldVectors(this); |
| 40 | for (auto& childVector : childrenVectors) { |
| 41 | childVector->setState(state_); |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | uint32_t ValueVector::countNonNull() const { |
| 47 | if (hasNoNullsGuarantee()) { |