Package org.apache.iceberg
Class TableMetadataParser
java.lang.Object
org.apache.iceberg.TableMetadataParser
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TableMetadata
fromJson
(com.fasterxml.jackson.databind.JsonNode node) static TableMetadata
Read TableMetadata from a JSON string.static TableMetadata
static TableMetadata
Read TableMetadata from a JSON string.static TableMetadata
static String
getFileExtension
(String codecName) static String
static String
static void
internalWrite
(TableMetadata metadata, OutputFile outputFile, boolean overwrite) static void
overwrite
(TableMetadata metadata, OutputFile outputFile) static TableMetadata
static TableMetadata
static String
toJson
(TableMetadata metadata) static void
toJson
(TableMetadata metadata, com.fasterxml.jackson.core.JsonGenerator generator) static void
write
(TableMetadata metadata, OutputFile outputFile)
-
Method Details
-
overwrite
-
write
-
internalWrite
-
getFileExtension
-
getFileExtension
-
getOldFileExtension
-
toJson
-
toJson
public static void toJson(TableMetadata metadata, com.fasterxml.jackson.core.JsonGenerator generator) throws IOException - Throws:
IOException
-
read
-
read
-
fromJson
Read TableMetadata from a JSON string.The TableMetadata's metadata file location will be unset.
- Parameters:
json
- a JSON string of table metadata- Returns:
- a TableMetadata object
-
fromJson
Read TableMetadata from a JSON string.- Parameters:
metadataLocation
- metadata location for the returnedTableMetadata
json
- a JSON string of table metadata- Returns:
- a TableMetadata object
-
fromJson
-
fromJson
-
fromJson
public static TableMetadata fromJson(String metadataLocation, com.fasterxml.jackson.databind.JsonNode node)
-