Class SimpleExtendedValueParser
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
org.apache.drill.exec.store.easy.json.extended.SimpleExtendedValueParser
- All Implemented Interfaces:
ElementParser
Parsers a Mongo extended type of the form:
{ $type: value }
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.extended.BaseExtendedValueParser
SCALAR_HINT
Fields inherited from class org.apache.drill.exec.store.easy.json.parser.ValueParser
listener
-
Constructor Summary
ConstructorDescriptionSimpleExtendedValueParser
(JsonStructureParser structParser, String typeName, ScalarListener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
void
parse
(TokenIterator tokenizer) protected String
typeName()
Methods inherited from class org.apache.drill.exec.store.easy.json.extended.BaseExtendedValueParser
parseExtended, requireField, requireScalar, requireToken, requireToken, syntaxError
Methods inherited from class org.apache.drill.exec.store.easy.json.parser.AbstractElementParser
errorFactory, structParser
-
Constructor Details
-
SimpleExtendedValueParser
public SimpleExtendedValueParser(JsonStructureParser structParser, String typeName, ScalarListener listener)
-
-
Method Details
-
typeName
- Specified by:
typeName
in classBaseExtendedValueParser
-
parse
-
formatHint
- Specified by:
formatHint
in classBaseExtendedValueParser
-