MCPcopy Create free account
hub / github.com/apache/arrow / BinaryMemoTable

Method BinaryMemoTable

cpp/src/arrow/util/hashing.h:667–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 2

ResizeMethod · 0.45
ReserveDataMethod · 0.45

Tested by

no test coverage detected