public interface FileStoreCommit extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
abort(List<CommitMessage> commitMessages)
Abort an unsuccessful commit.
|
void |
close() |
void |
commit(ManifestCommittable committable,
Map<String,String> properties)
Commit from manifest committable.
|
void |
commit(ManifestCommittable committable,
Map<String,String> properties,
boolean checkAppendFiles)
Commit from manifest committable with checkAppendFiles.
|
void |
commitStatistics(Statistics stats,
long commitIdentifier)
Commit new statistics.
|
void |
dropPartitions(List<Map<String,String>> partitions,
long commitIdentifier)
Drop multiple partitions.
|
FileIO |
fileIO() |
List<ManifestCommittable> |
filterCommitted(List<ManifestCommittable> committables)
Find out which committables need to be retried when recovering from the failure.
|
FileStoreCommit |
ignoreEmptyCommit(boolean ignoreEmptyCommit) |
void |
overwrite(Map<String,String> partition,
ManifestCommittable committable,
Map<String,String> properties)
Overwrite from manifest committable and partition.
|
FileStorePathFactory |
pathFactory() |
void |
truncateTable(long commitIdentifier) |
FileStoreCommit |
withLock(Lock lock)
With global lock.
|
FileStoreCommit |
withMetrics(CommitMetrics metrics)
With metrics to measure commits.
|
FileStoreCommit |
withPartitionExpire(PartitionExpire partitionExpire) |
FileStoreCommit withLock(Lock lock)
FileStoreCommit ignoreEmptyCommit(boolean ignoreEmptyCommit)
FileStoreCommit withPartitionExpire(PartitionExpire partitionExpire)
List<ManifestCommittable> filterCommitted(List<ManifestCommittable> committables)
void commit(ManifestCommittable committable, Map<String,String> properties)
void commit(ManifestCommittable committable, Map<String,String> properties, boolean checkAppendFiles)
void overwrite(Map<String,String> partition, ManifestCommittable committable, Map<String,String> properties)
partition
- A single partition maps each partition key to a partition value. Depending
on the user-defined statement, the partition might not include all partition keys. Also
note that this partition does not necessarily equal to the partitions of the newly added
key-values. This is just the partition to be cleaned up.void dropPartitions(List<Map<String,String>> partitions, long commitIdentifier)
Snapshot.CommitKind
of generated snapshot is Snapshot.CommitKind#OVERWRITE
.partitions
- A list of partition Map
s. NOTE: cannot be empty!void truncateTable(long commitIdentifier)
void abort(List<CommitMessage> commitMessages)
FileStoreCommit withMetrics(CommitMetrics metrics)
void commitStatistics(Statistics stats, long commitIdentifier)
Snapshot.CommitKind
of generated snapshot is Snapshot.CommitKind#ANALYZE
.FileStorePathFactory pathFactory()
FileIO fileIO()
void close()
close
in interface AutoCloseable
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.