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

Method SkipBatch

be/src/util/bit-stream-utils.inline.h:176–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176inline bool BatchedBitReader::SkipBatch(int bit_width, int num_values_to_skip) {
177 DCHECK(buffer_pos_ != nullptr);
178 DCHECK_GT(bit_width, 0);
179 DCHECK_LE(bit_width, MAX_BITWIDTH);
180 DCHECK_GT(num_values_to_skip, 0);
181
182 int skip_bytes = BitUtil::RoundUpNumBytes(bit_width * num_values_to_skip);
183 if (skip_bytes > buffer_end_ - buffer_pos_) return false;
184 buffer_pos_ += skip_bytes;
185 return true;
186}
187
188template <typename T>
189inline int BatchedBitReader::UnpackAndDecodeBatch(

Callers 3

SkipValuesMethod · 0.80
TestSkippingFunction · 0.80
SkipLiteralValuesMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestSkippingFunction · 0.64