Class ValueDefFactory
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.ValueDefFactory
Constructs a
ValueDef
by looking ahead on the input stream.
Looking ahead is safe because this class only looks at syntactic
tokens such as {
, [
or the first value token.
The underlying JSON parser is left with the first value token
as its current token. Pushes other tokens back on the token stack
so they can be re-consumed by the actual parser.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValueDef
arrayLookAhead
(TokenIterator tokenizer) static ValueDef
lookAhead
(TokenIterator tokenizer)
-
Constructor Details
-
ValueDefFactory
-
-
Method Details
-
lookAhead
-
arrayLookAhead
-