Class NullFieldParser
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
org.apache.drill.exec.store.easy.json.parser.NullValueParser
org.apache.drill.exec.store.easy.json.loader.NullFieldParser
- All Implemented Interfaces:
ElementParser
Parser for a field that contains only nulls. Waits, consuming nulls, until
a non-null value appears, after which this parser is replaced by the
"resolved" parser. The loader will force resolution at the end of the
batch if no actual values are seen before then.
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.parser.NullValueParser
key
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected ElementParser
resolve
(TokenIterator tokenizer) The column type is now known from context.Methods inherited from class org.apache.drill.exec.store.easy.json.parser.NullValueParser
parse
Methods inherited from class org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
errorFactory, structParser
-
Constructor Details
-
NullFieldParser
-
-
Method Details
-
forceResolution
public void forceResolution() -
resolve
The column type is now known from context. Create a new scalar column, writer and parser to replace this parser.- Specified by:
resolve
in classNullValueParser
-