Class BaseExtendedValueParser
java.lang.Object
org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
org.apache.drill.exec.store.easy.json.parser.ValueParser
org.apache.drill.exec.store.easy.json.extended.BaseExtendedValueParser
- All Implemented Interfaces:
ElementParser
- Direct Known Subclasses:
MongoBinaryValueParser
,MongoDateValueParser
,SimpleExtendedValueParser
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.parser.ValueParser
listener
-
Constructor Summary
ConstructorDescriptionBaseExtendedValueParser
(JsonStructureParser structParser, ScalarListener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected void
parseExtended
(TokenIterator tokenizer, String typeName) Parse a value in extended form:protected void
requireField
(TokenIterator tokenizer, String fieldName) protected com.fasterxml.jackson.core.JsonToken
requireScalar
(TokenIterator tokenizer) protected void
requireToken
(com.fasterxml.jackson.core.JsonToken token, com.fasterxml.jackson.core.JsonToken expected) protected void
requireToken
(TokenIterator tokenizer, com.fasterxml.jackson.core.JsonToken expected) protected RuntimeException
protected abstract String
typeName()
Methods inherited from class org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
errorFactory, structParser
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.store.easy.json.parser.ElementParser
parse
-
Field Details
-
SCALAR_HINT
- See Also:
-
-
Constructor Details
-
BaseExtendedValueParser
-
-
Method Details
-
typeName
-
parseExtended
Parse a value in extended form:
.{"$type": value}</code
Uses the given type name. Can parse an entire field, or a subfield, as in the V2 date format.
-
requireToken
-
requireToken
protected void requireToken(com.fasterxml.jackson.core.JsonToken token, com.fasterxml.jackson.core.JsonToken expected) -
requireScalar
-
requireField
-
syntaxError
-
formatHint
-