Class EmptyArrayParser
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
org.apache.drill.exec.store.easy.json.parser.EmptyArrayParser
- All Implemented Interfaces:
ElementParser
- Direct Known Subclasses:
EmptyArrayFieldParser
Represents an empty array: the case where the parser has seen only
[]
, but no array elements which would indicate the type.
Resolves to a specific type upon
presentation of the first element. If that element is
null
, we must still choose a type to record nulls.
This array listener holds no element since none has been created yet; we use this only while we see empty arrays.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
parse
(TokenIterator tokenizer) protected abstract ElementParser
resolve
(TokenIterator tokenizer) Replace this parser with a new parser based on the current parse context.Methods inherited from class org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
errorFactory, structParser
-
Field Details
-
key
-
-
Constructor Details
-
EmptyArrayParser
-
-
Method Details
-
parse
-
resolve
Replace this parser with a new parser based on the current parse context.
-