Class UtcDateValueListener
java.lang.Object
org.apache.drill.exec.store.easy.json.values.ScalarListener
org.apache.drill.exec.store.easy.json.values.UtcDateValueListener
- All Implemented Interfaces:
ValueListener
Drill-specific extension to allow dates only, expressed in UTC
to be consistent with Mongo timestamps.
Drill dates are in the local time zone, so conversion is needed. Drill dates are stored in ms, which is odd.
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.easy.json.values.ScalarListener
isArray, loader, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonValue(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer) Called for a JSON scalar token.Methods inherited from class org.apache.drill.exec.store.easy.json.values.ScalarListener
addValueToListenerMap, addValueToListenerMap, onText, schema, setArrayNull, setNull, typeConversionError
-
Constructor Details
-
UtcDateValueListener
-
-
Method Details
-
onValue
Description copied from interface:ValueListenerCalled for a JSON scalar token.- Specified by:
onValuein interfaceValueListener- Overrides:
onValuein classScalarListener- Parameters:
token- the scalar tokentokenizer- provides access to the value of the token
-