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

Method SkipArray

be/src/exec/json/json-parser.cc:403–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401
402template<class Stream>
403bool JsonSkipper<Stream>::SkipArray() {
404 DCHECK(s_.Peek() == '[');
405 s_.Take();
406 SkipWhitespace();
407 if (Consume(']')) return true;
408 while (true) {
409 RETURN_IF_FALSE(SkipValue());
410 SkipWhitespace();
411 if (Consume(',')) SkipWhitespace();
412 else if (Consume(']')) return true;
413 else ERROR_IF_FALSE(false, kParseErrorArrayMissCommaOrSquareBracket);
414 }
415}
416
417template<class Stream>
418bool JsonSkipper<Stream>::SkipValue() {

Callers 1

TestSkipMethod · 0.80

Calls 3

SkipWhitespaceClass · 0.85
PeekMethod · 0.45
TakeMethod · 0.45

Tested by 1

TestSkipMethod · 0.64