Class RootParser.EmbeddedArrayParser
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.RootParser
org.apache.drill.exec.store.easy.json.parser.RootParser.EmbeddedArrayParser
- Enclosing class:
- RootParser
Parser for data embedded within a message structure which is
encoded as an array of objects. Example:
{ status: "ok", results: [ { ... }, { ... } ] }
The closing array bracket indicates the end of data; the message parser will parse any content after the closing bracket.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.store.easy.json.parser.RootParser
RootParser.EmbeddedArrayParser, RootParser.EmbeddedObjectParser, RootParser.RootArrayParser, RootParser.RootObjectParser
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.parser.RootParser
logger, rootObject
-
Constructor Summary
ConstructorDescriptionEmbeddedArrayParser
(JsonStructureParser structParser, MessageParser messageParser) -
Method Summary
Modifier and TypeMethodDescriptionboolean
parseRoot
(TokenIterator tokenizer) Parse one data object.Methods inherited from class org.apache.drill.exec.store.easy.json.parser.RootParser
errorFactory, parseRootObject
-
Constructor Details
-
EmbeddedArrayParser
-
-
Method Details
-
parseRoot
Description copied from class:RootParser
Parse one data object. This is the "root" object which may contain nested objects. Overridden to handle different end-of-data indicators for different contexts.- Specified by:
parseRoot
in classRootParser
- Returns:
true
if an object was found,false
if the end of data was reached.
-