| 678 | } |
| 679 | |
| 680 | void SetSlice(int64_t offset, int64_t length) { |
| 681 | this->offset = offset; |
| 682 | this->length = length; |
| 683 | if (this->type->id() == Type::NA) { |
| 684 | this->null_count = this->length; |
| 685 | } else if (buffers[0].data != NULLPTR) { |
| 686 | this->null_count = kUnknownNullCount; |
| 687 | } else { |
| 688 | this->null_count = 0; |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | /// \brief Return physical null count, or compute and set it if it's not known |
| 693 | int64_t GetNullCount() const; |