Class VariantParser
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
org.apache.drill.exec.store.easy.json.parser.FullValueParser
org.apache.drill.exec.store.easy.json.loader.VariantParser
- All Implemented Interfaces:
ElementParser
Parser which accepts all JSON values and converts them to actions on a
UNION vector writer. Scalar values are written to the writer directly.
Object and array values create extra layers of parser and listener.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ArrayParser
buildArrayParser
(TokenIterator tokenizer) protected ObjectParser
buildObjectParser
(TokenIterator tokenizer) protected void
onValue
(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer) Methods inherited from class org.apache.drill.exec.store.easy.json.parser.FullValueParser
parse
Methods inherited from class org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
errorFactory, structParser
-
Constructor Details
-
VariantParser
-
-
Method Details
-
onValue
- Specified by:
onValue
in classFullValueParser
-
buildObjectParser
- Specified by:
buildObjectParser
in classFullValueParser
-
buildArrayParser
- Specified by:
buildArrayParser
in classFullValueParser
-