| 393 | |
| 394 | template <typename SequenceType> |
| 395 | void PlainEncoder<BooleanType>::PutImpl(const SequenceType& src, int num_values) { |
| 396 | PARQUET_THROW_NOT_OK(sink_.Reserve(num_values)); |
| 397 | for (int i = 0; i < num_values; ++i) { |
| 398 | sink_.UnsafeAppend(src[i]); |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | int64_t PlainEncoder<BooleanType>::EstimatedDataEncodedSize() { |
| 403 | return ::arrow::bit_util::BytesForBits(sink_.length()); |
nothing calls this directly
no test coverage detected