Top Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro.schema

public Class DateTimeVisitor

extends Base
implements SchemaBuilder
Class Inheritance
All Implemented Interfaces
com.fasterxml.jackson.dataformat.avro.schema.SchemaBuilder
Imports
com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor, org.apache.avro.LogicalType, .Schema, java.time.Instant, .LocalDate, .LocalDateTime, .LocalTime, .OffsetDateTime, .ZonedDateTime

Field Summary

Modifier and TypeField and Description
protected JavaType
protected JsonParser.NumberType
private static final String
private static final String
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Schema
private String
public void
numberType(JsonParser.NumberType type)

Overrides com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor.Base.numberType.

Implements com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor.numberType.

Method called to provide more exact type of number being serialized (regardless of logical type, which may be java.util.Date or java.lang.Enum, in addition to actual numeric types like java.lang.Integer).

Field Detail

_hintback to summary
protected JavaType _hint
_typeback to summary
protected JsonParser.NumberType _type
DATEback to summary
private static final String DATE
LOCAL_TIMESTAMP_MILLISback to summary
private static final String LOCAL_TIMESTAMP_MILLIS
TIME_MILLISback to summary
private static final String TIME_MILLIS
TIMESTAMP_MILLISback to summary
private static final String TIMESTAMP_MILLIS

Constructor Detail

DateTimeVisitorback to summary
public DateTimeVisitor()
DateTimeVisitorback to summary
public DateTimeVisitor(JavaType typeHint)

Method Detail

builtAvroSchemaback to summary
public Schema builtAvroSchema()

Implements com.fasterxml.jackson.dataformat.avro.schema.SchemaBuilder.builtAvroSchema.

Annotations
@Override
getLogicalTypeback to summary
private String getLogicalType(Schema.Type avroType, JavaType hint)
numberTypeback to summary
public void numberType(JsonParser.NumberType type)

Overrides com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor.Base.numberType.

Implements com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor.numberType.

Doc from com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor.numberType.

Method called to provide more exact type of number being serialized (regardless of logical type, which may be java.util.Date or java.lang.Enum, in addition to actual numeric types like java.lang.Integer).

Annotations
@Override