public class UtcTimestampValueListener extends ScalarListener
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.
isArray, loader, writer
Constructor and Description |
---|
UtcTimestampValueListener(JsonLoaderImpl loader,
ScalarWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
onValue(com.fasterxml.jackson.core.JsonToken token,
TokenIterator tokenizer)
Called for a JSON scalar token.
|
onText, schema, setArrayNull, setNull, typeConversionError
public UtcTimestampValueListener(JsonLoaderImpl loader, ScalarWriter writer)
public void onValue(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer)
ValueListener
onValue
in interface ValueListener
onValue
in class ScalarListener
token
- the scalar tokentokenizer
- provides access to the value of the tokenCopyright © 1970 The Apache Software Foundation. All rights reserved.