Package com.atlan.serde
Class CustomMetadataMapSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<Map<String,CustomMetadataAttributes>>
com.atlan.serde.CustomMetadataMapSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,Serializable
public class CustomMetadataMapSerializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<Map<String,CustomMetadataAttributes>>
Custom serialization of a map of custom metadata.
In particular, this translates from the human-readable name into the Atlan-internal hashed-string representation for
custom metadata.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(Map<String, CustomMetadataAttributes> cmMap, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp) void
serializeWithType
(Map<String, CustomMetadataAttributes> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
CustomMetadataMapSerializer
-
CustomMetadataMapSerializer
public CustomMetadataMapSerializer(Class<Map<String, CustomMetadataAttributes>> t, AtlanClient client)
-
-
Method Details
-
serializeWithType
public void serializeWithType(Map<String, CustomMetadataAttributes> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException- Overrides:
serializeWithType
in classcom.fasterxml.jackson.databind.JsonSerializer<Map<String,
CustomMetadataAttributes>> - Throws:
IOException
-
serialize
public void serialize(Map<String, CustomMetadataAttributes> cmMap, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp) throws IOException, com.fasterxml.jackson.core.JsonProcessingException- Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<Map<String,
CustomMetadataAttributes>> - Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-