Class TableIdentifierParser


  • public class TableIdentifierParser
    extends java.lang.Object
    Parses TableIdentifiers from a JSON representation, which is the JSON representation utilized in the REST catalog.

    For TableIdentifier.of("dogs", "owners.and.handlers", "food"), we'd have the following JSON representation, where the dot character of an individual level is in the namespace is replaced by the unit separator byte character.

     {
       "namespace": ["dogs", "owners.and.handlers"],
       "name": "food"
     }
     
    • Method Detail

      • toJson

        public static java.lang.String toJson​(TableIdentifier identifier)
      • toJson

        public static java.lang.String toJson​(TableIdentifier identifier,
                                              boolean pretty)
      • toJson

        public static void toJson​(TableIdentifier identifier,
                                  com.fasterxml.jackson.core.JsonGenerator generator)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • fromJson

        public static TableIdentifier fromJson​(java.lang.String json)
      • fromJson

        public static TableIdentifier fromJson​(com.fasterxml.jackson.databind.JsonNode node)