Class VarCharListener
java.lang.Object
org.apache.drill.exec.store.easy.json.values.ScalarListener
org.apache.drill.exec.store.easy.json.values.VarCharListener
- All Implemented Interfaces:
ValueListener
Value listener for JSON string values. Allows conversion from
other scalar types using the Java
toString()
semantics.
Use the "text-mode" hint in a provided schema to get the literal
JSON value.-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.values.ScalarListener
isArray, loader, writer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when a parser converts a JSON structure to text rather than delivering the token directly.void
onValue
(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer) Called for a JSON scalar token.protected void
Methods inherited from class org.apache.drill.exec.store.easy.json.values.ScalarListener
addValueToListenerMap, addValueToListenerMap, schema, setNull, typeConversionError
-
Constructor Details
-
VarCharListener
-
-
Method Details
-
onValue
Description copied from interface:ValueListener
Called for a JSON scalar token.- Specified by:
onValue
in interfaceValueListener
- Overrides:
onValue
in classScalarListener
- Parameters:
token
- the scalar tokentokenizer
- provides access to the value of the token
-
onText
Description copied from interface:ValueListener
Called when a parser converts a JSON structure to text rather than delivering the token directly.- Specified by:
onText
in interfaceValueListener
- Overrides:
onText
in classScalarListener
- Parameters:
value
- the string value of the parsed token or structure
-
setArrayNull
protected void setArrayNull()- Overrides:
setArrayNull
in classScalarListener
-