Class TransactionLogTail
- java.lang.Object
-
- io.trino.plugin.deltalake.transactionlog.checkpoint.TransactionLogTail
-
public class TransactionLogTail extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<List<DeltaLakeTransactionLogEntry>>getEntriesFromJson(org.apache.hadoop.fs.Path transactionLogFilePath, org.apache.hadoop.fs.FileSystem fileSystem)List<DeltaLakeTransactionLogEntry>getFileEntries()Optional<TransactionLogTail>getUpdatedTail(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation)longgetVersion()static booleanisFileNotFoundException(IOException e)static TransactionLogTailloadNewTail(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation, Optional<Long> startVersion)static TransactionLogTailloadNewTail(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation, Optional<Long> startVersion, Optional<Long> endVersion)
-
-
-
Method Detail
-
loadNewTail
public static TransactionLogTail loadNewTail(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation, Optional<Long> startVersion) throws IOException
- Throws:
IOException
-
loadNewTail
public static TransactionLogTail loadNewTail(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation, Optional<Long> startVersion, Optional<Long> endVersion) throws IOException
- Throws:
IOException
-
getUpdatedTail
public Optional<TransactionLogTail> getUpdatedTail(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path tableLocation) throws IOException
- Throws:
IOException
-
getEntriesFromJson
public static Optional<List<DeltaLakeTransactionLogEntry>> getEntriesFromJson(org.apache.hadoop.fs.Path transactionLogFilePath, org.apache.hadoop.fs.FileSystem fileSystem) throws IOException
- Throws:
IOException
-
isFileNotFoundException
public static boolean isFileNotFoundException(IOException e)
-
getFileEntries
public List<DeltaLakeTransactionLogEntry> getFileEntries()
-
getVersion
public long getVersion()
-
-