Package org.apache.iceberg.catalog
Class TableIdentifierParser
- java.lang.Object
-
- org.apache.iceberg.catalog.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TableIdentifier
fromJson(com.fasterxml.jackson.databind.JsonNode node)
static TableIdentifier
fromJson(java.lang.String json)
static java.lang.String
toJson(TableIdentifier identifier)
static java.lang.String
toJson(TableIdentifier identifier, boolean pretty)
static void
toJson(TableIdentifier identifier, com.fasterxml.jackson.core.JsonGenerator generator)
-
-
-
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)
-
-