public interface CompactDeletionFile
Modifier and Type | Interface and Description |
---|---|
static class |
CompactDeletionFile.GeneratedDeletionFile
A generated files implementation of
CompactDeletionFile . |
static class |
CompactDeletionFile.LazyCompactDeletionFile
A lazy generation implementation of
CompactDeletionFile . |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
static CompactDeletionFile |
generateFiles(DeletionVectorsMaintainer maintainer)
Used by async compaction, when compaction task is completed, deletions file will be generated
immediately, so when updateCompactResult, we need to merge old deletion files (just delete
them).
|
Optional<IndexFileMeta> |
getOrCompute() |
static CompactDeletionFile |
lazyGeneration(DeletionVectorsMaintainer maintainer)
For sync compaction, only create deletion files when prepareCommit.
|
CompactDeletionFile |
mergeOldFile(CompactDeletionFile old) |
Optional<IndexFileMeta> getOrCompute()
CompactDeletionFile mergeOldFile(CompactDeletionFile old)
void clean()
static CompactDeletionFile generateFiles(DeletionVectorsMaintainer maintainer)
static CompactDeletionFile lazyGeneration(DeletionVectorsMaintainer maintainer)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.