Class TransactionLogParser
- java.lang.Object
-
- io.trino.plugin.deltalake.transactionlog.TransactionLogParser
-
public final class TransactionLogParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static DateTimeFormatterJSON_STATISTICS_TIMESTAMP_FORMATTERstatic StringLAST_CHECKPOINT_FILENAMEstatic DateTimeFormatterPARTITION_TIMESTAMP_FORMATTERstatic LocalDateSTART_OF_MODERN_ERA
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectdeserializeColumnValue(DeltaLakeColumnHandle column, String valueString, Function<String,Long> timestampReader)static ObjectdeserializePartitionValue(DeltaLakeColumnHandle column, Optional<String> valueString)static longgetMandatoryCurrentVersion(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation)static DeltaLakeTransactionLogEntryparseJson(String json)
-
-
-
Field Detail
-
START_OF_MODERN_ERA
public static final LocalDate START_OF_MODERN_ERA
-
LAST_CHECKPOINT_FILENAME
public static final String LAST_CHECKPOINT_FILENAME
- See Also:
- Constant Field Values
-
PARTITION_TIMESTAMP_FORMATTER
public static final DateTimeFormatter PARTITION_TIMESTAMP_FORMATTER
-
JSON_STATISTICS_TIMESTAMP_FORMATTER
public static final DateTimeFormatter JSON_STATISTICS_TIMESTAMP_FORMATTER
-
-
Method Detail
-
parseJson
public static DeltaLakeTransactionLogEntry parseJson(String json) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deserializePartitionValue
@Nullable public static Object deserializePartitionValue(DeltaLakeColumnHandle column, Optional<String> valueString)
-
deserializeColumnValue
public static Object deserializeColumnValue(DeltaLakeColumnHandle column, String valueString, Function<String,Long> timestampReader)
-
getMandatoryCurrentVersion
public static long getMandatoryCurrentVersion(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation) throws IOException- Throws:
IOException
-
-