Package org.apache.iceberg.mapping
Class NameMappingParser
- java.lang.Object
-
- org.apache.iceberg.mapping.NameMappingParser
-
public class NameMappingParser extends java.lang.Object
Parses external name mappings from a JSON representation.[ { "field-id": 1, "names": ["id", "record_id"] }, { "field-id": 2, "names": ["data"] }, { "field-id": 3, "names": ["location"], "fields": [ { "field-id": 4, "names": ["latitude", "lat"] }, { "field-id": 5, "names": ["longitude", "long"] } ] } ]
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NameMapping
fromJson(java.lang.String json)
static java.lang.String
toJson(NameMapping mapping)
-
-
-
Method Detail
-
toJson
public static java.lang.String toJson(NameMapping mapping)
-
fromJson
public static NameMapping fromJson(java.lang.String json)
-
-