public class JsonUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonUtils.ColumnDefaultValueDeserializer
Custom JSON deserializer for Column default value.
|
static class |
JsonUtils.ColumnDefaultValueSerializer
Custom JSON serializer for Column default value.
|
static class |
JsonUtils.ColumnPositionDeserializer
Custom JSON deserializer for ColumnPosition objects.
|
static class |
JsonUtils.ColumnPositionSerializer
Custom JSON serializer for SortOrderDTO objects.
|
static class |
JsonUtils.DistributionDeserializer
Custom JSON deserializer for DistributionDTO objects.
|
static class |
JsonUtils.DistributionSerializer
Custom JSON serializer for DistributionDTO objects.
|
static class |
JsonUtils.IndexDeserializer
Custom JSON deserializer for Index objects.
|
static class |
JsonUtils.IndexSerializer
Custom JSON serializer for Index objects.
|
static class |
JsonUtils.NameIdentifierDeserializer
Custom JSON deserializer for NameIdentifier objects.
|
static class |
JsonUtils.NameIdentifierSerializer
Custom JSON serializer for NameIdentifier objects.
|
static class |
JsonUtils.PartitionDTODeserializer
Custom JSON deserializer for PartitionDTO objects.
|
static class |
JsonUtils.PartitionDTOSerializer
Custom JSON serializer for PartitionDTO objects.
|
static class |
JsonUtils.PartitioningDeserializer
Custom JSON deserializer for Partitioning objects.
|
static class |
JsonUtils.PartitioningSerializer
Custom JSON serializer for PartitionDTO objects.
|
static class |
JsonUtils.SortOrderDeserializer
Custom JSON deserializer for SortOrderDTO objects.
|
static class |
JsonUtils.SortOrderSerializer
Custom JSON serializer for SortOrderDTO objects.
|
static class |
JsonUtils.TypeDeserializer
Custom JSON deserializer for Gravitino Type objects.
|
static class |
JsonUtils.TypeSerializer
Custom JSON serializer for Gravitino Type objects.
|
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
anyFieldMapper()
Get the shared AnyFieldMapper instance for JSON serialization/deserialization.
|
static int |
getInt(java.lang.String property,
com.fasterxml.jackson.databind.JsonNode node)
Get a int value from a JSON node property.
|
static long |
getLong(java.lang.String property,
com.fasterxml.jackson.databind.JsonNode node)
Get a long value from a JSON node property.
|
static java.lang.String |
getString(java.lang.String property,
com.fasterxml.jackson.databind.JsonNode node)
Get a string value from a JSON node property.
|
static com.fasterxml.jackson.databind.ObjectMapper |
objectMapper()
Get the shared ObjectMapper instance for JSON serialization/deserialization.
|
public static com.fasterxml.jackson.databind.ObjectMapper objectMapper()
public static com.fasterxml.jackson.databind.ObjectMapper anyFieldMapper()
public static int getInt(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
property
- The property name.node
- The JSON node.public static long getLong(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
property
- The property name.node
- The JSON node.public static java.lang.String getString(java.lang.String property, com.fasterxml.jackson.databind.JsonNode node)
property
- The property name.node
- The JSON node.java.lang.IllegalArgumentException
- if the property is missing in the JSON node.