| 665 | public: |
| 666 | using builder_offset_type = typename BinaryBuilderT::offset_type; |
| 667 | explicit BinaryMemoTable(MemoryPool* pool, int64_t entries = 0, |
| 668 | int64_t values_size = -1) |
| 669 | : hash_table_(pool, static_cast<uint64_t>(entries)), binary_builder_(pool) { |
| 670 | const int64_t data_size = (values_size < 0) ? entries * 4 : values_size; |
| 671 | ARROW_DCHECK_OK(binary_builder_.Resize(entries)); |
| 672 | ARROW_DCHECK_OK(binary_builder_.ReserveData(data_size)); |
| 673 | } |
| 674 | |
| 675 | int32_t Get(const void* data, builder_offset_type length) const { |
| 676 | hash_t h = ComputeStringHash<0>(data, length); |
nothing calls this directly
no test coverage detected