MCPcopy Create free account
hub / github.com/apache/impala / AllocateBytes

Method AllocateBytes

be/src/runtime/sorter.cc:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63uint8_t* Sorter::Page::AllocateBytes(int64_t len) {
64 DCHECK_GE(len, 0);
65 DCHECK_LE(len, BytesRemaining());
66 DCHECK(data_ != nullptr);
67 uint8_t* result = data_ + valid_data_len_;
68 valid_data_len_ += len;
69 return result;
70}
71
72void Sorter::Page::FreeBytes(int64_t len) {
73 DCHECK_GE(len, 0);

Callers 2

AddBatchInternalMethod · 0.45
UnpinAllPagesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected