| 925 | using TypedEncoder<DType>::Put; |
| 926 | |
| 927 | void Put(const T* buffer, int num_values) override { |
| 928 | if (num_values > 0) { |
| 929 | PARQUET_THROW_NOT_OK( |
| 930 | this->sink_.Append(reinterpret_cast<const uint8_t*>(buffer), |
| 931 | num_values * static_cast<int64_t>(sizeof(T)))); |
| 932 | this->num_values_in_buffer_ += num_values; |
| 933 | } |
| 934 | } |
| 935 | |
| 936 | void Put(const ::arrow::Array& values) override { |
| 937 | if (values.type_id() != ArrowType::type_id) { |