| 42 | using IteratorType = stl::ArrayIterator<BooleanArray>; |
| 43 | |
| 44 | explicit BooleanArray(const std::shared_ptr<ArrayData>& data); |
| 45 | |
| 46 | BooleanArray(int64_t length, const std::shared_ptr<Buffer>& data, |
| 47 | const std::shared_ptr<Buffer>& null_bitmap = NULLPTR, |
| 48 | int64_t null_count = kUnknownNullCount, int64_t offset = 0); |
| 49 | |
| 50 | bool Value(int64_t i) const { |
| 51 | return bit_util::GetBit(reinterpret_cast<const uint8_t*>(raw_values_), |
| 52 | i + data_->offset); |
| 53 | } |
| 54 | |
| 55 | bool GetView(int64_t i) const { return Value(i); } |
| 56 | |