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

Method SkipTrue

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

Source from the content-addressed store, hash-verified

291
292template<class Stream>
293bool JsonSkipper<Stream>::SkipTrue() {
294 DCHECK(s_.Peek() == 't');
295 s_.Take();
296 ERROR_IF_FALSE(Consume('r'), kParseErrorValueInvalid);
297 ERROR_IF_FALSE(Consume('u'), kParseErrorValueInvalid);
298 ERROR_IF_FALSE(Consume('e'), kParseErrorValueInvalid);
299 return true;
300}
301
302template<class Stream>
303bool JsonSkipper<Stream>::SkipFalse() {

Callers 1

TestSkipMethod · 0.80

Calls 2

PeekMethod · 0.45
TakeMethod · 0.45

Tested by 1

TestSkipMethod · 0.64