Class BigIntListener
java.lang.Object
org.apache.drill.exec.store.easy.json.values.ScalarListener
org.apache.drill.exec.store.easy.json.values.BigIntListener
- All Implemented Interfaces:
ValueListener
Listener for JSON integer values. Allows conversion from
Boolean, double and string types. (The conversion from double
is lossy, but perhaps better than failing the query.)
Conversion from Boolean is the usual semantics:
true = 1, false = 0. Conversion from string uses the Java
integer parsing semantics.
-
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
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, onText, schema, setNull, typeConversionError
-
Constructor Details
-
BigIntListener
-
-
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
-
setArrayNull
protected void setArrayNull()- Overrides:
setArrayNull
in classScalarListener
-