Class UtcTimestampValueListener
java.lang.Object
org.apache.drill.exec.store.easy.json.values.ScalarListener
org.apache.drill.exec.store.easy.json.values.UtcTimestampValueListener
- All Implemented Interfaces:
ValueListener
Per the
V1 docs:
In Strict mode,<date>
is an ISO-8601 date format with a mandatory time zone field following the template YYYY-MM-DDTHH:mm:ss.mmm<+/-Offset>.In Shell mode,
<date>
is the JSON representation of a 64-bit signed integer giving the number of milliseconds since epoch UTC.
Drill dates are in the local time zone, so conversion is needed.
-
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.Methods inherited from class org.apache.drill.exec.store.easy.json.values.ScalarListener
addValueToListenerMap, addValueToListenerMap, onText, schema, setArrayNull, setNull, typeConversionError
-
Constructor Details
-
UtcTimestampValueListener
-
-
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
-