public class HasDruidNameSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<HasDruidName>
Modifier and Type | Field and Description |
---|---|
static HasDruidNameSerializer |
INSTANCE
Singleton instance to use.
|
Constructor and Description |
---|
HasDruidNameSerializer()
Note: usually you should NOT create new instances, but instead use
INSTANCE which is stateless and fully
thread-safe. |
Modifier and Type | Method and Description |
---|---|
void |
acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper visitor,
com.fasterxml.jackson.databind.JavaType typeHint) |
com.fasterxml.jackson.databind.JsonNode |
getSchema(com.fasterxml.jackson.databind.SerializerProvider provider,
Type typeHint) |
boolean |
isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider,
HasDruidName value) |
void |
serialize(HasDruidName value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serializeWithType(HasDruidName value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
Default implementation will write type prefix, call regular serialization method (since assumption is that value
itself does not need JSON Array or Object start/end markers), and then write type suffix.
|
createObjectNode, createSchemaNode, createSchemaNode, findConvertingContentSerializer, findPropertyFilter, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow
public static final HasDruidNameSerializer INSTANCE
public HasDruidNameSerializer()
INSTANCE
which is stateless and fully
thread-safe. However, there are cases where constructor is needed; for example, when using explicit serializer
annotations like JsonSerialize.using()
.public boolean isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider, HasDruidName value)
isEmpty
in class com.fasterxml.jackson.databind.JsonSerializer<HasDruidName>
public void serialize(HasDruidName value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
serialize
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<HasDruidName>
IOException
public void serializeWithType(HasDruidName value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException
serializeWithType
in class com.fasterxml.jackson.databind.JsonSerializer<HasDruidName>
IOException
public com.fasterxml.jackson.databind.JsonNode getSchema(com.fasterxml.jackson.databind.SerializerProvider provider, Type typeHint) throws com.fasterxml.jackson.databind.JsonMappingException
getSchema
in interface com.fasterxml.jackson.databind.jsonschema.SchemaAware
getSchema
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<HasDruidName>
com.fasterxml.jackson.databind.JsonMappingException
public void acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper visitor, com.fasterxml.jackson.databind.JavaType typeHint) throws com.fasterxml.jackson.databind.JsonMappingException
acceptJsonFormatVisitor
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
acceptJsonFormatVisitor
in class com.fasterxml.jackson.databind.ser.std.StdSerializer<HasDruidName>
com.fasterxml.jackson.databind.JsonMappingException
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.