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

Method ReadBytes

be/src/exec/scanner-context.inline.h:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58inline bool ScannerContext::Stream::ReadBytes(int64_t length, uint8_t** buf,
59 Status* status, bool peek) {
60 int64_t bytes_read;
61 RETURN_IF_FALSE(GetBytes(length, buf, &bytes_read, status, peek));
62 if (UNLIKELY(length != bytes_read)) {
63 DCHECK_LT(bytes_read, length);
64 *status = ReportIncompleteRead(length, bytes_read);
65 return false;
66 }
67 return true;
68}
69
70inline bool ScannerContext::Stream::SkipBytes(int64_t length, Status* status) {
71 DCHECK_GE(length, 0);

Callers 13

GetRecordMethod · 0.80
ReadFileHeaderMethod · 0.80
ReadCompressedBlockMethod · 0.80
ReadFileHeaderMethod · 0.80
ReadKeyBuffersMethod · 0.80
ReadColumnBuffersMethod · 0.80
ProcessFooterMethod · 0.80
ReadPageDataMethod · 0.80
readMethod · 0.80
ReadFooterStreamMethod · 0.80
ReadFileHeaderMethod · 0.80
ParseMetadataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected