public class JsonUtils
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | JsonUtils.ColumnDefaultValueDeserializerCustom JSON deserializer for Column default value. | 
| static class  | JsonUtils.ColumnDefaultValueSerializerCustom JSON serializer for Column default value. | 
| static class  | JsonUtils.ColumnPositionDeserializerCustom JSON deserializer for ColumnPosition objects. | 
| static class  | JsonUtils.ColumnPositionSerializerCustom JSON serializer for SortOrderDTO objects. | 
| static class  | JsonUtils.DistributionDeserializerCustom JSON deserializer for DistributionDTO objects. | 
| static class  | JsonUtils.DistributionSerializerCustom JSON serializer for DistributionDTO objects. | 
| static class  | JsonUtils.IndexDeserializerCustom JSON deserializer for Index objects. | 
| static class  | JsonUtils.IndexSerializerCustom JSON serializer for Index objects. | 
| static class  | JsonUtils.NameIdentifierDeserializerCustom JSON deserializer for NameIdentifier objects. | 
| static class  | JsonUtils.NameIdentifierSerializerCustom JSON serializer for NameIdentifier objects. | 
| static class  | JsonUtils.PartitionDTODeserializerCustom JSON deserializer for PartitionDTO objects. | 
| static class  | JsonUtils.PartitionDTOSerializerCustom JSON serializer for PartitionDTO objects. | 
| static class  | JsonUtils.PartitioningDeserializerCustom JSON deserializer for Partitioning objects. | 
| static class  | JsonUtils.PartitioningSerializerCustom JSON serializer for PartitionDTO objects. | 
| static class  | JsonUtils.SortOrderDeserializerCustom JSON deserializer for SortOrderDTO objects. | 
| static class  | JsonUtils.SortOrderSerializerCustom JSON serializer for SortOrderDTO objects. | 
| static class  | JsonUtils.TypeDeserializerCustom JSON deserializer for Gravitino Type objects. | 
| static class  | JsonUtils.TypeSerializerCustom 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 an 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()Returns a shared  ObjectMapperinstance for JSON serialization/deserialization test. | 
public static com.fasterxml.jackson.databind.ObjectMapper objectMapper()
ObjectMapper instance for JSON serialization/deserialization test.
 Note: This instance is intended for testing purposes only. For production use, obtain an
 ObjectMapper from the following providers:
 
org.apache.gravitino.client.ObjectMapperProvider
   org.apache.gravitino.server.web.ObjectMapperProvider
 ObjectMapper instance for testing.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.